Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] Request with a GeoServer WFS and my geometry

odd.  I wonder if the geoserver version is the problem.  The uDig WFS does not support 1.1.  Is it possible to check geoserver to see the requests that are made?  Or maybe verify the response?



On Mon, Jun 7, 2010 at 11:58 AM, Virginie BERRE <virginie.berre@xxxxxxxxxxxx> wrote:

Dear all,

 

I try to make a request with a Filter between a geoserver WFS and a geometry.

I constructs the filter :

 

FilterFactory2 factory = (FilterFactory2) CommonFactoryFinder.getFilterFactory(GeoTools.getDefaultHints());

SimpleFeatureType schema = source.getSchema();

GeometryDescriptor geomDesc = schema.getGeometryDescriptor();

Name geomName = geomDesc.getName();

 

Intersects intersects = factory.intersects(factory.property(geomName), factory.literal(myGeom));

FeatureCollection<SimpleFeatureType, SimpleFeature> features = source.getFeatures(intersects);

Iterator<SimpleFeature> iterator = features.iterator();

while( iterator.hasNext() ){            

      SimpleFeature tabAssFeature = iterator.next();

                …

 

source.getFeatures(intersects) raises logs:

7 juin 2010 11:49:56 org.geotools.xml.XMLSAXHandler fatalError

GRAVE: FATAL Element or attribute do not match QName production: QName::=(NCName':')?NCName.

7 juin 2010 11:49:56 org.geotools.xml.XMLSAXHandler fatalError

GRAVE: col 616, line 1

7 juin 2010 11:49:56 org.geotools.data.wfs.v1_0_0.NonStrictWFSStrategy createFeatureReaderPOST

ATTENTION: java.io.IOException: org.xml.sax.SAXParseException: Element or attribute do not match QName production: QName::=(NCName':')?NCName.

7 juin 2010 11:49:56 org.geotools.xml.XMLSAXHandler fatalError

style='font-size:10.0pt;font-family:"Courier New";color:red'>: Element or attribute do not match QName production: QName::=(NCName':')?NCName.

      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.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 fr.magellium.kheper.etu_analyser.ui.views.ScenarioProductionView$6.widgetSelected(ScenarioProductionView.java:750)

      ... 26 more

Caused by: org.xml.sax.SAXParseException: Element or attribute do not match QName production: QName::=(NCName':')?NCName.

      at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)

      at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)

      at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

      at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

      at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

      at org.apache.xerces.impl.XMLEntityScanner.scanQName(Unknown Source)

      at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)

      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)

      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

      at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

      at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

      at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)

      at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)

      at javax.xml.parsers.SAXParser.parse(Unknown Source)

      at org.geotools.xml.DocumentFactory.getInstance(DocumentFactory.java:140)

      at org.geotools.data.wfs.v1_0_0.WFSFeatureReader.run(WFSFeatureReader.java:125)

 

I've readen this : http://www.mail-archive.com/geotools-gt2-users@xxxxxxxxxxxxxxxxxxxxx/msg07701.html

