Artifact
bf66190330cc67877e7ded1d43d2ad21230a590f:
Ticket change
[bf66190330]
- Ticket
[b1fcb045a7] ST_HexagonalGrid and ST_TriangularGrid do not function with negative numbers in the geometry status still Open with 5 other changes
by
bradh
2015-06-03 02:30:05.
0000: 44 20 32 30 31 35 2d 30 36 2d 30 33 54 30 32 3a D 2015-06-03T02:
0010: 33 30 3a 30 35 2e 32 36 32 0a 4a 20 69 63 6f 6d 30:05.262.J icom
0020: 6d 65 6e 74 20 4f 6e 5c 73 74 65 73 74 69 6e 67 ment On\stesting
0030: 2c 5c 73 74 68 65 72 65 5c 73 69 73 5c 73 61 6e ,\sthere\sis\san
0040: 6f 74 68 65 72 5c 73 62 75 67 5c 73 69 6e 5c 73 other\sbug\sin\s
0050: 74 68 65 5c 73 6c 69 62 73 70 61 74 69 61 6c 69 the\slibspatiali
0060: 74 65 5c 73 74 65 73 74 73 5c 73 28 74 72 69 61 te\stests\s(tria
0070: 6e 67 67 72 69 64 32 30 2e 74 65 73 74 63 61 73 nggrid20.testcas
0080: 65 29 5c 72 5c 6e 5c 72 5c 6e 73 70 61 74 69 61 e)\r\n\r\nspatia
0090: 6c 69 74 65 3e 5c 73 53 45 4c 45 43 54 5c 73 41 lite>\sSELECT\sA
00a0: 73 54 65 78 74 28 54 72 69 61 6e 67 75 6c 61 72 sText(Triangular
00b0: 47 72 69 64 28 47 65 6f 6d 46 72 6f 6d 54 65 78 Grid(GeomFromTex
00c0: 74 28 27 50 4f 4c 59 47 4f 4e 28 28 30 2e 32 5c t('POLYGON((0.2\
00d0: 73 30 2e 32 2c 5c 73 32 2e 32 5c 73 30 2e 32 2c s0.2,\s2.2\s0.2,
00e0: 5c 73 32 2e 32 5c 73 31 2e 32 2c 5c 73 30 2e 32 \s2.2\s1.2,\s0.2
00f0: 5c 73 31 2e 32 2c 5c 73 30 2e 32 5c 73 30 2e 32 \s1.2,\s0.2\s0.2
0100: 29 29 27 2c 5c 73 34 33 32 36 29 2c 5c 73 31 2e ))',\s4326),\s1.
0110: 30 29 29 3b 5c 72 5c 6e 4d 55 4c 54 49 50 4f 4c 0));\r\nMULTIPOL
0120: 59 47 4f 4e 28 28 28 30 5c 73 30 2e 38 36 36 30 YGON(((0\s0.8660
0130: 32 35 2c 5c 73 31 5c 73 30 2e 38 36 36 30 32 35 25,\s1\s0.866025
0140: 2c 5c 73 30 2e 35 5c 73 31 2e 37 33 32 30 35 31 ,\s0.5\s1.732051
0150: 2c 5c 73 30 5c 73 30 2e 38 36 36 30 32 35 29 29 ,\s0\s0.866025))
0160: 2c 5c 73 28 28 30 2e 35 5c 73 31 2e 37 33 32 30 ,\s((0.5\s1.7320
0170: 35 31 2c 5c 73 31 5c 73 30 2e 38 36 36 30 32 35 51,\s1\s0.866025
0180: 2c 5c 73 31 2e 35 5c 73 31 2e 37 33 32 30 35 31 ,\s1.5\s1.732051
0190: 2c 5c 73 30 2e 35 5c 73 31 2e 37 33 32 30 35 31 ,\s0.5\s1.732051
01a0: 29 29 2c 5c 73 28 28 31 5c 73 30 2e 38 36 36 30 )),\s((1\s0.8660
01b0: 32 35 2c 5c 73 32 5c 73 30 2e 38 36 36 30 32 35 25,\s2\s0.866025
01c0: 2c 5c 73 31 2e 35 5c 73 31 2e 37 33 32 30 35 31 ,\s1.5\s1.732051
01d0: 2c 5c 73 31 5c 73 30 2e 38 36 36 30 32 35 29 29 ,\s1\s0.866025))
01e0: 2c 5c 73 28 28 31 2e 35 5c 73 31 2e 37 33 32 30 ,\s((1.5\s1.7320
01f0: 35 31 2c 5c 73 32 5c 73 30 2e 38 36 36 30 32 35 51,\s2\s0.866025
0200: 2c 5c 73 32 2e 35 5c 73 31 2e 37 33 32 30 35 31 ,\s2.5\s1.732051
0210: 2c 5c 73 31 2e 35 5c 73 31 2e 37 33 32 30 35 31 ,\s1.5\s1.732051
0220: 29 29 2c 5c 73 28 28 32 5c 73 30 2e 38 36 36 30 )),\s((2\s0.8660
0230: 32 35 2c 5c 73 33 5c 73 30 2e 38 36 36 30 32 35 25,\s3\s0.866025
0240: 2c 5c 73 32 2e 35 5c 73 31 2e 37 33 32 30 35 31 ,\s2.5\s1.732051
0250: 2c 5c 73 32 5c 73 30 2e 38 36 36 30 32 35 29 29 ,\s2\s0.866025))
0260: 29 5c 72 5c 6e 73 70 61 74 69 61 6c 69 74 65 3e )\r\nspatialite>
0270: 5c 73 53 45 4c 45 43 54 5c 73 53 54 5f 4d 69 6e \sSELECT\sST_Min
0280: 59 28 54 72 69 61 6e 67 75 6c 61 72 47 72 69 64 Y(TriangularGrid
0290: 28 47 65 6f 6d 46 72 6f 6d 54 65 78 74 28 27 50 (GeomFromText('P
02a0: 4f 4c 59 47 4f 4e 28 28 30 2e 32 5c 73 30 2e 32 OLYGON((0.2\s0.2
02b0: 2c 5c 73 32 2e 32 5c 73 30 2e 32 2c 5c 73 32 2e ,\s2.2\s0.2,\s2.
02c0: 32 5c 73 31 2e 32 2c 5c 73 30 2e 32 5c 73 31 2e 2\s1.2,\s0.2\s1.
02d0: 32 2c 5c 73 30 2e 32 5c 73 30 2e 32 29 29 27 2c 2,\s0.2\s0.2))',
02e0: 5c 73 34 33 32 36 29 2c 5c 73 31 2e 30 29 29 3b \s4326),\s1.0));
02f0: 5c 72 5c 6e 30 2e 38 36 36 30 32 35 34 30 33 37 \r\n0.8660254037
0300: 38 34 34 33 39 5c 72 5c 6e 5c 72 5c 6e 54 68 61 84439\r\n\r\nTha
0310: 74 5c 73 69 73 2c 5c 73 74 68 65 72 65 5c 73 73 t\sis,\sthere\ss
0320: 68 6f 75 6c 64 5c 73 62 65 5c 73 63 6f 76 65 72 hould\sbe\scover
0330: 61 67 65 5c 73 66 6f 72 5c 73 74 68 65 5c 73 77 age\sfor\sthe\sw
0340: 68 6f 6c 65 5c 73 70 6f 6c 79 67 6f 6e 2c 5c 73 hole\spolygon,\s
0350: 62 75 74 5c 73 77 65 27 72 65 5c 73 6d 69 73 73 but\swe're\smiss
0360: 69 6e 67 5c 73 61 6c 6c 5c 73 6f 66 5c 73 74 68 ing\sall\sof\sth
0370: 65 5c 73 61 72 65 61 5c 73 69 6e 5c 73 74 68 65 e\sarea\sin\sthe
0380: 5c 73 72 61 6e 67 65 5c 73 59 3d 5b 30 2e 32 2c \srange\sY=[0.2,
0390: 5c 73 30 2e 38 36 36 30 32 35 34 30 33 37 38 34 \s0.866025403784
03a0: 34 33 39 29 0a 4a 20 6c 6f 67 69 6e 20 62 72 61 439).J login bra
03b0: 64 68 0a 4a 20 6d 69 6d 65 74 79 70 65 20 74 65 dh.J mimetype te
03c0: 78 74 2f 78 2d 66 6f 73 73 69 6c 2d 70 6c 61 69 xt/x-fossil-plai
03d0: 6e 0a 4a 20 70 72 69 6f 72 69 74 79 20 4d 65 64 n.J priority Med
03e0: 69 75 6d 0a 4a 20 72 65 73 6f 6c 75 74 69 6f 6e ium.J resolution
03f0: 20 4f 70 65 6e 0a 4b 20 62 31 66 63 62 30 34 35 Open.K b1fcb045
0400: 61 37 32 34 31 39 35 30 66 61 61 63 65 62 65 35 a7241950faacebe5
0410: 31 39 36 39 63 31 65 30 35 31 30 37 33 64 35 33 1969c1e051073d53
0420: 0a 55 20 62 72 61 64 68 0a 5a 20 31 30 62 34 38 .U bradh.Z 10b48
0430: 65 34 39 36 62 66 66 37 33 66 31 38 36 65 36 64 e496bff73f186e6d
0440: 63 31 61 66 32 30 63 39 33 39 33 0a c1af20c9393.