Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: converting points to circles

Re: converting points to circles

From: Benjamin Hell <bhell_at_spamfence.net>
Date: Wed, 09 Nov 2005 13:53:18 +0100
Message-ID: <3te9pvFs7l63U1@individual.net>


Hi Erik!

> we need to transform points in Oracle spatial to circles with a
> given radius in Oracle spatial.

The following function should do it. It is pretty rudimentary (e.g. no check whether input geometry is really a point), but could be a starting point. The closest built-in solution I know is SDO_GEOM.SDO_BUFFER() which creates a polygon shaped buffer zone around the point.

Regards,

Ben

                xorig, yorig + radius
            )
        );
        RETURN circle;

    END;
END;
/ Received on Wed Nov 09 2005 - 06:53:18 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US