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

Similar Messages

  • Cannot edit Oracle Spatial data

    Hello,
    I am running into some problems with my Oracle Spatial data. Maybe somebody has some insight. Here's what is going on:
    1) I am able to connect to and view the data in uDig but I cannot edit the data and also the data shows up in the table of contents with a line symbol even though it is polygon data (it renders correctly in the map as polygons). I try using the 'Create Polygon Geometries' tool and it errors saying 'Create Polygon Tool' cannot operate on current layer.
    2) When I try testing edits through WFS-T it errors and tells me that the table is read only.
    The table is in the USERS tablespace and I have verified that it is read/write. I also set object permissions on the user: ALTER, DELETE, INSERT, SELECT, UPDATE
    Am I missing something obvious? Anyone else have this problem? Thanks a lot for any ideas anyone has.

    My apologies for the confusion. My insert statement DID work just fine. I just wasn't seeing it...probably because I was querying the table in Enterprise Manager DB Control and it looks like it takes some time to refresh. So it appears that user permissions are not the issue.
    I have used two data loading methods:
    Before loading data, I needed to create a user defined coordinate reference system:
    1 create projection operation for my custom projection
    2 configure projection parameters
    3 create the projected CRS in mdsys.sdo_coord_ref_system
    First data load steps
    1 shp2sdo.exe my_shapefile my_table -g geom -s 1000002 -v
    2 execute my_table.sql
    3 execute sqlldr.exe
    4 EXECUTE SDO_MIGRATE.TO_CURRENT('my_table','GEOM');
    5 CREATE INDEX my_table_index ON my_table(geom) INDEXTYPE IS MDSYS.SPATIAL_INDEX;
    Second data load steps:
    1 open up MapBuilder, make a connection, and go through the Import Shapefile wizard. MapBuilder automatically creates a spatial index.
    Does it appear that I am missing any steps or doing anything obviously wrong that would be causing me to not be able to edit the data through clients such as uDig or WFS-T?

  • Keep the Oracle Spatial data in memory

    I can keep any database tables in memory (for fast access) using Oracle Coherence (the In Memory Data Grid).
    Now I want to store Oracle Spatial data in memory, is it possible?

    I think it is possible. The difference is it is not easy to recreate some Spatial-related functions and procedures in caches. But you can invoke them from the in-memory applications using Oracle Spatial Java API.

  • Keep Oracle Spatial data in Coherence Caches?

    Can I keep Oracle Spatial data in Coherence Caches?

    You can store the Oracle Spatial data in Coherence caches. But creating Spatial indexes in Coherence neeeds too much effort, I guess. How do you create the Spatial geocoding package, map symbols, map styling rules and Spatial network model?
    Edited by: junez on 07-Jan-2010 12:24

  • Keep Oracle spatial data in memory

    Can I keep Oracle Spatial data (including metadata and related functions and procedures) in memory using TimesTen?

    It depends what form the data takes. TimesTen does not support any spatial types, only regular relational data types. Also, TimesTen does not support any of the Oracle spatial functions.
    In general this is not possible.
    Chris

  • Controlling access to Oracle Mapviewer spatial data through VPD

    I am building a web GIS application in Oracle Application Express (APEX) and have used the Virtual Private Database feature of Oracle Database 11g Enterprise Edition so as to ensure row level security. I've integrated APEX with Oracle Mapviewer through Oracle Maps API in order to display a map.
    VPD feature is working properly through the command prompt at the database level but I also need to use the VPD policy at the application level so that each authenticated user can only see his own spatial data on the map.
    So far I have accomplished that by creating as many data sources as the number of application users on the mapViewerConfig.xml file. Every time a user logs in the web GIS application, the correct data source is being employed.
    I was wondering if there is any other parameterised way that I can perform this access control functionality without having to create all these data sources.
    Many thanks in advance.

    Yes you can define a single "secure" MapViewer data source to achieve VPD or make use of your database VPD setup. For more details and how to get the Apex app user to MapViewer and then onto VPD you can check out my blog post here: http://oraclemaps.blogspot.com/2008/09/apex-oracle-maps-and-secure-mapping.html
    hope this helps,
    LJ

  • Oracle Spatial functionality with WFS

    Hi all
    My first post here so be gentle on me ;-)
    This may be an obvious question but here goes ...
    When using a WFS client can you access the full SDO_... SQL functions within Oracle Spatial? I've had a read of the WFS spec and it is all a bit vague on how the queries get passed through to the data store.
    Also with the WFS locking, is this done at the web server level? If so how would that impact on any direct access to the database? A bit dangerous??
    Appreciate any advice on WFS implemtations with a 9i back end. I want to retain the full native Oracle functionality and still deploy via WFS ... a pipe dream??
    Thanks
    Richard

    Thanks for your response Andreas
    Sorry, perhaps I wasn't clear, I realise the WFS client will never directly access the data source, that it is the WFS server that makes the request to the data store, not the client, but can the call be passed through to Oracle as native SQL?
    I think I found the answer in the OGC Filter Encoding Imp Spec where it desribes in great detail the optional filter component of a WFS request. It desribes the CQL filter operators that include some spatial operators. These could, I understand, be translated from CGL and Feature based schema to SQL (in GML?) and relational based schema.
    While I don't think at first glance that the spatial operators in CQL match all the Oracle SDO_ functions they probably go far enough for most normal users.
    Am I on the right track?
    Does anyone know of any work that has been done in this filter translation to SQL and if it has been implemented successfully anywhere.
    I think the locks would still pose a problem, but that's for another day :-)
    Thanks
    Richard

  • 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,
    Nora

    the 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

  • [Begginer] How to view my Oracle spatial Data ?

    I'm a begginer , I know how to make and insert Spatial data but , i want to see it like map , how ?
    Please tell me the software and good documentation ?

    Try using MapViewer. It is downloadable from OTN:
    http://otn.oracle.com/products/spatial
    then click on the software button to find instructions and the MapViewer software.

  • Spatial data through JDBC driver

    Hi,
    I have a spatial table which has polygon, linestring and points stored in the geometry column. Is there any API available to know whether the stored data is ploygon/point/linestring. I am using thin JDBC driver to connect to Oracle. Also are there APIs available to get the coordiniates, offset etc from polygon. Please let me know if there are any tutorials/examples available for working with spatial data and JDBC driver.
    Smitha

    Hi,
    You could use Oracle Spatial Java Class Library, available at: http://www.oracle.com/technology/software/products/spatial/index.html
    It is quite easy to use it.
    Regards,
    Andrejus

  • Update Oracle spatial data!

    Hi everybody!
    i'm new in Spatial, i want to update data in Oracle spatial to make a map of Asia with couty, street, state...
    Could any body tell me where source to update.
    Thanks so much.

    I do not understand.
    Do You need to update Your own tables, or You need to find reference data for Asia which You intend to import into Oracle Spatial?
    If You are seeking for reference data for Asia, then You need to find it for every country. I doubt that exist for entire continent.
    If You have Your own table and want to extend it with conty, street etc, You can use simple ALTER statement, like:
    ALTER TABLE <table_name> ADD (
    state VARCHAR2(25),
    county VARCHAR(25)
    );

  • Oracle spatial data compression (using advance compression).

    What are the bast practice for oracle spatial to compress data using advance compression).
    ver. 11.2.0.3

    Details about Advanced Compression can be found in:
    Oracle E-Business Suite Release 12.1 with Oracle Database 11g Advanced Compression (Doc ID 1110648.1)
    Is Advanced Compression Supported In The E-business Suite ? (Doc ID 1368152.1)
    https://blogs.oracle.com/stevenChan/entry/using_advanced_compression_with_e-business_suite
    Thanks,
    Hussein

  • Query of Oracle Spatial data in 1.5.4

    I run the below in SQLPLUS and all is well. 1.5.4
    select SDO_gcdr.geocode('ADCI', 2 SDO_keywordArray( '1052 Thomas Jefferson St','Washington,DC 20007'), 'US', 'DEFAULT')
    3 from dual ;
    SDO_GCDR.GEOCODE('ADCI',SDO_KE(ID, ADDRESSLINES, PLACENAME, STREETNAME, INTERSEC
    SDO_GEO_ADDR(0, SDO_KEYWORDARRAY(), NULL, 'THOMAS JEFFERSON ST NW', NULL, NULL,
    'WASHINGTON', NULL, 'DC', 'US', '20007', NULL, '20007', NULL, '1052', 'THOMAS JE
    FFERSON', 'ST', 'F', 'F', NULL, 'NW', 'L', .913793103, 18897889, '????#EN?T?B281
    CP?', 2, 'DEFAULT', -77.060179, 38.9040445)
    I can also get the result in TOAD.
    When I run through SQL Developer I get the below:
    oracle.sql.STRUCT@16433e4

    logged bug 8640482 for this.

  • Uploading bulk data in oracle spatial

    Hi,
    I need to upload a map data in (input is ESRI File geodatabase) in Oracle Spatial using ArcSDE.
    I have Oracle spatial 10g, ArcGIS desktop 9.3. I am able to connect the oracle spatial data using arcsde and i am able to view those maps in arcmap. Also, i am able to upload small esri shape files in oracle spatial using esri arccatalog through arcsde.
    I would like to know, the steps to be followed to upload a road network for North america (around 15gb) data as SDO. If there is any document available it will be more useful for me.
    Or pls. share your experience in this.
    Thanks,
    Vadivelan. P

    Yikes,
    You won't require 150 gig of undo to load your data with ESRI tools. Noel might need to start a new thread to discuss that issue as his bulk loader may need some tuning. :p
    All ESRI bulk loaders use a rather modest auto-commit. ArcCatalog is 1000 records and sdeimport is 2000 records by default. So after loading that many records the tool does a commit and thus avoids much undo at all. You can easily change this number to tune performance (higher for point data, lower for huge honkin' polygons) in the parameters.
    At this point I would say the heck with all these torpedoes and give your load a try. You stated in the very first thread that you have loaded shapefiles successfully into Oracle Spatial so the assumption is you have your dbtune keywords setup and are all set with the issues of mapping ESRI coordinate systems into Oracle Spatial. So full steam ahead! Another idea would be to load a small subset of the data and make sure its correct to your needs before doing the whole thing. My opinion is I don't think you need to worry about the 15 gig size of the load. Yes it will take some time to do but I would bet whatever problems you run into are the same you would face with a 15 meg load.
    Cheers and good luck,
    Paul

  • Locking data in oracle spatial

    Is it possibile to define a priori some policies of oracle spatial data? Or does it depend only from sql statements used in custom applications? for example select for update, and so on...
    Thanks in advance to everyone.

    Well, like I recommend to all our new database code hires..
    Read this book before writing code:
    http://www.amazon.com/gp/product/1590595300/qid=1124156571/sr=8-1/ref=pd_bbs_1/103-9669230-6117467?n=507846&s=books&v=glance
    ..And for more answers to questions, go here (try a search on locking):
    http://asktom.oracle.com/pls/ask/f?p=4950:1:9680994403836262994:RESET::1
    ..Another good site is:
    http://www.jlcomp.demon.co.uk/
    If that doesn't do it, try this forum:
    General Database Discussions
    To answer your question, you can lock rows any way you need to. I try not to ever lock rows, unless absolutly required (few and far between). If you are comming from another database you may find, after reading the above, that there is no need to create locks in Oracle to do the same thing as the other database.

Maybe you are looking for

  • Hp Pavillion G6 wifi do not work

    I found problems with realtek card in my G6 pavillion. My husband ordered brand new Broadcom netwroking card with bluetooth and installed it in hope to fix the wlan issue. How ever after fresh installing broadcom wifi drivers, we cannot  enable wlan

  • Can't login to Server Preferences

    Have 10.6.1 Server running as a Open Directory Master. I cannot log in to Server Preferences using either my admin or directory administrator account. I get the message "Unable to authenticate to the Open Directory Master" - "This computer record cre

  • Which fan is best to use with hp dv6-6198sp?

    The laptop is orginally a dv6-6153ea but i upgraded the motherboard and cpu to that of a dv6-6198sp, So it now has a ati 6770 and core i7 2670qm which i need to keep cool Temps are reaching 95 on load which i feel isn't that great! I have two fans i

  • Stuttering slow motion

    Everytime I do a slow motion effect is stutters. Any ideas on how to smooth it out?

  • How to position a select list in the create region

    Hello, I would like to position a select list item in the create region, I think we can do that somehow using javascript but I don't have an idea how to make it. Thanks in advance!