On 06/28/2012 04:28 PM, Peter Hopfgartner wrote:
>
> On 06/28/2012 02:48 PM, Peter Hopfgartner wrote:
>> Hi all
>>
>> I'm doing some testing with WFS on GeoServer 2.1.4 on CentOS 5.8, 64 bit.
>>
>> When doing a query like:
>>
>> 172.16.0.100:8080/geoserver/apbz/ows?service=WFS&version=1.1.0&request=GetFeature&bbox=606397,5109893,766317,5220119&srs=EPSG:25832&typeName=apbz:wege
>>
>> Anyway I get:
>>
>>
>> 28 Jun 14:40:29 DEBUG [geotools.jdbc] - CREATE CONNECTION
>> 28 Jun 14:40:29 TRACE [geotools.core] - ENTRY 4
>> 28 Jun 14:40:29 DEBUG [geotools.filter] - exporting PropertyName
>> 28 Jun 14:40:29 DEBUG [geotools.filter] - exporting LiteralExpression
>> 28 Jun 14:40:29 DEBUG [geotools.jdbc] - SELECT
>> "gid","fw_identnr","fw_name","fw_name_i","fw_name_di","fw_gem","gemeinde","comune","typ","tipo","fw_typ","fw_name_e","type","municipal","fw_wegekod","fw_wegenr","fw_kuerzel","fw_kuerz_1","fw_lamm","shape_len",encode(ST_AsEWKB("the_geom"),'base64')
>> as "the_geom" FROM "geo"."wege" WHERE "the_geom" &&
>> ST_GeomFromText('POLYGON ((650000 5150000, 650000 5160000, 660000
>> 5160000, 660000 5150000, 650000 5150000))', -1) LIMIT 1000000
>> 28 Jun 14:40:30 DEBUG [geotools.xml] - _Feature is abstract
>> 28 Jun 14:40:30 DEBUG [geotools.xml] - [ class
>> org.geotools.geometry.jts.LiteCoordinateSequence ] is not of type class
>> [Ljava.lang.Double;
>> 28 Jun 14:40:30 DEBUG [geotools.xml] - _Feature is abstract
>> 28 Jun 14:40:30 DEBUG [geotools.xml] - [ class
>> org.geotools.geometry.jts.LiteCoordinateSequence ] is not of type class
>> [Ljava.lang.Double;
>> 28 Jun 14:40:30 DEBUG [geotools.jdbc] - CLOSE CONNECTION
>> 28 Jun 14:40:30 ERROR [geoserver.ows] -
>> java.lang.RuntimeException: org.geotools.data.DataSourceException: An
>> exception occurred while parsing WKB data
>>        at 
>> org.geotools.jdbc.JDBCFeatureReader.next(JDBCFeatureReader.java:325)
>>        at org.geotools.jdbc.JDBCFeatureReader.next(JDBCFeatureReader.java:85)
>>        at
>> org.geotools.data.store.ContentFeatureCollection$WrappingFeatureIterator.next(ContentFeatureCollection.java:189)
>>        at
>> org.geotools.data.store.ContentFeatureCollection$WrappingFeatureIterator.next(ContentFeatureCollection.java:169)
>>        at
>> org.geotools.data.crs.ReprojectFeatureIterator.next(ReprojectFeatureIterator.java:129)
>>        at org.geotools.xml.Encoder.encode(Encoder.java:677)
>>
>>
>> Where am I messing this up?
>>
>> Peter
> As it might be related, I'll add that, when importing the original data
> into PostGIS, shp2pgsql tells me:
>
> shp2pgsql -W ISO-8859-1 -I SDEADMIN_WEGE geo.wege > geo.wege.sql
> Shapefile type: ArcZ
> Postgis type: MULTILINESTRING[4]
>
> Could it be that the geometry type is not kosher for GeoServer?
>
> Peter
>

And just to close this thread: Applying ST_Force_2D or ST_Force_3D to 
satitize the data made the shop running, again.

Peter

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to