SRS error when accessing Oracle spatial based WFS layer from GWP

We have two point features that were created as Oracle Spatial features using dgn2sdo and have been defined in GWP as separate WFS features.  When I query the items through the example site data is returned, all good.  When I try to read the features through an OCG compliant viewer, I can see the features, but when I select them I get the following error in the GWP log:

An error occurred : The GML Writer requires a Spatial Reference System set on the features to write proper GML.

Any ideas?

Thanks,

Simon

Parents Reply Children
  • Do you have any recommendations to how we would set that reference? If I update the table with an SRID, we get the projection issues in the administrator I wrote about earlier and the log still shows the SRS error.
  • Hi Simon,

    1. I modified the data in my spatial table rows setting the SRID to null. But I maintained in the metadata in USER_SDO_GEOM_METADATA the SRID.

    2. I created the Oracle Spatial graphical source setting with the coordinate system ; Then created the WFS Service and added the feature to the Service.

    3. From a WFS client I connected to the WFS Service but cannot display the data. I verified the logs and see "An error occurred : The GML Writer requires a Spatial Reference System set on the features to write proper GML.".

    As this is the same exact message I think this replicates the same issue and validates what I suspected, the spatial data in the rows must include also the SRID in order to work.

    4. To update the spatial table rows in order to modify the SRID from null to an SRID you can execute a query similar to the example below. First the spatial index must be dropped then the SRID updated, then the spatial index recreated. In my case my data is using SRID 82247.

    -------
    drop index BLOCK_IDX;
    update block a set a.geometry.sdo_srid=82247;
    CREATE INDEX "EAST_SPATIAL"."BLOCK_IDX" ON "EAST_SPATIAL"."BLOCK" ("GEOMETRY")
    INDEXTYPE IS "MDSYS"."SPATIAL_INDEX" PARAMETERS ('layer_gtype=multipolygon');
    ------

    5. After executing this SQL I tested in the WFS client and this turn it worked correctly, the data is queried and retrieved and the info tool works correctly.

    I hope this helps
    Regards
    Carlos



    Answer Verified By: Simon Langham 

  • Updating the projection SRID in both is working. Thanks for the help.
  • I have the same problem but I collect data managed by SQL Server. I do not have specific tables as you mentioned (e.g all_sdo_geom_metadata). How can I manage this in case using SQL Server? What value of  SRID shall I use?