On Thu, Jun 23, 2011 at 5:48 PM, brian youngbloood <[email protected]>wrote:
> I'm working on getting ogr based wfs output working, but seem to keep
> getting this error on every layers. It seems the gml output has a problem
> with the namespace. Should this be changed on a out of the box install? If
> so, where would I change that? Thanks.
>
>
> <?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>
> Exception occurred during output generation
> ogr2ogr did not terminate successfully, exit code 1. Was trying to run:
> [ogr2ogr, -f, CSV, -a_srs,
> /tmp/ogrtmpin0.2402847924288226/gdal_srs2377866380270641662wkt,
> /tmp/ogrtmpout0.4940614489538815/tasmania_cities.csv,
> /tmp/ogrtmpin0.2402847924288226/tasmania_cities.gml]
> Resulted in:
>
> ERROR 1: XML Parsing Error: prefix 'wfs' can not be resolved to
> namespace URI
>
> FAILURE:
> Unable to open datasource
> `/tmp/ogrtmpin0.2402847924288226/tasmania_cities.gml' with the following
> drivers.
> -> ESRI Shapefile
> -> MapInfo File
>
> .....
>
>
Hum, that's odd, the ogr module tests do the same without issues. May it
depend on the GDAL version?
On my machine I've tested with gdal 1.7 and 1.8.
Btw, was the ogr version you're using built with xerces support? Does it
actually support reading GML?
Cheers
Andrea
--
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
-------------------------------------------------------
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users