[postgis-users] rounding off geometry coordinates

2014-11-26 Thread toni hernández
Hello, I need to round off all the coordinates of some polygon geometries. So far I am using the st_asgeojson function to use the precision I need, and then I create a new geometry from the GeoJSon I have just created. Something like this: SELECT

Re: [postgis-users] rounding off geometry coordinates

2014-11-26 Thread Rémi Cura
Hey, you may use ST_SNapToGrid Cheers, Rémi-C 2014-11-26 11:17 GMT+01:00 toni hernández t...@sigte.udg.edu: Hello, I need to round off all the coordinates of some polygon geometries. So far I am using the st_asgeojson function to use the precision I need, and then I create a new geometry

Re: [postgis-users] rounding off geometry coordinates

2014-11-26 Thread Nicklas Avén
@lists.osgeo.org /divdivRubrik: [postgis-users] rounding off geometry coordinates /divdiv /divHello, I need to round off all the coordinates of some polygon geometries. So far I am using the st_asgeojson function to use the precision I need, and then I create a new geometry from the GeoJSon I have just

Re: [postgis-users] rounding off geometry coordinates

2014-11-26 Thread toni hernández
: PostGIS Users Discussion Rubrik: [postgis-users] rounding off geometry coordinates Hello, I need to round off all the coordinates of some polygon geometries. So far I am using the st_asgeojson function to use the precision I need, and then I create a new geometry from the GeoJSon I have just