That is good news! I am glad you got it working. It is often a lot of trouble to configure mapserver wfs correctly; great work!
-- Jody Garnett On Friday, 1 April 2011 at 4:10 PM, Joaquín Rodriguez-Guerra Urcelay wrote: > Hi Jody, > > I built mapserver from the sources in the svn, where they have fixed the bug, > and now these tools are working, at least using mapserver wfs 1.0.0 with > layers getting data from postgres db ( not so lucky with mysql) > > Joaquín > > -----Mensaje original----- > De: [email protected] > [mailto:[email protected]] En nombre de Joaquín > Rodriguez-Guerra Urcelay > Enviado el: miércoles, 30 de marzo de 2011 18:17 > Para: User-friendly Desktop Internet GIS > Asunto: Re: [udig-devel] Info, Select tools not working with mapserver wfs > layers > > Hi Jody, > > Sorry for my English, I am not sure If I understood well your instrucctions... > I opened udig and I imported a datastore-> WFS Web Feature Server. Some new > options were displayed (protocol, username, password, encoding...), the one > that is closest to what I understood from you is LENIENT, which I set to true > (default is false). I tried with dm solutions url: > http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap?SERVICE=WFS&VERSION=1.1.0&REQUEST=getcapabilities > and I was able to see the list of layers (at the same time I had the > exception below), but not to add them (second exception) > > If you want me to try anything else please ask, > > Thanks for your help! > > > // IMPORT WFS EXCEPTION > > 30-mar-2011 18:07:47 org.geotools.data.wfs.WFSDataStoreFactory > determineCorrectStrategy > INFO: Using WFS Strategy: org.geotools.data.wfs.v1_1_0.DefaultWFSStrategy > DecribeFT URL for wfs:park: > http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap?TYPENAME=wfs%3Apark&VERSION=1.1.0&SERVICE=WFS&REQUEST=DescribeFeatureType&NAMESPACE=xmlns%28wfs%3Dhttp%3A%2F%2Fwww.opengis.net%2Fwfs%29 > > !ENTRY net.refractions.udig.project 1 0 2011-03-30 18:07:47.537 > !MESSAGE > !STACK 0 > java.io.IOException: Error parsing feature type for > {http://www.opengis.net/wfs}park from > http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap?TYPENAME=wfs%3Apark&VERSION=1.1.0&SERVICE=WFS&REQUEST=DescribeFeatureType&NAMESPACE=xmlns%28wfs%3Dhttp%3A%2F%2Fwww.opengis.net%2Fwfs%29 > at > org.geotools.data.wfs.v1_1_0.parsers.EmfAppSchemaParser.parse(EmfAppSchemaParser.java:258) > at > org.geotools.data.wfs.v1_1_0.parsers.EmfAppSchemaParser.parseSimpleFeatureType(EmfAppSchemaParser.java:120) > at > org.geotools.data.wfs.v1_1_0.parsers.EmfAppSchemaParser.parseSimpleFeatureType(EmfAppSchemaParser.java:89) > at > org.geotools.data.wfs.v1_1_0.WFS_1_1_0_DataStore.getSchema(WFS_1_1_0_DataStore.java:211) > at > org.geotools.data.wfs.v1_1_0.WFSFeatureSource.<init>(WFSFeatureSource.java:67) > at > org.geotools.data.wfs.v1_1_0.WFS_1_1_0_DataStore.getFeatureSource(WFS_1_1_0_DataStore.java:439) > at > org.geotools.data.wfs.v1_1_0.WFS_1_1_0_DataStore.getFeatureSource(WFS_1_1_0_DataStore.java:102) > at > net.refractions.udig.catalog.internal.wfs.WFSGeoResourceInfo.<init>(WFSGeoResourceInfo.java:36) > at > net.refractions.udig.catalog.internal.wfs.WFSGeoResourceImpl.createInfo(WFSGeoResourceImpl.java:161) > at > net.refractions.udig.catalog.internal.wfs.WFSGeoResourceImpl.createInfo(WFSGeoResourceImpl.java:1) > at net.refractions.udig.catalog.IGeoResource.getInfo(IGeoResource.java:215) > at > net.refractions.udig.catalog.internal.wfs.WFSGeoResourceImpl.getInfo(WFSGeoResourceImpl.java:153) > at > net.refractions.udig.catalog.internal.wfs.WFSGeoResourceImpl.getInfo(WFSGeoResourceImpl.java:1) > at > net.refractions.udig.project.internal.impl.LayerResource.processResourceCachingStrategy(LayerResource.java:251) > at > net.refractions.udig.project.internal.impl.LayerResource.resolve(LayerResource.java:142) > at > net.refractions.udig.project.internal.impl.LayerResource.createInfo(LayerResource.java:331) > at net.refractions.udig.catalog.IGeoResource.getInfo(IGeoResource.java:215) > at > net.refractions.udig.project.internal.impl.LayerImpl.getCRSInternal(LayerImpl.java:1908) > at > net.refractions.udig.project.internal.impl.LayerImpl.getCRS(LayerImpl.java:1897) > at > net.refractions.udig.project.internal.impl.LayerImpl.getCRS(LayerImpl.java:1662) > at > net.refractions.udig.project.internal.impl.InitMapCRS.run(InitMapCRS.java:50) > at > net.refractions.udig.project.internal.impl.LayersList2.runNonDeprecatedInterceptors(LayersList2.java:200) > at > net.refractions.udig.project.internal.impl.LayersList2.runLayerInterceptor(LayersList2.java:187) > at > net.refractions.udig.project.internal.impl.LayersList2.runAddInterceptors(LayersList2.java:174) > at > net.refractions.udig.project.internal.impl.LayersList2.inverseAdd(LayersList2.java:102) > at > org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:292) > at > org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.setValue(XMLHelperImpl.java:1179) > at > org.eclipse.emf.ecore.xmi.impl.XMLHandler.setFeatureValue(XMLHandler.java:2658) > at > org.eclipse.emf.ecore.xmi.impl.XMLHandler.setFeatureValue(XMLHandler.java:2648) > at > org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectFromFeatureType(XMLHandler.java:2167) > at > org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObject(XMLHandler.java:2035) > at > org.eclipse.emf.ecore.xmi.impl.XMIHandler.createObject(XMIHandler.java:134) > at > org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleFeature(XMLHandler.java:1840) > at > org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XMLHandler.java:1023) > at > org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMIHandler.java:87) > at > org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:1001) > at > org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:712) > at > org.eclipse.emf.ecore.xmi.impl.XMIHandler.startElement(XMIHandler.java:169) > at > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown > Source) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown > Source) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown > Source) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown > Source) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown > Source) > at > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown > Source) > at > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown > Source) > at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) > at > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown > Source) > at > com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown > Source) > at javax.xml.parsers.SAXParser.parse(Unknown Source) > at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:181) > at > org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:180) > at > org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1494) > at > org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1282) > at > org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:255) > at > org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:270) > at > org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:397) > at > net.refractions.udig.project.ui.internal.StartupOpenMaps.openLastOpenMaps(StartupOpenMaps.java:157) > at > net.refractions.udig.project.ui.internal.StartupOpenMaps.access$1(StartupOpenMaps.java:140) > at > net.refractions.udig.project.ui.internal.StartupOpenMaps$2.run(StartupOpenMaps.java:127) > at net.refractions.udig.ui.PlatformGIS$3$2$1.run(PlatformGIS.java:383) > at net.refractions.udig.ui.PlatformGIS$1.call(PlatformGIS.java:105) > at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) > at java.util.concurrent.FutureTask.run(Unknown Source) > at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) > at java.lang.Thread.run(Unknown Source) > Caused by: java.lang.NullPointerException > at > org.geotools.gml2.bindings.GML2ParsingUtils.featureType(GML2ParsingUtils.java:202) > at > org.geotools.gml3.bindings.GML3ParsingUtils.featureType(GML3ParsingUtils.java:76) > at > org.geotools.data.wfs.v1_1_0.parsers.EmfAppSchemaParser.parse(EmfAppSchemaParser.java:226) > ... 65 more > > > > // ADD LAYER EXCEPTION > > java.lang.NullPointerException > at > net.refractions.udig.project.ui.internal.RenderManagerAdapters.synchronizeRenderers(RenderManagerAdapters.java:327) > at > net.refractions.udig.project.ui.internal.RenderManagerAdapters.synchronizeAndRefresh(RenderManagerAdapters.java:281) > at > net.refractions.udig.project.ui.internal.RenderManagerAdapters.access$0(RenderManagerAdapters.java:280) > at > net.refractions.udig.project.ui.internal.RenderManagerAdapters$3.layerAdded(RenderManagerAdapters.java:161) > at > net.refractions.udig.project.internal.ContextModelListenerAdapter.notifyChanged(ContextModelListenerAdapter.java:81) > at > net.refractions.udig.project.ui.internal.RenderManagerAdapters$3.notifyChanged(RenderManagerAdapters.java:142) > at > org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:380) > at > org.eclipse.emf.common.notify.impl.NotificationImpl.dispatch(NotificationImpl.java:1033) > at > org.eclipse.emf.common.notify.impl.NotificationImpl.dispatch(NotificationImpl.java:1038) > at > org.eclipse.emf.common.notify.impl.NotifyingListImpl.addAllUnique(NotifyingListImpl.java:468) > at org.eclipse.emf.common.util.AbstractEList.addAll(AbstractEList.java:410) > at > net.refractions.udig.project.internal.commands.AddLayersCommand.run(AddLayersCommand.java:89) > at > net.refractions.udig.project.command.CommandManager$Executor.execute(CommandManager.java:400) > at > net.refractions.udig.project.command.CommandManager$Executor.run(CommandManager.java:325) > at > net.refractions.udig.project.command.CommandManager$Executor.run(CommandManager.java:311) > at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) > > > Joaquín > ________________________________________ > De: [email protected] > [[email protected]] En nombre de Jody Garnett > [[email protected]] > Enviado el: miércoles, 30 de marzo de 2011 17:14 > Para: User-friendly Desktop Internet GIS > Asunto: Re: [udig-devel] Info, Select tools not working with mapserver wfs > layers > > If we can get a decent bug report together we should be able to patch the > GeoTools WFS code with some map server specific functionality. > Before you give up try changing some of the connection parameters; there is a > "strict" mode that may work better with MapServer. > > If the options are not available through the WFS wizard; try the GeoTools > DataStore wizard instead; it lists all the options (even the non useful ones). > > -- > Jody Garnett > > > On Wednesday, 30 March 2011 at 7:12 PM, Joaquín Rodriguez-Guerra Urcelay > wrote: > > I think that maybe this is issue wont happen when using WFS 1.1.0. > The use of gml:box in the Intersects operation is not allowed in WFS 1.1.0 > and maybe geotools creates a different filter when querying a WFS 1.1.0 > server, but I have not been able to display any mapserver WFS 1.1.0 layer in > uDig, and then I could not test it. > http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap?SERVICE=WFS&VERSION=1.1.0&REQUEST=getcapabilities > dont work in udig, right? > > Joaquín > ________________________________________ > De: Joaquín Rodriguez-Guerra Urcelay > Enviado el: miércoles, 30 de marzo de 2011 9:00 > Para: User-friendly Desktop Internet GIS > Asunto: [udig-devel] Info, Select tools not working with mapserver wfs layers > > Hello list, > > I just wanted to ask if someone is using uDig with mapserver. > Some tools, like info or select are not working for me. The info tool for > example, uses the wfs intersect spatial filter with gml:box, which is not > working well in mapserver ( I think the other tools use the same filter, is > it right?) > > Example Filter: > > http://localhost:8080/cgi-bin/mywfs?WIDTH=512&SERVICE=WFS&VERSION=1.0.0&request=getfeature&typename=PositionReal&Filter= > <Filter xmlns="http://www.opengis.net/ogc" > xmlns:gml="http://www.opengis.net/gml"><Intersects><PropertyName>point</PropertyName> > <gml:Box srsName="WGS84(DD)"><gml:coordinates decimal="." cs="," ts=" > ">-100.0,-45.0 100.0,45.0</gml:coordinates> </gml:Box> </Intersects> </Filter> > > I asked in [mapserver-users], and they have confirmed the issue, opened the > bug, and fixed it in the development branch. > http://www.mail-archive.com/[email protected]/msg13831.html > > Have anyone found a way around this?? I guess there is no easy way to tell > udig to use the intersect filter with gml:polygon instead of gml:box, and my > best shot would be to create new tools for info and select, right? > > Thank you, > > Joaquín > > ______________________ > This message including any attachments may contain confidential > information, according to our Information Security Management System, > and intended solely for a specific individual to whom they are addressed. > Any unauthorised copy, disclosure or distribution of this message > is strictly forbidden. If you have received this transmission in error, > please notify the sender immediately and delete it. > > ______________________ > Este mensaje, y en su caso, cualquier fichero anexo al mismo, > puede contener informacion clasificada por su emisor como confidencial > en el marco de su Sistema de Gestion de Seguridad de la > Informacion siendo para uso exclusivo del destinatario, quedando > prohibida su divulgacion copia o distribucion a terceros sin la > autorizacion expresa del remitente. Si Vd. ha recibido este mensaje > erroneamente, se ruega lo notifique al remitente y proceda a su borrado. > Gracias por su colaboracion. > > ______________________ > > _______________________________________________ > User-friendly Desktop Internet GIS (uDig) > http://udig.refractions.net > http://lists.refractions.net/mailman/listinfo/udig-devel > > > ______________________ > This message including any attachments may contain confidential > information, according to our Information Security Management System, > and intended solely for a specific individual to whom they are addressed. > Any unauthorised copy, disclosure or distribution of this message > is strictly forbidden. If you have received this transmission in error, > please notify the sender immediately and delete it. > > ______________________ > Este mensaje, y en su caso, cualquier fichero anexo al mismo, > puede contener informacion clasificada por su emisor como confidencial > en el marco de su Sistema de Gestion de Seguridad de la > Informacion siendo para uso exclusivo del destinatario, quedando > prohibida su divulgacion copia o distribucion a terceros sin la > autorizacion expresa del remitente. Si Vd. ha recibido este mensaje > erroneamente, se ruega lo notifique al remitente y proceda a su borrado. > Gracias por su colaboracion. > > ______________________ > > _______________________________________________ > User-friendly Desktop Internet GIS (uDig) > http://udig.refractions.net > http://lists.refractions.net/mailman/listinfo/udig-devel > > ______________________ > This message including any attachments may contain confidential > information, according to our Information Security Management System, > and intended solely for a specific individual to whom they are addressed. > Any unauthorised copy, disclosure or distribution of this message > is strictly forbidden. If you have received this transmission in error, > please notify the sender immediately and delete it. > > ______________________ > Este mensaje, y en su caso, cualquier fichero anexo al mismo, > puede contener informacion clasificada por su emisor como confidencial > en el marco de su Sistema de Gestion de Seguridad de la > Informacion siendo para uso exclusivo del destinatario, quedando > prohibida su divulgacion copia o distribucion a terceros sin la > autorizacion expresa del remitente. Si Vd. ha recibido este mensaje > erroneamente, se ruega lo notifique al remitente y proceda a su borrado. > Gracias por su colaboracion. > > ______________________ > > _______________________________________________ > User-friendly Desktop Internet GIS (uDig) > http://udig.refractions.net > http://lists.refractions.net/mailman/listinfo/udig-devel >
_______________________________________________ User-friendly Desktop Internet GIS (uDig) http://udig.refractions.net http://lists.refractions.net/mailman/listinfo/udig-devel
