Last active
October 21, 2022 10:10
-
-
Save plamen9/f0cd18d72c610ce3e2193424f2f4827a to your computer and use it in GitHub Desktop.
GeoJSON, SDO_GEOMETRY examples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- *** Single Point *** | |
-- GeoJSON | |
{"type": "Point", "coordinates": [-0.051, 51.50254]} | |
-- SDO_GEOMETRY | |
MDSYS.SDO_GEOMETRY(2001, 4326, MDSYS.SDO_POINT_TYPE(-0.051, 51.50254, NULL), NULL, NULL); | |
-- Longitude/Latitude | |
Longitude: -0.051 | |
Latitude: 51.50254 | |
-- *** Polygon *** | |
-- GeoJSON | |
{"polygon":{"datapoints":[[-119.48,33.20],[-115.15,36.08],[-117.15,33.62]]}} | |
-- SDO_GEOMETRY | |
MDSYS.SDO_GEOMETRY(2002, NULL, NULL, | |
MDSYS.SDO_ELEM_INFO_ARRAY(1, 2, 1), | |
MDSYS.SDO_ORDINATE_ARRAY(-119.48,33.20, -115.15,36.08, -117.15,33.62)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment