[postgis-users] Creating a circle geometry

Surridge, Christopher S Christopher.Surridge at titan.com
Wed Feb 16 08:05:35 PST 2005

I have the cvs version of postgis working on Solaris 10 now (thanks strk) and I'm trying to figure out how to insert a circle geometry. I have data that consists of a center given as a latitude/longitude and a radius in meters. There is a createCircle method in GEOS, but I can't figure out how to use it through postgis. Even if I could, looking through the code for createCircle, I'm not sure it will give the desired results for a lat/long coordinate system. I would settle for a bounding box created using expand, but I have the same concerns about the coordinate system in this case. Is there an easy way to do this that I'm missing, or do I just have to suck it up and do the meters to degrees and spherical coordinates math myself?



More information about the postgis-users mailing list