|
View:
New views
20 Messages
—
Rating Filter:
Alert me
|
|
|
Geoserver ArcSDE WFS-THas anybody been
able to get GeoServer to work with ArcSDE 9.2 using WFS-T.
I am running ArcSDE
9.2 sp5, and I need to use WFS-T for update, insert &
delete.
I have
tried basically all version of GeoServer. I've managed to get
version 1.5.4 to update & delete, but not insert.
And for all the
other version, I've either have porblem connecting to SDE, or having porblem
with loading a new featureType, problems other people seem to have
experienced as well.
I really would like
to know how to get GeoServer to work with ArcSDE with WFS-T.
Thanks.
________________________________________________
Yi Lik Tsang
GIS Developer SPATIAL VISION Level 2, 170 Queen Street, Melbourne, VIC, 3000 Phone: +61 3 9691 3013 Fax: +61 3 9691 3001 E-mail: yilik.tsang@... Please consider the environment before printing this email. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Geoserver-users mailing list Geoserver-users@... https://lists.sourceforge.net/lists/listinfo/geoserver-users |
|
|
Re: Geoserver ArcSDE WFS-THi Yi,
On Wednesday 03 September 2008 05:38:29 am Yi Lik Tsang wrote: > Has anybody been able to get GeoServer to work with ArcSDE 9.2 using > WFS-T. yes? at least I know of a couple corporate users that are happy with it or when they wasn't they invested some resources into improving the GeoServer ArcSDE extension. > > I am running ArcSDE 9.2 sp5, and I need to use WFS-T for update, insert > & delete. > > I have tried basically all version of GeoServer. I've managed to get > version 1.5.4 to update & delete, but not insert. > > And for all the other version, I've either have porblem connecting to > SDE, or having porblem with loading a new featureType, problems other > people seem to have experienced as well. - provide a patch with proper unit tests and the module maintainers will be glad to review it and apply it for you if the patch it good enough - get a contract with one of the many organizations that support geoserver to fix it for you - or kindly ask the community to look over the problems you're experiencing and hope them fix it for you for free. But for that to happen you need to provide more information that the developers can use to assess your problem. A simple statement of frustration gives us anything to work on. You can usually send a stack trace report, describe better your problem and the steps to reproduce, describe the structure of the tables you're trying to access and are failing, or even provide a sample dataset that happens to fail. Also, if the instructions at http://docs.codehaus.org/display/GEOTDOC/ArcSDE+DataStore are not good or out of date, once you solve your problem you could contribute some documentation clean up in order to avoid others the pain you're suffering. best regards, Gabriel > > I really would like to know how to get GeoServer to work with ArcSDE > with WFS-T. > And I really would like to help you. If the instructions on > Thanks. > > ________________________________________________ > > Yi Lik Tsang > GIS Developer > > SPATIAL VISION > Level 2, 170 Queen Street, Melbourne, VIC, 3000 > Phone: +61 3 9691 3013 > Fax: +61 3 9691 3001 > E-mail: yilik.tsang@... > > > > > > > For our latest news visit http://www.spatialvision.com.au > This e-mail is privileged and confidential and intended only for the > addressee(s). If received in error advise Spatial Vision by return e-mail > and then please delete. Please consider the environment before printing > this email. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Geoserver-users mailing list Geoserver-users@... https://lists.sourceforge.net/lists/listinfo/geoserver-users |
|
|
Re: Geoserver ArcSDE WFS-TYi,
Just to chime in, here in Massachusetts we are currently running WFS-T with SDE 9.2 SP5 and GeoServer 1.6.5. Before that we were using SDE 9.1 SP 1 and GeoServer 1.3. So it can be done! |
|
|
Re: Geoserver ArcSDE WFS-THi Gabriel + all,
Thanks for the relpy. I have done a bit more testing in the last few days, and using GeoServer 1.6.5 beta, I have managed to get either update and delete, or just insert to work, but not both. In GeoServer, I created a namespace with URI: http://au.spatialvision.com, and prefix: sv. Using xmlns:sv="http://au.spatialvision.com/", I would get an error doing update or delete, but works fine with insert. WFS-T Insert (Success): <?xml version="1.0" encoding="UTF-8"?> <wfs:Transaction service="WFS" version="1.0.0" handle="IMFinsert" xmlns:sv="http://au.spatialvision.com/" xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml"> <wfs:Insert> <sv:NCCMA.GISADMIN.SVPOINTTEST> <SHAPE> <gml:Point srsName="EPSG:4283"> <gml:coordinates>143.88987121309273,-36.10663900954768</gml:coordinates> </gml:Point> </SHAPE> </sv:NCCMA.GISADMIN.SVPOINTTEST> </wfs:Insert> </wfs:Transaction> WFS-T Delete (fail): <?xml version="1.0" encoding="UTF-8"?> <wfs:Transaction service="WFS" version="1.0.0" handle="IMFdelete" xmlns:sv="http://au.spatialvision.com/" xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml"> <wfs:Delete typeName="sv:NCCMA.GISADMIN.SVPOINTTEST"> <ogc:Filter> <FeatureId fid="NCCMA.GISADMIN.SVPOINTTEST.41"/> </ogc:Filter> </wfs:Delete> </wfs:Transaction> <?xml version="1.0" ?> <ServiceExceptionReport version="1.2.0" xmlns="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/ogc http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd"> <ServiceException> org.geoserver.wfs.WFSException: Could not locate FeatureStore for "{http://au.spatialvision.com/}NCCMA.GISADMIN.SVPOINTTEST" </ServiceException> </ServiceExceptionReport> at org.geoserver.wfs.UpdateElementHandler.execute(UpdateElementHandler.java :130) WFS-T Update (fail) <?xml version="1.0" encoding="UTF-8"?> <wfs:Transaction service="WFS" version="1.0.0" handle="IMFupdate" xmlns:sv="http://au.spatialvision.com/" xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml"> <wfs:Update typeName="sv:NCCMA.GISADMIN.SVPOINTTEST"> <wfs:Property> <wfs:Name>SHAPE</wfs:Name> <wfs:Value> <gml:Point srsName="EPSG:4283"> <gml:coordinates>144.48483089829804,-36.12842743111402</gml:coordinates> </gml:Point> </wfs:Value> </wfs:Property> <ogc:Filter> <ogc:FeatureId fid="NCCMA.GISADMIN.SVPOINTTEST.1688"/> </ogc:Filter> </wfs:Update> </wfs:Transaction> <?xml version="1.0" ?> <ServiceExceptionReport version="1.2.0" xmlns="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/ogc http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd"> <ServiceException> org.geoserver.wfs.WFSException: Could not locate FeatureStore for "{http://au.spatialvision.com/}NCCMA.GISADMIN.SVPOINTTEST" </ServiceException> </ServiceExceptionReport> at org.geoserver.wfs.UpdateElementHandler.execute(UpdateElementHandler.java :130) However, if the xmlns in the WFS-T Transcational XML is changed from xmlns:sv="http://au.spatialvision.com/" to xmlns:sde="http://au.spatialvision.com/". That is, absolutely nothing is changed in GeoServer, and the FeatureType in GeoServer is still sv:NCCMA.GISADMIN.SVPOINTTEST. I would be able to do update or delete, but not insert. WFS-T Delete (Success): <?xml version="1.0" encoding="UTF-8"?> <wfs:Transaction service="WFS" version="1.0.0" handle="IMFdelete" xmlns:sde="http://au.spatialvision.com/" xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml"> <wfs:Delete typeName="sv:NCCMA.GISADMIN.SVPOINTTEST"> <ogc:Filter> <FeatureId fid="NCCMA.GISADMIN.SVPOINTTEST.57"/> </ogc:Filter> </wfs:Delete> </wfs:Transaction> WFS-T Update (Success): <?xml version="1.0" encoding="UTF-8"?> <wfs:Transaction service="WFS" version="1.0.0" handle="IMFupdate" xmlns:sde="http://au.spatialvision.com/" xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml"> <wfs:Update typeName="sv:NCCMA.GISADMIN.SVPOINTTEST"> <wfs:Property> <wfs:Name>SHAPE</wfs:Name> <wfs:Value> <gml:Point srsName="EPSG:4283"> <gml:coordinates>143.70662636644562,-35.78084618396142</gml:coordinates> </gml:Point> </wfs:Value> </wfs:Property> <ogc:Filter> <ogc:FeatureId fid="NCCMA.GISADMIN.SVPOINTTEST.41"/> </ogc:Filter> </wfs:Update> </wfs:Transaction> WFS-T Insert (Fail): <?xml version="1.0" encoding="UTF-8"?> <wfs:Transaction service="WFS" version="1.0.0" handle="IMFinsert" xmlns:sde="http://au.spatialvision.com/" xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml"> <wfs:Insert> <sv:NCCMA.GISADMIN.SVPOINTTEST> <SHAPE> <gml:Point srsName="EPSG:4283"> <gml:coordinates>143.83011628903543,-36.3630334994521</gml:coordinates> </gml:Point> </SHAPE> </sv:NCCMA.GISADMIN.SVPOINTTEST> </wfs:Insert> </wfs:Transaction> <?xml version="1.0" ?> <ServiceExceptionReport version="1.2.0" xmlns="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/ogc http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd"> <ServiceException> org.xml.sax.SAXParseException: The prefix "sv" for element "sv:NCCMA.GISADMIN.SVPOINTTEST" is not bound. </ServiceException> </ServiceExceptionReport> Has anybody experience simlier problem?? And sicne some user has been able to get WFS-T to work, I really would like to know the setup they are using. Any kind of help is appericated. Thanks. Yi Lik ________________________________________________ Yi Lik Tsang GIS Developer SPATIAL VISION Level 2, 170 Queen Street, Melbourne, VIC, 3000 Phone: +61 3 9691 3013 Fax: +61 3 9691 3001 E-mail: yilik.tsang@... -----Original Message----- From: Gabriel Roldán [mailto:groldan@...] Sent: Thursday, 4 September 2008 10:23 AM To: geoserver-users@... Cc: Yi Lik Tsang Subject: Re: [Geoserver-users] Geoserver ArcSDE WFS-T Hi Yi, On Wednesday 03 September 2008 05:38:29 am Yi Lik Tsang wrote: > Has anybody been able to get GeoServer to work with ArcSDE 9.2 using > WFS-T. yes? at least I know of a couple corporate users that are happy with it or when they wasn't they invested some resources into improving the GeoServer ArcSDE extension. > > I am running ArcSDE 9.2 sp5, and I need to use WFS-T for update, > insert & delete. > > I have tried basically all version of GeoServer. I've managed to get > version 1.5.4 to update & delete, but not insert. > > And for all the other version, I've either have porblem connecting to > SDE, or having porblem with loading a new featureType, problems other > people seem to have experienced as well. well, this is an open source project, so you either: - provide a patch with proper unit tests and the module maintainers will be glad to review it and apply it for you if the patch it good enough - get a contract with one of the many organizations that support geoserver to fix it for you - or kindly ask the community to look over the problems you're experiencing and hope them fix it for you for free. But for that to happen you need to provide more information that the developers can use to assess your problem. A simple statement of frustration gives us anything to work on. You can usually send a stack trace report, describe better your problem and the steps to reproduce, describe the structure of the tables you're trying to access and are failing, or even provide a sample dataset that happens to fail. Also, if the instructions at http://docs.codehaus.org/display/GEOTDOC/ArcSDE+DataStore are not good or out of date, once you solve your problem you could contribute some documentation clean up in order to avoid others the pain you're suffering. best regards, Gabriel > > I really would like to know how to get GeoServer to work with ArcSDE > with WFS-T. > And I really would like to help you. If the instructions on > Thanks. > > ________________________________________________ > > Yi Lik Tsang > GIS Developer > > SPATIAL VISION > Level 2, 170 Queen Street, Melbourne, VIC, 3000 > Phone: +61 3 9691 3013 > Fax: +61 3 9691 3001 > E-mail: yilik.tsang@... > > > > > > > For our latest news visit http://www.spatialvision.com.au This e-mail > is privileged and confidential and intended only for the addressee(s). > If received in error advise Spatial Vision by return e-mail and then > please delete. Please consider the environment before printing this > email. For our latest news visit http://www.spatialvision.com.au This e-mail is privileged and confidential and intended only for the addressee(s). If received in error advise Spatial Vision by return e-mail and then please delete. Please consider the environment before printing this email. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Geoserver-users mailing list Geoserver-users@... https://lists.sourceforge.net/lists/listinfo/geoserver-users |
|
|
|
|
|
|
|
|
Re: Geoserver ArcSDE WFS-THere's some information from our catalog.xml file (I've changed the password not that it matters)
<namespace uri = "http://massgis.state.ma.us/featuretype" prefix = "massgis" default = "true" /> <datastore namespace = "massgis" enabled = "true" id = "massgis_sde" > <connectionParams > <parameter value = "password" name = "password" /> <parameter value = "massgis" name = "namespace" /> <parameter value = "10" name = "pool.minConnections" /> <parameter value = "massgis" name = "user" /> <parameter value = "gis" name = "instance" /> <parameter value = "30" name = "pool.maxConnections" /> <parameter value = "10000" name = "pool.timeOut" /> <parameter value = "alexandria.massgis.state.ma.us" name = "server" /> <parameter value = "5151" name = "port" /> <parameter value = "1" name = "pool.increment" /> <parameter value = "arcsde" name = "dbtype" /> </connectionParams> </datastore> sample layername: massgis:GISDATA.EJ_POLY (GISDATA is an Oracle schema name, EJ_POLY is the layer name) What the first part of a transaction request looks like for us: <wfs:Transaction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gml="http://www.opengis.net/gml" xmlns:wfs="http://www.opengis.net/wfs" version="1.0.0" service="WFS" xmlns:massgis="http://massgis.state.ma.us/featuretype"> |
|
|
WFS-T insert failureHi,
I tried to do my first WFS-T version 1.1.0 insert but the result was not promising. Here is my situation: - I read the "States" polygon layer through WFS 1.1.0 with a GIS client. Client is flipping the axis but I don't care about that. - I digitised a new polygon (triangle) on a states layer - I let the GIS client to send WFS insert request. The result is in the end of the message. When I compared the request with Geoserver demo requests I can see some differences, for example single vs. double quotas. Anybody having an idea if quotas are the the reason for failure, or the flipped axis, or something else? -Jukka Rahkonen- Listing from Geoserver console: Result: 12 syys 14:43:23 INFO [org.geoserver.filters] - Compressing output for mimetype: text/xml 12 syys 14:59:56 DEBUG [org.vfny.geoserver.requests] - First 4 bytes of XML doc are : 3C ('<') 3F ('?') 78 ('x') 6D ('m') 12 syys 14:59:56 DEBUG [org.vfny.geoserver.requests] - Charset detection phase 1. Inferred encoding: UTF-8 12 syys 14:59:56 DEBUG [org.vfny.geoserver.requests] - Charset detection phase 2. Charset in XML declaration is `null`. 12 syys 14:59:56 DEBUG [org.vfny.geoserver.requests] - Trying to create reader basing on existing charset information: `UTF-8`. 12 syys 14:59:56 DEBUG [org.geoserver.ows] - Raw XML request starts with: <?xml version='1.0' encoding='ISO-8859-1'?><wfs:Transaction version='1.1.0' service='WFS' xmlns:gml='http://www.opengis.net/gml' xmlns:ogc='http://www.opengis.net/ogc' xmlns:wfs='http://www.opengis.net/wfs' xmlns:xsi='http://w ww.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.opengis.net/wfs/1.1.0/WFS-transaction.xsd' xmlns:topp='http://www.openplans.org/topp ' ><wfs:Insert handle='insert1' idgen='GenerateNew' ><topp:states><topp:the_geom><gml:Surface srsName='urn:x-ogc:def:crs:EPSG:6.11.2:4326'> <gml:patches> <gml:PolygonPatch> <gml:exterior><gml:LinearRing><gml:posList srsDimension='2' count='4'>29.422823762810733 -71.86195768805085 36.22812243286723 -70.16063302053672 31.12 414843032486 -76.6256667570904 29.422823762810733 -71.86195768805085</gml:posList></gml:LinearRing></gml:exterior></gml:PolygonPatch> </gml:patches> </gml:Surface></topp:the_geom></topp:states></wfs:Insert></wfs:Transaction> 12 syys 14:59:56 WARN [org.geoserver.ows] - java.lang.ArrayIndexOutOfBoundsException: 1 at org.geotools.xml.impl.ParserHandler.startElement(ParserHandler.java:261) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(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.geotools.xml.Parser.parse(Parser.java:185) at org.geoserver.wfs.xml.v1_1_0.WfsXmlReader.read(WfsXmlReader.java:78) at org.geoserver.ows.Dispatcher.parseRequestXML(Dispatcher.java:1072) at org.geoserver.ows.Dispatcher.dispatch(Dispatcher.java:389) at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:185) at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:139) at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:684) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:625) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:392) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:357) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:459) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1054) at org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1045) at org.geoserver.filters.ReverseProxyFilter.doFilter(ReverseProxyFilter.java:170) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1045) at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:73) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1045) at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:47) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1045) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264) at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107) at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274) at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274) at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:178) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:229) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274) at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148) at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1045) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:358) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:231) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:629) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:453) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:149) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:123) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141) at org.mortbay.jetty.Server.handle(Server.java:303) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:452) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:735) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:636) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:349) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:320) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475) ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Geoserver-users mailing list Geoserver-users@... https://lists.sourceforge.net/lists/listinfo/geoserver-users |
|
|
Re: WFS-T insert failureHi Jukka,
There is a minor issue with your request. The schemaLocation attribute on the root element is invalid. It needs to be a space separated set of tuples of the form "<namespace> <location>...". So if you change the schemaLocation attribute to: "http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" It should work. You can also just omit the attribute all together. Try that and let us know how it works. -Justin Rahkonen Jukka wrote: > Hi, > > I tried to do my first WFS-T version 1.1.0 insert but the result was not promising. Here is my situation: > > - I read the "States" polygon layer through WFS 1.1.0 with a GIS client. Client is flipping the axis but I don't care about that. > - I digitised a new polygon (triangle) on a states layer > - I let the GIS client to send WFS insert request. > > The result is in the end of the message. When I compared the request with Geoserver demo requests I can see some differences, for example single vs. double quotas. Anybody having an idea if quotas are the the reason for failure, or the flipped axis, or something else? > > -Jukka Rahkonen- > > Listing from Geoserver console: > > Result: > 12 syys 14:43:23 INFO [org.geoserver.filters] - Compressing output for mimetype: text/xml > 12 syys 14:59:56 DEBUG [org.vfny.geoserver.requests] - First 4 bytes of XML doc are : 3C ('<') 3F ('?') 78 ('x') 6D ('m') > 12 syys 14:59:56 DEBUG [org.vfny.geoserver.requests] - Charset detection phase 1. Inferred encoding: UTF-8 > 12 syys 14:59:56 DEBUG [org.vfny.geoserver.requests] - Charset detection phase 2. Charset in XML declaration is `null`. > 12 syys 14:59:56 DEBUG [org.vfny.geoserver.requests] - Trying to create reader basing on existing charset information: `UTF-8`. > 12 syys 14:59:56 DEBUG [org.geoserver.ows] - Raw XML request starts with: <?xml version='1.0' encoding='ISO-8859-1'?><wfs:Transaction version='1.1.0' > service='WFS' xmlns:gml='http://www.opengis.net/gml' xmlns:ogc='http://www.opengis.net/ogc' xmlns:wfs='http://www.opengis.net/wfs' xmlns:xsi='http://w > ww.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.opengis.net/wfs/1.1.0/WFS-transaction.xsd' xmlns:topp='http://www.openplans.org/topp > ' ><wfs:Insert handle='insert1' idgen='GenerateNew' ><topp:states><topp:the_geom><gml:Surface srsName='urn:x-ogc:def:crs:EPSG:6.11.2:4326'> > <gml:patches> > <gml:PolygonPatch> > <gml:exterior><gml:LinearRing><gml:posList srsDimension='2' count='4'>29.422823762810733 -71.86195768805085 36.22812243286723 -70.16063302053672 31.12 > 414843032486 -76.6256667570904 29.422823762810733 -71.86195768805085</gml:posList></gml:LinearRing></gml:exterior></gml:PolygonPatch> > </gml:patches> > </gml:Surface></topp:the_geom></topp:states></wfs:Insert></wfs:Transaction> > > 12 syys 14:59:56 WARN [org.geoserver.ows] - > java.lang.ArrayIndexOutOfBoundsException: 1 > at org.geotools.xml.impl.ParserHandler.startElement(ParserHandler.java:261) > at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) > at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) > at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(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.geotools.xml.Parser.parse(Parser.java:185) > at org.geoserver.wfs.xml.v1_1_0.WfsXmlReader.read(WfsXmlReader.java:78) > at org.geoserver.ows.Dispatcher.parseRequestXML(Dispatcher.java:1072) > at org.geoserver.ows.Dispatcher.dispatch(Dispatcher.java:389) > at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:185) > at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:139) > at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44) > at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:684) > at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:625) > at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:392) > at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:357) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:459) > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1054) > at org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108) > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1045) > at org.geoserver.filters.ReverseProxyFilter.doFilter(ReverseProxyFilter.java:170) > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1045) > at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:73) > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1045) > at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:47) > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1045) > at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264) > at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107) > at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72) > at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274) > at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110) > at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274) > at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) > at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274) > at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:178) > at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274) > at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:229) > at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274) > at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148) > at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98) > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1045) > at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:358) > at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:231) > at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:629) > at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:453) > at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:149) > at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:123) > at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141) > at org.mortbay.jetty.Server.handle(Server.java:303) > at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:452) > at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:735) > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:636) > at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209) > at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:349) > at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:320) > at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475) > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Geoserver-users mailing list > Geoserver-users@... > https://lists.sourceforge.net/lists/listinfo/geoserver-users -- Justin Deoliveira Software Engineer, OpenGeo http://opengeo.org ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Geoserver-users mailing list Geoserver-users@... |