<div dir="ltr"><div><div>Hey,<br></div>you may use ST_SNapToGrid<br></div>Cheers,<br>Rémi-C<br></div><div class="gmail_extra"><br><div class="gmail_quote">2014-11-26 11:17 GMT+01:00 toni hernández <span dir="ltr"><<a href="mailto:toni@sigte.udg.edu" target="_blank">toni@sigte.udg.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I need to round off all the coordinates of some polygon geometries.<br>
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.<br>
<br>
Something like this:<br>
SELECT ST_ST_GeomFromGeoJSON(ST_<u></u>AsGeoJSON(value_old,geom_<u></u>precision))<br>
<br>
Is there a more efficent way to do this?.<br>
<br>
______________________________<u></u>_________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-<u></u>bin/mailman/listinfo/postgis-<u></u>users</a><br>
</blockquote></div><br></div>