On Tue, 2 Jun 2015 11:59:50 AM Shane Woodard wrote:
> It appears to be an issue with negative numbers.... I can take the
> statements below and use only positive numbers and everything works as
> expected...
Looks like the problem is based on an assumed origin of (0,0). As a
workaround, if you explicitly set the origin to the bottom left point, then it
should give you a solution.
SELECT AsText(st_triangulargrid(st_geomfromtext('POLYGON (( -95.60000642169064
32.69515753782014, -94.98823776665468 32.60149364718705, -94.97220520879856
32.12895509984892, -95.48355942252516 32.12811128101439, -95.61013224770502
32.48420282918705, -95.60000642169064 32.69515753782014 ))'),0.3, 0,
MakePoint(-95.61013224770502, 32.12895509984892)));
MULTIPOLYGON(((-95.610132 32.128955, -95.310132 32.128955, -95.460132
32.388763, -95.610132 32.128955)), ((-95.460132 32.388763, -95.310132
32.128955, -95.160132 32.388763, -95.460132 32.388763)), ((-95.310132
32.128955, -95.010132 32.128955, -95.160132 32.388763, -95.310132 32.128955)),
((-95.160132 32.388763, -95.010132 32.128955, -94.860132 32.388763, -95.160132
32.388763)), ((-95.010132 32.128955, -94.710132 32.128955, -94.860132
32.388763, -95.010132 32.128955)), ((-95.760132 32.388763, -95.460132
32.388763, -95.610132 32.64857, -95.760132 32.388763)), ((-95.610132 32.64857,
-95.460132 32.388763, -95.310132 32.64857, -95.610132 32.64857)), ((-95.460132
32.388763, -95.160132 32.388763, -95.310132 32.64857, -95.460132 32.388763)),
((-95.310132 32.64857, -95.160132 32.388763, -95.010132 32.64857, -95.310132
32.64857)), ((-95.160132 32.388763, -94.860132 32.388763, -95.010132 32.64857,
-95.160132 32.388763)), ((-95.610132 32.64857, -95.310132 32.64857, -95.460132
32.908378, -95.610132 32.64857)), ((-95.460132 32.908378, -95.310132 32.64857,
-95.160132 32.908378, -95.460132 32.908378)), ((-95.310132 32.64857,
-95.010132 32.64857, -95.160132 32.908378, -95.310132 32.64857)))
Brad