OO4O to Retrieve Spatial Data (SDO_GEOMETRY)
Does anyone have any sample code in VB or C++ to retrieve data from the SDO_GEOMETRY object? Any code or suggestions would be much appreciated.
oracle spatial has built-in functions that can do this job,I think you can find in the spatial reference book,here is an example that find the nearest 5 outlet beside a warehouse
REM Finds the 5 closest customers to warehouse_id = 3
REM who reside in NY state, and return the distance in miles,
REM and order the results by distance
REM
REM CUSTOMERS and WAREHOUSES
REM
set lines 132
set pages 1000
select /*+ordered*/
c.customer_id,
c.cust_address.state_province state,
sdo_nn_distance(1) distance_in_miles
from warehouses w,
customers c
where w.warehouse_id = 3
and sdo_nn (c.cust_geo_location, w.wh_geo_location,
'sdo_batch_size =5 unit=mile', 1) = 'TRUE'
and c.cust_address.state_province = 'NY'
and rownum < 6
order by distance_in_miles;
Similar Messages
-
How to retrieve spatial data in VC?
I have tried many ways ,but i can't do it
did someone do it before??The Visual SDO demo works with ORACLE 8.1.7. The problem is a small BUG in the source code.
You have to make 2 small changes in the "sdogeomcursor.cpp" file (see changes below). After that the demo works with
the "cola_markets" and the "counties" demo-table at least...
Cheers,
Johannes
Look for function:
BOOL SDOGeomCursor::SDOMirrorToClient(CSDOMirrorGeom* mirrorGeom,
CSDOMirrorGeomInd* mgIndicator,
CSDODimArray* dimArray,
CSDOGeometry* geom)
// Process elements one by one
for (elemCount = 0, thisIndex = 0; thisIndex < nEIUnits;
elemCount++, thisIndex++)
CSDOElement elem;
// Get the element info structure
startOffset = mirrorGeom->sdo_elem_info[thisIndex*3];
elem.m_nElemType = mirrorGeom->sdo_elem_info[thisIndex*3+1];
elem.m_nElemItpr = mirrorGeom->sdo_elem_info[thisIndex*3+2];
elem.m_nElemType = elem.m_nElemType % 1000; //<------------------------------Add this line (Change 1)
if (elem.m_nElemType == 4 || elem.m_nElemType == 5)
nSegs = elem.m_nElemItpr;
else
nSegs = 0;
nextIndex = thisIndex + nSegs + 1;
// GTYPE support:
// 0 -- Unsupported type, ignore all elements
// 1 -- Points only, ignore all string and polygon elements
// 2 -- Strings only, ignore all point and polygon elements
// 3 -- Polygons only, ignore all point and string elements
// 4 -- Mixed, load all elements
// 5 -- Point collection, same as GTYPE 1
// 6 -- String collection, same as GTYPE 2
// 7 -- Polygon collection, same as GTYPE 3
BOOL ignoreElement = FALSE;
switch (geom->m_nGeomType % 1000) //<------------------------------Change line to this (Change 2)
case 0: // ignore all -
Oracle 11g R2, Problem Loading Spatial Data
We have a geodatabase which has been implemented by oracle spatial. it has been working quite fine since 2 years ago. Recently the data center serving our geodatabase has been upgraded on both software and hardware specifications. The handler application now has difficulty retrieving spatial data. The problem is somehow strange; only some spatial objects are loaded and then application encounters exceptions.
Previous working database engine was an Oracle 11g R1 and the new one is Oracle 11g R2. The application is a java application mostly written by swing. Here is the stack trace:
java.sql.SQLRecoverableException: No more data to read from socket
at oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(T4CMAREngine.java:1200)
at oracle.jdbc.driver.T4CMAREngine.unmarshalSB1(T4CMAREngine.java:1155)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:279)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:521)
at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:202)
at oracle.jdbc.driver.T4CCallableStatement.fetch(T4CCallableStatement.java:1079)
at oracle.jdbc.driver.OracleResultSetImpl.close_or_fetch_from_next(OracleResultSetImpl.java:369)
at oracle.jdbc.driver.OracleResultSetImpl.next(OracleResultSetImpl.java:273)
at ir.mas.aamar.service.map.MapService.getModifiedMap(MapService.java:405)
at ir.mas.aamar.map.MapPanel.redrawLayers(MapPanel.java:504)
at ir.mas.aamar.map.LayersTree.onSnapshotDisplayCheckBoxItemChanged(LayersTree.java:420)
at ir.mas.aamar.map.LayersTree.onMouseReleased(LayersTree.java:204)
at ir.mas.aamar.map.LayersTree.access$0(LayersTree.java:188)
at ir.mas.aamar.map.LayersTree$1.mouseReleased(LayersTree.java:170)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
java.sql.SQLRecoverableException: No more data to read from socket
at oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(T4CMAREngine.java:1200)
at oracle.jdbc.driver.T4CMAREngine.unmarshalSB1(T4CMAREngine.java:1155)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:279)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:521)
at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:194)
at oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:853)
at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1145)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1267)
at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1469)
at oracle.jdbc.driver.OracleStatementWrapper.executeQuery(OracleStatementWrapper.java:389)
at ir.mas.aamar.service.map.MapService.executeJDBCQuery(MapService.java:78)
at ir.mas.aamar.service.map.MapService.getSnapshotsForThisTermPlusHoze(MapService.java:1013)
at ir.mas.aamar.dialog.edit.EditTools.refreshLayersCombo(EditTools.java:327)
at ir.mas.aamar.dialog.edit.EditTools.refresh(EditTools.java:301)
at ir.mas.aamar.dialog.edit.EditTools.<init>(EditTools.java:103)
at ir.mas.aamar.dialog.edit.EditTools.editTools(EditTools.java:62)
at ir.mas.aamar.map.MapPanel.paintComponent(MapPanel.java:7591)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintToOffscreen(Unknown Source)
at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
at javax.swing.RepaintManager.paint(Unknown Source)
at javax.swing.JComponent._paintImmediately(Unknown Source)
at javax.swing.JComponent.paintImmediately(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
java.sql.SQLRecoverableException: Closed Resultset: next
at oracle.jdbc.driver.OracleResultSetImpl.next(OracleResultSetImpl.java:224)
at ir.mas.aamar.service.map.MapService.getSnapshotsForThisTermPlusHoze(MapService.java:1014)
at ir.mas.aamar.dialog.edit.EditTools.refreshLayersCombo(EditTools.java:327)
at ir.mas.aamar.dialog.edit.EditTools.refresh(EditTools.java:301)
at ir.mas.aamar.dialog.edit.EditTools.<init>(EditTools.java:103)
at ir.mas.aamar.dialog.edit.EditTools.editTools(EditTools.java:62)
at ir.mas.aamar.map.MapPanel.paintComponent(MapPanel.java:7591)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintToOffscreen(Unknown Source)
at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
at javax.swing.RepaintManager.paint(Unknown Source)
at javax.swing.JComponent._paintImmediately(Unknown Source)
at javax.swing.JComponent.paintImmediately(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at ir.mas.aamar.dialog.edit.EditTools.setTypeOfEditModel(EditTools.java:452)
at ir.mas.aamar.dialog.edit.EditTools.<init>(EditTools.java:104)
at ir.mas.aamar.dialog.edit.EditTools.editTools(EditTools.java:62)
at ir.mas.aamar.map.MapPanel.paintComponent(MapPanel.java:7591)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintToOffscreen(Unknown Source)
at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
at javax.swing.RepaintManager.paint(Unknown Source)
at javax.swing.JComponent._paintImmediately(Unknown Source)
at javax.swing.JComponent.paintImmediately(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
I read in some forums that the problem could be caused by jdbc version incompatibility, so I just copied jdbc archives from the installed oracle 11g R2 jdbc folder but the problem persists. Last thing I should mention is that only spatial data is problemistic and non-spatial data is easily loaded.
Please Help, Thanks.Hi storm,
During the installation of oracle as you said if you have given the global password, basically this specific password will reflect to users such as
-sys
-system
-dbsnmp
-sysman
As you are new to oracle the basics that you should know is that "SYS" user is the highly privileged user in Oracle and should be logged in as "sys as sysdba" with his respective password (i.e. the global password that you have entered during database installation) to obtain his privilege. Remember to manipulate your database with caution when you are logged in as the sys user. You can log into the database using the sys user in the following way:
c\> sqlplus sys as sysdba
password: ****** --It will ask you for the password and you will have to give the global password that was given during installation
Hope this helps!!!
Regards, -
Retrieving spatial and non spatial data in one query
Hello. I am having slight difficulties using JDBC to retrieve both spatial and non spatial data in the same query. The following is code from a sample program of mine that retrives spatial data from spatial tables.
(In spatialquery geom is a geometry column and city is simply the name of the city):
try
Geometry geom = null;
String database = "jdbc:oracle:thin:@" + m_host + ":" + m_port + ":" + m_sid;
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
con = (OracleConnection)DriverManager.getConnection(database, sUsername, sPassword);
GeometryAdapter sdoAdapter =
OraSpatialManager.getGeometryAdapter("SDO", "8.1.7", STRUCT.class, null, null, con);
String spatialquery = "SELECT a1.geom, a1.city \n" +
"FROM cities a1";
Statement stmt = con.createStatement();
OracleResultSet rs = (OracleResultSet) stmt.executeQuery(spatialquery);
int i = 0;
int noOfFeatures = 2;
while (rs.next())
for(i = 1; i <= noOfFeatures; i++)
STRUCT dbObject = (STRUCT)rs.getObject(i);
try
geom = sdoAdapter.importGeometry(dbObject);
catch(GeometryInputTypeNotSupportedException e)
System.out.println("Input Type not supported");
catch(InvalidGeometryException e)
System.out.println("Invalid geometry");
System.out.println(geom);
}//end while loop
This retrieves the sptial data fine, however when I attempt to retreive the non-spatial data I keep getting a "ClassCastException" error. I understand it is something to do with "STRUCT dbObject = (STRUCT)rs.getObject(i);" line. Can anyone tell me how to retrieve both spatial and non-spatial data in the one query using JDBC. I have tried nearly everything at this stage. Cheers joeTheresa A Radke
Posts: 20
OTN Member Since: Jul, 2001
retrieving spatial and non spatial in same query. May 23, 2003 12:02 AM
retrieving spatial and non spatial in same query. -
Plx help on Spatial data urgent.....
I am doing a project that retrieve the data stored inside oracle 10g database using j2ee and jdeveloper...currently i am able to retrieve the data type String int etc...using the recordset and display it out...but how do i work wif the sdo_geometry object stored and displayed it out...if possible can gif me some example ??
and oracle.spatial.geometry.* is residing in wat jar and where can i download it ??How do i actually find the corrdinates of the STRUCT object after loading into JGEMOTEORY..
Currently my web service coding is as below:
public String SearchPlaceByPostCode(String post_code)
OracleResultSet rset = null;
Statement stmt = null;
String sql="SELECT HOUSE_BLK_NO,ROAD_NAME,POSTAL_CODE,BUILDING_NAME,sdo_geom.sdo_centroid(gblob_,0.05) centerPoint FROM SLA_LBSTR_INT_BLDG where postal_code like '%" userInput +"'";
System.out.print("sql");
String HOUSE_BLK_NO="",ROAD_NAME="",POSTAL_CODE="",BUILDING_NAME="";
STRUCT centerPoint=null;
JGeometry Loader=null;
try{
DBmgr dbMgr= new DBmgr();
Connection connection = dbMgr.dbConnection();
stmt = connection.createStatement();
rset = (OracleResultSet)stmt.executeQuery(sql);
if (rset.next())
HOUSE_BLK_NO=rset.getString("HOUSE_BLK_NO");
ROAD_NAME=rset.getString("ROAD_NAME");
POSTAL_CODE=rset.getString("POSTAL_CODE");
BUILDING_NAME=rset.getStrin("BUILDING_NAME");
centerPoint=(STRUCT)rset.getObject("centerPoint");
Loader = JGeometry.load(centerPoint);
//Which methods shld i use here to find the X,Y points ??
rset.close( );
stmt.close( );
catch(Exception e)
System.err.println(e);
return "The X coordinate is"+x "and Y coordinate is "+ y;
} -
Accessing Oracle spatial objects (SDO_GEOMETRY) through ODBC/OLEDB
Hello.
I tried googling and reading through these forums and Oracle documentation, but I'm still uncertain on this question:
Are Oracle spatial objects (of type SDO_GEOMETRY) accessible through ODBC and/or OLE DB drivers? Can I retrieve them with SELECT clause? Can I write them to database?
I'm limited to these options because I'm developing Delphi application based on ADO and it must work with different DB servers. However I certainly don't want to implement different ways of accessing database for each server.
If geometry objects aren't suported by ODBC/OLEDB, is there any way to convert SDO_GEOMETRY to (and from) BLOB or string or whatever, so I can read and write them like a normal data field?
Thanks in advance.
Edited by: user13816863 on 25.01.2011 20:35
Edited by: user13816863 on 25.01.2011 21:57The SDO_UTIL package has lots of options to help output spatial data to other formats, and you may be able to use some of them to help.
Some that come to mind are:
SDO_UTIL.TO_WKTGEOMETRY
SDO_UTIL.TO_GMLGEOMETRY
SDO_UTIL.TO_KMLGEOMETRY
This is covered in chapter 32 of the Oracle® Spatial Developer's Guide 11g Release 2 (11.2). -
Pipelined functions with spatial data
hi,
i've been trying to use pipelined functions (using the TABLE and CAST operators to query data from them) to retrieve large amounts of spatial data.
i've followed the examples on metalink, and they work fine. my problem arises when i apply similar functions to query data using SDO_FILTER, i've been trying to pipe a mdsys.sdo_geometry datatype (ref cursor) into the function - returns null.
are spatial datatypes supported for use in pipelined functions, and using the table and cast operators?
if they are, where can i find further reading/reference on the subject?
thanks
santosh sewlalCheck out http://otn.oracle.com/products/spatial/pdf/mapviewerfaq_31.pdf
or
You can look for a third party solution that can draw maps.
Then you call out to this component from Forms. -
How to load spatial data from .shp file
Could anyone suggest an easy to use, free tool to upload spatial data from .shp file (or/and other open source spatial file sources) into an Oracle Locator database?
We have licensing for ArcGIS10, but nobody (including ArcGIS) have been able to successfully create a direct connection from their software to our Oracle 10.2 database.
Client desktops here are Windows 7 64bit, which further complicates matters (tend to find neither ArcGIS nor Oracle support 64bit OS in a cogent fashion)790951,
. . . .You can also try Oracle's ShapeFile Converter (shp2sdo). It's a command line utility so there's automation potential.
. . . .Note that ESRI's tools may (depending on how they're used) store spatial content in Oracle Spatial as BLOBs containing their ST_GEOMETRY data-type (rather than Oracle's SDO_GEOMETRY type).
Regards,
Noel -
Acquiring Oracle Spatial Data through WFS
Hi,
I have been researching for awhile and am slightly confused.
I have Oracle Spatial 11g with geometry data and would like to be able to retrieve that data through a WFS to serve to a viewing application.
Here's where I am confused:
1) Spatial has a WFS service which needs to be configured. If I were configure that, would I be able to access the data through URL getFeature commands? The documentation I see for them has the getFeature requests in the form of XML files so I am not sure if I can do that. Also it seems like the service is returning .log files but I think I would want GML...
If this is the option I should take, the tutorial to setup OC4J and the Web Services are for a Linux machine (http://www.oracle.com/technology/obe/11gr1_db/datamgmt/spatialws/spatialws.htm) -- Is there one for Windows 64bit?
2) Do I need another "application layer" to enable this URL support? I know MapServer can use URL requests.. can I just run this against the data in my DB and forget about the Oracle WFS?
3) MapViewer seems to work with WFS Themes and handle requests through Java and SQL.. is this another option?
I am basically confused as to where everything sits and what I should be focusing on to get my Spatial data out of the DB through a WFS. Any assistance on this matter would be greatly appreciated!
Thanks!Any help debugging this issue would be greatly appreciated:
As per the documentation:
http://localhost:8888/SpatialWS-SpatialWS-context-root/wfsservlet?request=GetCapabilities&service=wfs&version=1.0.0
:this get request should return the capabilities info however I receive this error message instead in the browser:
<?xml version="1.0" encoding="UTF-8" ?>
- <ogc:ServiceExceptionReport version="1.2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/ogc http://localhost:8888/examples/servlets/xsds/OGC-exception.xsd" xmlns:ogc="http://www.opengis.net/ogc">
<ogc:ServiceException code="WFS-1042">Exception during processing request</ogc:ServiceException>
</ogc:ServiceExceptionReport>
The sytem out from the oc4j container provides this error message:
10/04/27 15:47:38 [oracle.spatial.ws.WSProperties, Tue Apr 27 15:47:38 MDT 2010,
INFO] No subject specified in request.
10/04/27 15:47:38 [oracle.spatial.ws.WSProperties, Tue Apr 27 15:47:38 MDT 2010,
ERROR] Oracle Spatial WS Server could not set up configuration parameters: jav
a.lang.RuntimeException: No subject specified in request.
10/04/27 15:47:38 [oracle.spatial.ws.servlet.WFSServlet, Tue Apr 27 15:47:38 MDT
2010, FATAL] java.lang.RuntimeException: java.lang.RuntimeException: No subject
specified in request.
at oracle.spatial.ws.WSProperties.getProperties(WSProperties.java:705)
at oracle.spatial.ws.servlet.WFSServlet.doGet(WFSServlet.java:108)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
stDispatcher.java:734)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
vletRequestDispatcher.java:391)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequ
estHandler.java:908)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
tHandler.java:458)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpReque
stHandler.java:226)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
va:127)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
va:116)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSo
cketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(Server
SocketAcceptHandler.java:234)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocket
AcceptHandler.java:29)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(
ServerSocketAcceptHandler.java:879)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
sableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.RuntimeException: No subject specified in request.
at oracle.spatial.ws.WSProperties.getUser(WSProperties.java:574)
at oracle.spatial.ws.WSProperties.getProperties(WSProperties.java:695)
... 16 more -
Interfacing Oracle spatial data with ArcView 9
Hello,
I'm trying to take my spatial data in Oracle which has SDO_GEOMETRY fields, and have it display in ArcView. I know I have to do something with SDO_GEOMETRY, but I'm not sure how. I've been reading that 3rd party tools can be used. Is this the only way, or is there something else I can do?
Thanks much,
Norathe way i use is through arcsde. register the oracle table with sde and then you can view it in any arc software.
there is another way through direct connect. i havent used it but you can find some help on esri website.
V -
i looked to the next link:
http://java.sun.com/docs/books/tutorial/jdbc/basics/connecting.html
I want to update spatial data.To the previous link i found how to update tables but not how to update tables which contain spatial data.For example:
CREATE TABLE customers (
customer_id NUMBER,
last_name VARCHAR2(30),
first_name VARCHAR2(30),
street_address VARCHAR2(40),
city VARCHAR2(30),
state_province_code VARCHAR2(2),
postal_code VARCHAR2(9),
cust_geo_location SDO_GEOMETRY);
INSERT INTO customers VALUES
(1001,'Nichols', 'Alexandra',
'17 Maple Drive', 'Nashua', 'NH','03062',
SDO_GEOMETRY(2001, 8307,
SDO_POINT_TYPE (-71.48923,42.72347,NULL), NULL, NULL));
if i want to update the costumer position (-71.48923,42.72347) how can i do this;;;Try posting this to the JDBC forum:
http://forum.java.sun.com/forum.jspa?forumID=48 -
Need Help about Spatial Data Load - Mapviewer
Hello everybody,
I need an immediate help about spatial data load. I installed Oracle mapviwer quick start and try to work on it. However, I could not pass the load step. My questions are;
1- Where can I find and download my country's data set (spatial data)
2- With mapviwer, how can I load spatial data to my tables on database (Oracle). Those tables have sdo_geometry columns and I want to query location data, but could not load
Regards,
DilekFor Mapviewer questions, please post in the following forum:
MapViewer
Thanks -
Export to "insert" spatial data
I'm using sqldeveloper-1.1.3.with an 11g R1 database. I'm trying to get the insert statements (including the SDO_GEOMETRY) from a table which I loaded from Shapefile.
I am getting inert statements without any spatial data like below:
Insert into TU (TRID,GEOM) values (100,'MDSYS.SDO_GEOMETRY');
I am using this method: Right-click on the table in the "connections explorer tree", select Export Data, then insert...
Is there any other way to export spatial data to insert sql.Thnx Irian
I used the same with sql Developer 2.1. It worked fine -
My project involves storing various types of spatial data in Oracle 8i. There is also going to be metadata collected for each project. The purpose of the metadata will be for discovery and retrieval of the spatial data. I would like to store the metadata entries (using WebDB to create entry form) as XML documents. What is the best way to create XML metadata from a HTML form? It appears that the new Xforms from W3C may accomplish this, although it's not really a standard yet. Also, it there a way to send the spatial data from a form created by WebDB? Would the XML metadata be stored in the spatial DB with the data or in a separate "metadata repository"? How would the metadata be attached to the data for query and discovery/retrieval? I appreciate any feedback. Thanks.
Jonrka1,
Spatial already uses a metadata table called user_sdo_geom_metadata where you need to store metadata for all of your spatial tables. Oracle spatial currently does not support metadata in XML format although it is being actively investigated in conjunction with Oracle 8i Spatial XML server. With the XML server you will be able to retrive spatial (and attribute) data as well as update the spatial table using XML.
Check OTN often for announcemnets on the XML server and related products.
For your customized XML spatial metadata you can store it anywhere (with a spatial db or in a separate repository), and you will have to maintain the link between the metadat and the real data yourself.
LJ
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by jonrka1 ():
My project involves storing various types of spatial data in Oracle 8i. There is also going to be metadata collected for each project. The purpose of the metadata will be for discovery and retrieval of the spatial data. I would like to store the metadata entries (using WebDB to create entry form) as XML documents. What is the best way to create XML metadata from a HTML form? It appears that the new Xforms from W3C may accomplish this, although it's not really a standard yet. Also, it there a way to send the spatial data from a form created by WebDB? Would the XML metadata be stored in the spatial DB with the data or in a separate "metadata repository"? How would the metadata be attached to the data for query and discovery/retrieval? I appreciate any feedback. Thanks.<HR></BLOCKQUOTE>
null -
I need to interact with spatial data, but I'm getting errors when tables have a SDO field in them. Is this supposed to work now?
I'm using an OracleDataAdapter, and calling adapter.FillSchema to retrieve the table's schema. I get an exception saying that a Custom type mapping for the SDO field is not specified or invalid. Do I need to manually map something to get SDO fields to work?
ThanksYes you have.
See here for an example:
http://www.orafaq.com/forum/t/27794/0/
Maybe you are looking for
-
Word 2008 doesn't work correctly with Exposé ... !
Hi, this is more a bother than anything else, but somehow Word 2008 doesn't work well at all with Exposé, as the windows aren't "recognized" by Exposé and incorrectly delimited ... Anyone having the same problem ? Cheers !
-
Working with array variables defined in the BPM process
Hello, I have created an array variable in my process. This array was created based on a custom type that contains 2 strings variables. How can I set/get and add new items to this array variable using java code? The only thing I know is that, if this
-
SB0460 Code 12 & code 10 in Win 7
&SB0460 Code 2 & code 0 in Win 7? :angry:Right getting annoyed as hell with this i have a sound blaster XtremeGamer which works fine ( apart from S.C.P).?But when i try to put my other card in my Creative Labs Sound Blaster X-Fi Platinum 7. SB0460 (6
-
JDBC app like the ones in MS Access
Hi, Pardon me, but I am very new in jdbc databases and what to know where I can find information of how can I make a database application with buttons or links like Next and Previous, Last, First; and to show only 10 registers in a web page in a big
-
Hello, I am using Convergence 1 Update 3 I wonder if it is possible to configure convergence to load message images by default? Users are complaining about clicking on load images button for every message. Any idea would be apreciated. Thanks.