oracle-spatial

ORACLE SDO_GEOMETRY ToString()?

时光毁灭记忆、已成空白 提交于 2019-12-11 01:30:15
问题 I have a .Net system that I am writing which needs to be able to retrieve an oracle geometry field from the database. Is there any way in my SQL statement to cast the geometry type to a string so that I can deal with it on my .Net side. At the moment I cannot get the data out as it is not a valid datatype to put into my OLEDB reader so it must be converted database side. select CS_BOUNDS from MDSYS.CS_SRS where SRID = 4326 Thanks 回答1: You could use the Get_WKT method: Returns the well-known

Geo Fence: how to find if a point or a shape is inside a polygon using oracle spatial

空扰寡人 提交于 2019-12-06 05:37:07
问题 How do i find if a point or a polygon is inside another polygon using oracle spatial SQL query Here is the scenario; I have a table (STATE_TABLE) which contains a spatial type (sdo_geometry) which is a polygon (of say a State), I have another table (UNIVERSITY_TABLE) which contains spatial data (sdo_geometry) (point/polygon) which contains Universities; Now how do i find if a selected University('s) are in a given State using SQL select statement. Primarily i want to locate existence of given

How to determine the radius and center of a circle when only three noncollinear points are known?

六眼飞鱼酱① 提交于 2019-12-06 03:30:40
I'm working on a C# program that deals with Oracle Spatial geometry. When circle data is stored in a geometry field only three non-collinear points are stored to represent the circle. The problem is that I need to use this data on a Google Maps web page and need the center point and radius of the circle (since my circle drawing function uses that information). Can anyone help with the math involved and translating said math to C#? I think this page may hold the answer, but I'm having a hard time following it. There are formulas for radius and center given three points, but then they define the

saving a polygon in oracle database

折月煮酒 提交于 2019-12-04 14:17:41
I have captured four points(coordinate) of a plot using a gps device. Point 1:- lat- 27.54798833 long- 80.16397166 Point 2:- lat 27.547766, long- 80.16450166 point 3:- lat 27.548131, long- 80.164701 point 4:- --- now I want to save these coordinate in oracle database which save it as an polygon. Thanks If you're intending to use Oracle Spatial for storage or processing of polygons, then you'll need to store the data as an SDO_GEOMETRY object. Here's a quick example: CREATE TABLE my_polygons ( id INTEGER , polygon sdo_geometry ) / INSERT INTO my_polygons ( id , polygon ) VALUES ( 1 , sdo

how to get lat and long from sdo_geometry in oracle

岁酱吖の 提交于 2019-11-28 13:45:23
how can i get lat and long from point in oracle? Like this: MDSYS.SDO_GEOMETRY(2001,4326,NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1,1,1), MDSYS.SDO_ORDINATE_ARRAY(51.702814,32.624736)) The notation you show is not the best one for representing single 2D or 3D points. The common and most efficient way to encode those points is this: SDO_GEOMETRY(2001,4326,SDO_POINT_TYPE(51.702814,32.624736,NULL),NULL,NULL) All the GIS tools I have seen use this notation. The one you show is valid too - it just uses more storage. But the two notations are fully functionally equivalent. Using the compact notation, getting

how to get lat and long from sdo_geometry in oracle

[亡魂溺海] 提交于 2019-11-27 19:30:18
问题 how can i get lat and long from point in oracle? Like this: MDSYS.SDO_GEOMETRY(2001,4326,NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1,1,1), MDSYS.SDO_ORDINATE_ARRAY(51.702814,32.624736)) 回答1: The notation you show is not the best one for representing single 2D or 3D points. The common and most efficient way to encode those points is this: SDO_GEOMETRY(2001,4326,SDO_POINT_TYPE(51.702814,32.624736,NULL),NULL,NULL) All the GIS tools I have seen use this notation. The one you show is valid too - it just