The WFS feature typename begins with a number (it's "1DC"), but I don't think it's the problem…

 

Could you help me please?

Thanks!

 

Regards,

 

Virginie BERRE - Ingénieur d'études et de développement

+33 (0)1 30 15 40 58 (n° direct)

virginie.berre@xxxxxxxxxxxx


ZA Les Erables - bâtiment 4

66, route de Sartrouville
78230 Le Pecq
Tel: +33 (0)1 30 15 40 50 (standard)
Fax: +33 (0)1 30 15 40 60
www.magellium.fr

MAGELLIUM

MAGELLIUMPensez environnement ! N'imprimez ce mail que si c'est vraiment nécessaire !

 


_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

 

------=_NextPart_001_0074_01CB065C.1D622400-- ------=_NextPart_000_0073_01CB065C.1D5FB300 Content-Type: image/gif; name="image002.gif" Content-Transfer-Encoding: base64 Content-ID: R0lGODlhGwAbAIcAADamKef05snmxdfs1HnCcEGqNRKWBVa0TCliIP79/m29ZJ+inGW5W4nKgvT5 8yGbE6rYpLfesrzguJzSlv7+/YLGevz+/P3+/qTVnSuhHl22UrLcrJDNiMLjvtDK0tDpzPr9+f39 /P78/eLx3/z8/Ovp7N3v2i+HJEmuPu326xp9DU2wQvf69vrt++DW4Pn7+X+DfPH48MS7xZTPjby/ ufr9+5jQkfv0/FKxRvf89/v8+v/8/2SPXf7+/v/+//////f89//6/I9k//7+/v///v///wAAAAAA AQY8dQAC1P//AAAAAQAAAAAAGP//AAAAAQAAGACH4NgAABJ2kAAAARJ44JHuGNgAAP///5IG67/D ydgAAAAAAAAAAAAAAxJ4JBUGQBJ5GJH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InoFTAAxzM8FkDoCUV2VEoTXhChCitYAMD DVSVlFbBLUVhThkQgAEOMiUFHIghgliSVIcxgNNYf6UUZI0ouXTWBigkqeSSSa7ApJIFCABSQSGA oIMOaVWJ5ZVWgtClDiTkYJxxEpWZUEAAOw= ------=_NextPart_000_0073_01CB065C.1D5FB300 Content-Type: image/gif; name="image003.gif" Content-Transfer-Encoding: base64 Content-ID: R0lGODlhXgA3ALMAAP///06RyLrJ1QImQsDCwYiIhX2QnqSkokFdcoGx2NLj8SZGXtze3/H09pmo s2B3iSH5BAAAAAAALAAAAABeADcAAAT/EMhJq7046827/yA3DEJonmg4lmnrvusrz2BM37hl5/y9 90DXL0g0DYvIzjHJxCyb0EmMgTBEr5KYYIDAXrVcbxTcFTfJ5jMJsC2nkeg3fN2Wz0t1OzGuB/L7 PH+AOHEKAgqDNHECASyJMHRhbAmOjy2CRQwOBg4NAJqcnhQMBqUMFgSmFqScp1KRZQwErgyVtaIA DbIEnroEvBoPIwsjCMMjDhPCXCNWEgzExFyiDcbMA8lZsBIEBQQSBwWuAOG0BQXh6Ofp3xcGAwue BMOeWwOnDiOeDCPtIw+5hJV5Fw/AvHva8Ejq1q7cBIcNzp1qkG5iuHYVjDkDoHFCx3cb/4VZsTeB JMcBG4lli8MQnLiHL7sdmCCTJroLHSXkPGmFiiOQbEaUFMpTQgMbLL25HOewJrebT2da2EkV5YQG mwx0NBl0gE4upYgBTBi0TEtyL5cahLpWalucVr9uzPkOHgJiI4l2/boAgd9sZPOcdajW6duocOfG LXrQFVCuJnfWeqXQrFK0TGOyNWyYQlXFVt6NBfBYb+TFxlZuW9swLebDsDt7RE07NLwJKj+NcJXP 68mxRwf4Wz34ckTNbjmz9Vx7tpXgDwgYKwhg2aYRvvkNiB6Nctmn7Y7PCidVefLlE979XCNBvdEH 0QzgIh1fL4NlC+R7z8PgwDiK62DEwKllnxAYEUZFcGWJDAzgouCCLfCzwFC+pVDJI9q5clALCiQA IV+/NNNCAh5+SBp2CwB2AiOI4CDAIfPpwUgAQHRIIoxvNJBAAI0U0SGPAVCiQItQzBhkE4bsCOSN QwZhCJBBxphEAzZCyeONOHL4o5UJSBkFlSRaySUlLw5p5pkvChCmmEt6aUaSbMYpp5wJEPkIlS8q OeeeQQrg5odD5rlmnEw28KeJJkYAADs ------=_NextPart_000_0073_01CB065C.1D5FB300--

Back to the top