Hi all!We've just started to use GeoTools in our project. Our company participates in OGC Web Services project and we were awarded with an opportunity to develop client application. I've been evaluating GeoTools since then. Unfortunately, I've come across a bug in WFS Plugin (WFS is one of the OGC Web Services) when executing following piece of code (wfsData is DataStore with WFSDataStoreFactory:GET_CAPABILITIES_URL=http://demo.snowflakesoftware.com:8080/AIXM51FINAL_DONLON/GOPublisherWFS?SERVICE=wfs&VERSION=1.1.0&REQUEST=GetCapabilities):
FeatureSource<SimpleFeatureType, SimpleFeature> source = wfsData.getFeatureSource("aixm:AirportHeliport");
The source of problem is hidden inside org.geotools.data.wfs.v1_1_0WFSFeatureSource. The class constructor is trying to DescribeFeatureType (this.featureType = dataStore.getSchema(typeName)).
The obtained IOException:Error parsing feature type for {http://www.aixm.aero/schema/5.1}AirportHeliport from http://demo.snowflakesoftware.com:8080/AIXM51FINAL_DONLON/GOPublisherWFS?=&TYPENAME=aixm%3AAirportHeliport&VERSION=1.1.0&SERVICE=WFS&REQUEST=DescribeFeatureType&NAMESPACE=xmlns%28aixm%3Dhttp%3A%2F%2Fwww.aixm.aero%2Fschema%2F5.1%29&
The problem is obvious, query url (in red color) is composed in a wrong way. Proper query should be:
http://demo.snowflakesoftware.com:8080/AIXM51FINAL_DONLON/GOPublisherWFS?TYPENAME=aixm%3AAirportHeliport&VERSION=1.1.0&SERVICE=WFS&REQUEST=DescribeFeatureType&NAMESPACE=xmlns%28aixm%3Dhttp%3A%2F%2Fwww.aixm.aero%2Fschema%2F5.1%29I've encountered the issue in 2.6.1, 2.7-SNAPSHOT shows the same thing. For now it seems to me, there is a lot of work to do in WFS plugin. Can someone help with this? I'm willing to fix it in the source code, but I need to know if it isn't some other problem.
Regards, Zdenek
<<attachment: zfarana.vcf>>
------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev
_______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
