From: Gabriel R. <gr...@op...> - 2010-02-27 07:00:55
|
On 2/25/10 1:52 PM, Zdeněk Farana wrote: > 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. congratulations! First, I see where the URL seems wrong, the "...?=&..." section looks bad, and I see where in the code the problem could be. Yet, and without knowing what the result of the request is cause your demo server seems to be unavailable at the moment, it looks to me that it might be a problem with the server not being able to parse that. There's no problem with geoserver though: <http://demo.opengeo.org/geoserver/wfs?=&request=DescribeFeatureType&version=1.1.0&typeName=topp:states> But I agree there should be no empty CGI parameter name. You can create a jira issue and attach a patch (not a patch including a test case is usually the best contribution you can make so we make sure you don't get a regression next time you try it). And since it seems like you might be going to be working with this, please consider joining the developers list and keep on contributing to the WFS module, that as you may already know, is currently an unsupported module, meaning there's a lot more work to do for it to become a mainstream module. Cheers, Gabriel 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%29 > > > I'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 > > > > ------------------------------------------------------------------------------ > 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 > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users -- Gabriel Roldan OpenGeo - http://opengeo.org Expert service straight from the developers. |