[Mapbender-users] Impossible to digitize line or polygon data with geometry colum 'wkb_geometry'

Kai_th kaisola at gmx.de
Tue Oct 16 03:05:18 EDT 2007


Hallo,

I've got some MapInfo line and polygon features in postgres database. WFS-T
is set by Geoserver and allready configured in mapbender. But it is
impossible to digitize new features. Converted shapefiles to postgres are
fully functional. Also MapInfo points are digitizeable. Is there a problem
with wkb_geometry, propably?

Thanks for help 

PS: Tested request in geoserver:
<wfs:Transaction version="1.0.0" service="WFS"
xmlns="http://www.someserver.com/myns"
xmlns:topp="http://www.openplans.org/topp"
xmlns:gml="http://www.opengis.net/gml"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:citef="http://www.opengis.net/cite/functions"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:wfs="http://www.opengis.net/wfs"
xsi:schemaLocation="http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd"><wfs:Insert><topp:neu_str><id>45545</id><wkb_geometry><gml:MultiLineString
srsName="EPSG:31468"><gml:lineStringMember><gml:LineString><gml:coordinates>4379100,5631000
4384600,5632900 4389600,5633000 4392000,5631400 4393600,5629400
4397900,5630700
4399700,5632900</gml:coordinates></gml:LineString></gml:lineStringMember></gml:MultiLineString></wkb_geometry></topp:neu_str></wfs:Insert></wfs:Transaction>

Returns:
−
	<ServiceExceptionReport version="1.2.0"
xsi:schemaLocation="http://www.opengis.net/ogc
http://localhost:8080/geoserver/schemas//wfs/1.0.0/OGC-exception.xsd">
−
	<ServiceException>

      java.lang.RuntimeException: problem creating feature
	at
org.vfny.geoserver.wfs.requests.TransactionFeatureHandler.endElement(TransactionFeatureHandler.java:298)
	at
org.geotools.gml.GMLFilterGeometry.endElement(GMLFilterGeometry.java:203)
	at
org.geotools.gml.GMLFilterDocument.endElement(GMLFilterDocument.java:286)
	at org.xml.sax.helpers.ParserAdapter.endElement(ParserAdapter.java:625)
	at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(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.xml.sax.helpers.ParserAdapter.parse(ParserAdapter.java:431)
	at
org.vfny.geoserver.wfs.requests.readers.TransactionXmlReader.read(TransactionXmlReader.java:78)
	at
org.vfny.geoserver.servlets.AbstractService.doPost(AbstractService.java:435)
	at org.geoserver.request.Dispatcher.post(Dispatcher.java:301)
	at org.geoserver.request.Dispatcher.dispatch(Dispatcher.java:181)
	at
org.geoserver.request.Dispatcher.handleRequestInternal(Dispatcher.java:52)
	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:445)
	at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1050)
	at
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:103)
	at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1041)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:354)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:226)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:627)
	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:269)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:430)
	at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:701)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:617)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:199)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:339)
	at
org.mortbay.jetty.nio.HttpChannelEndPoint.run(HttpChannelEndPoint.java:270)
	at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)
Caused by: IllegalAttribute: com.vividsolutions.jts.geom.LineString , but
got com.vividsolutions.jts.geom.MultiLineString
	at
org.geotools.feature.DefaultFeature.setAttribute(DefaultFeature.java:228)
	at
org.geotools.feature.DefaultFeature.setAttributes(DefaultFeature.java:269)
	at org.geotools.feature.DefaultFeature.<init>(DefaultFeature.java:97)
	at
org.geotools.feature.DefaultFeatureType.create(DefaultFeatureType.java:171)
	at org.geotools.feature.Def
aultFeatureType.create(DefaultFeatureType.java:154)
	at
org.vfny.geoserver.wfs.requests.TransactionFeatureHandler.endElement(TransactionFeatureHandler.java:287)
	... 43 more
Caused by: java.lang.IllegalArgumentException:
com.vividsolutions.jts.geom.MultiLineString is not an acceptable class for
wkb_geometry as it is not assignable from class
com.vividsolutions.jts.geom.LineString
	at
org.geotools.feature.DefaultAttributeType.validate(DefaultAttributeType.java:375)
	at
org.geotools.feature.DefaultFeature.setAttribute(DefaultFeature.java:225)
	... 48 more
   
</ServiceException>
</ServiceExceptionReport>
-- 
View this message in context: http://www.nabble.com/Impossible-to-digitize-line-or-polygon-data-with-geometry-colum-%27wkb_geometry%27-tf4632354.html#a13227896
Sent from the mapbender-users mailing list archive at Nabble.com.



More information about the Mapbender_users mailing list