I'm running version 1.7.3 with xerces support. I pinged the gdal folks. They
questioned the gml format returned from geoserver, and mentioned a change
that seemed to work. The question is if there is a option or configuration I
missed that caused it to check the namespace. Would "Encode canonical WFS
schema location" solve this problem. I have it enabled though, and it didn't
seem to change the output.

#Suggested change.
<wfs:FeatureCollection xmlns:wfs="http://foo"; xmlns:gml="http://foo";
xmlns:topp="http://foo";>

Thanks,

Brian

On Thu, Jun 23, 2011 at 12:37 PM, Andrea Aime
<[email protected]>wrote:

> 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 &apos;wfs&apos; can not be resolved to 
>> namespace URI
>>
>> FAILURE:
>> Unable to open datasource 
>> `/tmp/ogrtmpin0.2402847924288226/tasmania_cities.gml&apos; with the 
>> following drivers.
>>   -&gt; ESRI Shapefile
>>   -&gt; 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

Reply via email to