[postgis-users] How does PostGIS know Units?

Paul Ramsey pramsey at refractions.net
Fri May 6 09:03:45 PDT 2005


Yes, PostGIS assumes all your units are the same. Which means that if 
you are working in degrees, buffer will also work in degrees. Which is 
probably not what you want. You will want to choose a planar projection 
to work in that is suitable to your data.

Mark Fenbers wrote:

> OK, I'm getting better, but still very green using PostGIS.
> 
> Given the SQL excerpt construct:
>     buffer(PointFromText('POINT(39.0 -83.4)'),125.0)
> How do I tell PostGIS that the (39.0 -83.4) represents latitude and 
> longtitude (instead of some arbitrary x,y), and that 125.0 represents 
> kilometers (instead of meters, or miles)?  As given, PostGIS thinks all 
> values in the construct have the same units.
> 
> Mark
> 
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users




More information about the postgis-users mailing list