|
|
|
Roy Braam
|
Some javascript/style in this post has been disabled (why?)
Hello list,When i'm using the WFSDatastore (1.1.0) on a wfs 1.1.0 service. The datastore gives the following error: java.lang.IllegalStateException: Unrecognized geometry element {http://www.opengis.net/gml}Surface at org.geotools.data.wfs.v1_1_0.parsers.XmlSimpleFeatureParser.parseGeom(XmlSimpleFeatureParser.java:265) at org.geotools.data.wfs.v1_1_0.parsers.XmlSimpleFeatureParser.parseAttributeValue(XmlSimpleFeatureParser.java:214) at org.geotools.data.wfs.v1_1_0.parsers.XmlSimpleFeatureParser.parse(XmlSimpleFeatureParser.java:183) at org.geotools.data.wfs.v1_1_0.WFSFeatureReader.<init>(WFSFeatureReader.java:52) at org.geotools.data.wfs.v1_1_0.WFS_1_1_0_DataStore.getFeatureReader(WFS_1_1_0_DataStore.java:340) at org.geotools.data.wfs.v1_1_0.WFSFeatureCollection.reader(WFSFeatureCollection.java:168) at org.geotools.data.store.DataFeatureCollection.openIterator(DataFeatureCollection.java:229) at org.geotools.data.store.DataFeatureCollection.iterator(DataFeatureCollection.java:199) at org.geotools.data.store.DataFeatureCollection.features(DataFeatureCollection.java:188) at nl.b3p.zoeker.services.Zoeker.zoekMetConfiguratie(Zoeker.java:106) at nl.b3p.zoeker.services.Zoeker.zoek(Zoeker.java:59) The request done: <wfs:GetFeature handle="GeoTools 2.5.RC-1 WFS DataStore" maxFeatures="1000" outputFormat="text/xml; subtype=gml/3.1.1" resultType="results" service="WFS" version="1.1.0" xmlns:app="http://www.deegree.org/app" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ows="http://www.opengis.net/ows" xmlns:wfs="http://www.opengis.net/wfs"> <wfs:Query srsName="urn:ogc:def:crs:EPSG::28992" typeName="app:Plangebied"> <ogc:Filter> <ogc:PropertyIsLike escapeChar="\" singleChar="?" wildCard="*"> <ogc:PropertyName>overheidscode</ogc:PropertyName> <ogc:Literal>*0203*</ogc:Literal> </ogc:PropertyIsLike> </ogc:Filter> </wfs:Query> </wfs:GetFeature> The geom gml part returned and causes the error (i removed some coorinates): <app:geometrie> <gml:Surface srsName='urn:ogc:def:crs:EPSG::28992'> <gml:patches> <gml:PolygonPatch> <gml:exterior> <gml:LinearRing> <gml:posList srsDimension='2' count='1156'>167737.178 462109.239 167732.836 ...</gml:posList> </gml:LinearRing> </gml:exterior> <gml:interior> <gml:LinearRing> <gml:posList srsDimension='2' count='20'>167635.811 461667.507 167635.8 461667.333 1...</gml:posList> </gml:LinearRing> </gml:interior> <gml:interior> <gml:LinearRing> <gml:posList srsDimension='2' count='17'>167797.684 461759.832 167772.607 461763.591 ...</gml:posList> </gml:LinearRing> </gml:interior> <gml:interior> <gml:LinearRing> <gml:posList srsDimension='2' count='31'>167787.24 461683.687 167786.124 461677.638 ...</gml:posList> </gml:LinearRing> </gml:interior> <gml:interior> <gml:LinearRing> <gml:posList srsDimension='2' count='224'>168010.198 461464.676 ...</gml:posList> </gml:LinearRing> </gml:interior> <gml:interior> <gml:LinearRing> <gml:posList srsDimension='2' count='44'>167994.584 461720.368 167984.016 461720.102 1...</gml:posList> </gml:LinearRing> </gml:interior> <gml:interior> <gml:LinearRing> <gml:posList srsDimension='2' count='185'>168109.304 461112.198 168111.0 461112.483 ...</gml:posList> </gml:LinearRing> </gml:interior> </gml:PolygonPatch> </gml:patches> </gml:Surface> </app:geometrie> If 3.1.1 is not supported how can you force the wfsdatastore to use a nother outputformat? Tia Roy ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Geotools-gt2-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users |
||||||||||||||||
|
Justin Deoliveira
|
Hi Roy,
Unfortunately the wfs 1.1 client does not handle surfaces... as you see. Have you tried the same request using wfs 1.0? Or do you require wfs 1.1 functionality? Gabriel: It is too bad we can't sync up the xsd stuff with the wfs module, since parsing surfaces is handled there now. Well simple surfaces that is. -Justin Roy Braam wrote: > Hello list, > > When i'm using the WFSDatastore (1.1.0) on a wfs 1.1.0 service. The > datastore gives the following error: > > java.lang.IllegalStateException: Unrecognized geometry element > {http://www.opengis.net/gml}Surface > at > org.geotools.data.wfs.v1_1_0.parsers.XmlSimpleFeatureParser.parseGeom(XmlSimpleFeatureParser.java:265) > at > org.geotools.data.wfs.v1_1_0.parsers.XmlSimpleFeatureParser.parseAttributeValue(XmlSimpleFeatureParser.java:214) > at > org.geotools.data.wfs.v1_1_0.parsers.XmlSimpleFeatureParser.parse(XmlSimpleFeatureParser.java:183) > at > org.geotools.data.wfs.v1_1_0.WFSFeatureReader.<init>(WFSFeatureReader.java:52) > at > org.geotools.data.wfs.v1_1_0.WFS_1_1_0_DataStore.getFeatureReader(WFS_1_1_0_DataStore.java:340) > at > org.geotools.data.wfs.v1_1_0.WFSFeatureCollection.reader(WFSFeatureCollection.java:168) > at > org.geotools.data.store.DataFeatureCollection.openIterator(DataFeatureCollection.java:229) > at > org.geotools.data.store.DataFeatureCollection.iterator(DataFeatureCollection.java:199) > at > org.geotools.data.store.DataFeatureCollection.features(DataFeatureCollection.java:188) > at nl.b3p.zoeker.services.Zoeker.zoekMetConfiguratie(Zoeker.java:106) > at nl.b3p.zoeker.services.Zoeker.zoek(Zoeker.java:59) > > The request done: > <wfs:GetFeature handle="GeoTools 2.5.RC-1 WFS DataStore" > maxFeatures="1000" outputFormat="text/xml; subtype=gml/3.1.1" > resultType="results" service="WFS" version="1.1.0" > xmlns:app="http://www.deegree.org/app" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:gml="http://www.opengis.net/gml" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:ows="http://www.opengis.net/ows" > xmlns:wfs="http://www.opengis.net/wfs"> > <wfs:Query srsName="urn:ogc:def:crs:EPSG::28992" typeName="app:Plangebied"> > <ogc:Filter> > <ogc:PropertyIsLike escapeChar="\" singleChar="?" wildCard="*"> > <ogc:PropertyName>overheidscode</ogc:PropertyName> > <ogc:Literal>*0203*</ogc:Literal> > </ogc:PropertyIsLike> > </ogc:Filter> > </wfs:Query> > </wfs:GetFeature> > > The geom gml part returned and causes the error (i removed some coorinates): > <app:geometrie> > <gml:Surface srsName='urn:ogc:def:crs:EPSG::28992'> > <gml:patches> > <gml:PolygonPatch> > <gml:exterior> > <gml:LinearRing> > <gml:posList srsDimension='2' > count='1156'>167737.178 462109.239 167732.836 ...</gml:posList> > </gml:LinearRing> > </gml:exterior> > <gml:interior> > <gml:LinearRing> > <gml:posList srsDimension='2' > count='20'>167635.811 461667.507 167635.8 461667.333 1...</gml:posList> > </gml:LinearRing> > </gml:interior> > <gml:interior> > <gml:LinearRing> > <gml:posList srsDimension='2' > count='17'>167797.684 461759.832 167772.607 461763.591 ...</gml:posList> > </gml:LinearRing> > </gml:interior> > <gml:interior> > <gml:LinearRing> > <gml:posList srsDimension='2' > count='31'>167787.24 461683.687 167786.124 461677.638 ...</gml:posList> > </gml:LinearRing> > </gml:interior> > <gml:interior> > <gml:LinearRing> > <gml:posList srsDimension='2' > count='224'>168010.198 461464.676 ...</gml:posList> > </gml:LinearRing> > </gml:interior> > <gml:interior> > <gml:LinearRing> > <gml:posList srsDimension='2' > count='44'>167994.584 461720.368 167984.016 461720.102 1...</gml:posList> > </gml:LinearRing> > </gml:interior> > <gml:interior> > <gml:LinearRing> > <gml:posList srsDimension='2' > count='185'>168109.304 461112.198 168111.0 461112.483 ...</gml:posList> > </gml:LinearRing> > </gml:interior> > </gml:PolygonPatch> > </gml:patches> > </gml:Surface> > </app:geometrie> > > If 3.1.1 is not supported how can you force the wfsdatastore to use a > nother outputformat? > > Tia > > Roy > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > > > ------------------------------------------------------------------------ > > _______________________________________________ > Geotools-gt2-users mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users -- Justin Deoliveira OpenGeo - http://opengeo.org Enterprise support for open source geospatial. ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Geotools-gt2-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users |
||||||||||||||||
|
Gabriel Roldan
|
Justin Deoliveira wrote:
> Hi Roy, > > Unfortunately the wfs 1.1 client does not handle surfaces... as you see. > Have you tried the same request using wfs 1.0? Or do you require wfs 1.1 > functionality? > > Gabriel: It is too bad we can't sync up the xsd stuff with the wfs > module, since parsing surfaces is handled there now. Well simple > surfaces that is. right. Long term plan was always to use StreamingParser. Problem begin it goes OOM and I couldn't use it for the FGDC project. I'm looking forward to work on it for good, but it'll have to be with your help wrt the parser. Aside, can StreamingParser use ParserDelegate as Parser does? Cheers, Gabriel > > -Justin > > Roy Braam wrote: >> Hello list, >> >> When i'm using the WFSDatastore (1.1.0) on a wfs 1.1.0 service. The >> datastore gives the following error: >> >> java.lang.IllegalStateException: Unrecognized geometry element >> {http://www.opengis.net/gml}Surface >> at >> org.geotools.data.wfs.v1_1_0.parsers.XmlSimpleFeatureParser.parseGeom(XmlSimpleFeatureParser.java:265) >> >> at >> org.geotools.data.wfs.v1_1_0.parsers.XmlSimpleFeatureParser.parseAttributeValue(XmlSimpleFeatureParser.java:214) >> >> at >> org.geotools.data.wfs.v1_1_0.parsers.XmlSimpleFeatureParser.parse(XmlSimpleFeatureParser.java:183) >> >> at >> org.geotools.data.wfs.v1_1_0.WFSFeatureReader.<init>(WFSFeatureReader.java:52) >> >> at >> org.geotools.data.wfs.v1_1_0.WFS_1_1_0_DataStore.getFeatureReader(WFS_1_1_0_DataStore.java:340) >> >> at >> org.geotools.data.wfs.v1_1_0.WFSFeatureCollection.reader(WFSFeatureCollection.java:168) >> >> at >> org.geotools.data.store.DataFeatureCollection.openIterator(DataFeatureCollection.java:229) >> >> at >> org.geotools.data.store.DataFeatureCollection.iterator(DataFeatureCollection.java:199) >> >> at >> org.geotools.data.store.DataFeatureCollection.features(DataFeatureCollection.java:188) >> >> at nl.b3p.zoeker.services.Zoeker.zoekMetConfiguratie(Zoeker.java:106) >> at nl.b3p.zoeker.services.Zoeker.zoek(Zoeker.java:59) >> The request done: >> <wfs:GetFeature handle="GeoTools 2.5.RC-1 WFS DataStore" >> maxFeatures="1000" outputFormat="text/xml; subtype=gml/3.1.1" >> resultType="results" service="WFS" version="1.1.0" >> xmlns:app="http://www.deegree.org/app" >> xmlns:ogc="http://www.opengis.net/ogc" >> xmlns:gml="http://www.opengis.net/gml" >> xmlns:xlink="http://www.w3.org/1999/xlink" >> xmlns:ows="http://www.opengis.net/ows" >> xmlns:wfs="http://www.opengis.net/wfs"> >> <wfs:Query srsName="urn:ogc:def:crs:EPSG::28992" >> typeName="app:Plangebied"> >> <ogc:Filter> >> <ogc:PropertyIsLike escapeChar="\" singleChar="?" wildCard="*"> >> <ogc:PropertyName>overheidscode</ogc:PropertyName> >> <ogc:Literal>*0203*</ogc:Literal> >> </ogc:PropertyIsLike> >> </ogc:Filter> >> </wfs:Query> >> </wfs:GetFeature> >> >> The geom gml part returned and causes the error (i removed some >> coorinates): >> <app:geometrie> >> <gml:Surface srsName='urn:ogc:def:crs:EPSG::28992'> >> <gml:patches> >> <gml:PolygonPatch> >> <gml:exterior> >> <gml:LinearRing> >> <gml:posList srsDimension='2' >> count='1156'>167737.178 462109.239 167732.836 ...</gml:posList> >> </gml:LinearRing> >> </gml:exterior> >> <gml:interior> >> <gml:LinearRing> >> <gml:posList srsDimension='2' >> count='20'>167635.811 461667.507 167635.8 461667.333 1...</gml:posList> >> </gml:LinearRing> >> </gml:interior> >> <gml:interior> >> <gml:LinearRing> >> <gml:posList srsDimension='2' >> count='17'>167797.684 461759.832 167772.607 461763.591 ...</gml:posList> >> </gml:LinearRing> >> </gml:interior> >> <gml:interior> >> <gml:LinearRing> >> <gml:posList srsDimension='2' >> count='31'>167787.24 461683.687 167786.124 461677.638 ...</gml:posList> >> </gml:LinearRing> >> </gml:interior> >> <gml:interior> >> <gml:LinearRing> >> <gml:posList srsDimension='2' >> count='224'>168010.198 461464.676 ...</gml:posList> >> </gml:LinearRing> >> </gml:interior> >> <gml:interior> >> <gml:LinearRing> >> <gml:posList srsDimension='2' >> count='44'>167994.584 461720.368 167984.016 461720.102 1...</gml:posList> >> </gml:LinearRing> >> </gml:interior> >> <gml:interior> >> <gml:LinearRing> >> <gml:posList srsDimension='2' >> count='185'>168109.304 461112.198 168111.0 461112.483 ...</gml:posList> >> </gml:LinearRing> >> </gml:interior> >> </gml:PolygonPatch> >> </gml:patches> >> </gml:Surface> >> </app:geometrie> >> >> If 3.1.1 is not supported how can you force the wfsdatastore to use a >> nother outputformat? >> >> Tia >> >> Roy >> >> >> ------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------------ >> >> Crystal Reports - New Free Runtime and 30 Day Trial >> Check out the new simplified licensing option that enables unlimited >> royalty-free distribution of the report engine for externally facing >> server and web deployment. >> http://p.sf.net/sfu/businessobjects >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Geotools-gt2-users mailing list >> [hidden email] >> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > > -- Gabriel Roldan OpenGeo - http://opengeo.org Expert service straight from the developers. ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Geotools-gt2-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users |
||||||||||||||||
|
Roy Braam
|
In reply to this post
by Justin Deoliveira
Some javascript/style in this post has been disabled (why?)
Justin,I added a query and added all properties except the geom property. So i get a response without geom. (for this project i don't need the geom). If i need the geom (later this week) i'll try 1.0. Thanks! Roy From: Justin Deoliveira [mailto:[hidden email]] ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Geotools-gt2-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users |
||||||||||||||||
| Free Embeddable Forum Powered by Nabble | Help |