WFS 1.0 Trips up over multiple namespace use for TinyOWS server
---------------------------------------------------------------
Key: GEOT-3665
URL: https://jira.codehaus.org/browse/GEOT-3665
Project: GeoTools
Issue Type: Bug
Components: wfs plugin
Affects Versions: 8.0-M0
Reporter: Jody Garnett
Assignee: Gabriel Roldán
>From email:
{panel}
I have a TinyOWS server configured to have feature types in two namespaces
tows: and lv:
I can get the tows: feature types on uDig map but not the lv: feature types.
The error uDig version 1.2 gives is as follows:
{noformat}
Caused by: java.io.IOException: org.xml.sax.SAXException: cannot merge two
target namespaces. http://www.tinyows.org/ http://latuviitta.fi/
at org.geotools.xml.gml.FCBuffer.hasNext(FCBuffer.java:326)
at
org.geotools.data.wfs.v1_0_0.WFSFeatureReader.loadElement(WFSFeatureReader.java:189)
at
org.geotools.data.wfs.v1_0_0.WFSFeatureReader.hasNext(WFSFeatureReader.java:178)
at org.geotools.data.ReTypeFeatureReader.hasNext(ReTypeFeatureReader.java:192)
at
org.geotools.data.wfs.v1_0_0.NonStrictWFSStrategy.createFeatureReaderGET(NonStrictWFSStrategy.java:134)
at
org.geotools.data.wfs.v1_0_0.NonStrictWFSStrategy.createFeatureReader(NonStrictWFSStrategy.java:101)
at
org.geotools.data.wfs.v1_0_0.NonStrictWFSStrategy.getFeatureReader(NonStrictWFSStrategy.java:72)
at
org.geotools.data.wfs.v1_0_0.WFS_1_0_0_DataStore.getFeatureReader(WFS_1_0_0_DataStore.java:747)
at
org.geotools.data.DefaultFeatureResults.reader(DefaultFeatureResults.java:210)
at
org.geotools.data.store.DataFeatureCollection.openIterator(DataFeatureCollection.java:224)
at
org.geotools.data.store.DataFeatureCollection.iterator(DataFeatureCollection.java:194)
at
org.geotools.renderer.lite.StreamingRenderer.drawOptimized(StreamingRenderer.java:1931)
... 8 more
Caused by: org.xml.sax.SAXException: cannot merge two target namespaces.
http://www.tinyows.org/ http://latuviitta.fi/
at org.geotools.xml.SchemaFactory$MergedSchema.<init>(SchemaFactory.java:492)
at org.geotools.xml.SchemaFactory.merge(SchemaFactory.java:386)
at org.geotools.xml.SchemaFactory.getRealInstance(SchemaFactory.java:322)
at org.geotools.xml.SchemaFactory.getInstance(SchemaFactory.java:277)
at
org.geotools.xml.handlers.ElementHandlerFactory.startPrefixMapping(ElementHandlerFactory.java:86)
at org.geotools.xml.XMLSAXHandler.startElement(XMLSAXHandler.java:373)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
{noformat}
I can use all my WFS feature types with the following WFS clients: ArcGIS,
MapInfo, Kosmo GIS, QGis, gvSIG, Cadcorp SIS Map Browser and Gaia.
Regards,
-Jukka Rahkonen-
{panel}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel