[postgis-users] Problem with ellipse function

franco califano poldo000 at yahoo.it
Fri Jun 15 10:45:14 PDT 2007


Thank you.
This is the solution!!
But, i think, the function ellipse is wrong.
I modified it in this way:
 
Ellipse (x,y,rx,ry,rotation,#of segments in 1/4 of ellipse)

CREATE OR REPLACE FUNCTION Ellipse(double precision, double precision, double precision, double precision, double precision, integer) 
RETURNS geometry AS 
'
SELECT transform(translate(rotate(scale(buffer(transform(setsrid(makepoint(0,0),4326),3395),1,$6),$3,$4),$5),x(transform(setsrid(makepoint($1,$2),4326),3395)),y(transform(setsrid(makepoint($1,$2),4326),3395))),4326)
'
LANGUAGE 'sql';

where rx and ry are the (minor axis length)/2  and the (major axis length)/2 (in meters).
What do you think about this?
Thanks......

       
---------------------------------

---------------------------------
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20070615/4be2e00d/attachment.html>


More information about the postgis-users mailing list