Just tested it from the command line, and ogr2ogr is happy with gml file you
provided. I'm running GDAL 1.7.3 on Fedora release 14. Happy to log this as
a ticket, if you need a hand. Thanks again for making the change. -brian
On Fri, Jun 24, 2011 at 2:05 AM, Andrea Aime
<[email protected]>wrote:
> On Fri, Jun 24, 2011 at 12:26 AM, brian youngbloood <[email protected]
> > wrote:
>>
>> #It's only when it's writing to the file system for ogr that it seems to
>> loose the namespace. (Encode canonical WFS schema location is checked and I
>> see it in wfs.xml)
>>
>> /geoserver/topp/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=topp:tasmania_cities&maxFeatures=50&outputFormat=OGR-CSV
>>
>> # cat /tmp/ogrtmpin0.8728093109083671/tasmania_cities.gml
>> <?xml version="1.0"
>> encoding="UTF-8"?><wfs:FeatureCollection><gml:boundedBy><gml:Box><gml:coordinates
>> xmlns:gml="http://www.opengis.net/gml" decimal="." cs="," ts="
>> ">147.2910004483,-42.851001816890005
>> 147.2910004483,-42.851001816890005</gml:coordinates></gml:Box></gml:boundedBy><gml:featureMember><topp:tasmania_cities
>> fid="tasmania_cities.1"><topp:the_geom><gml:MultiPoint><gml:pointMember><gml:Point><gml:coordinates
>> xmlns:gml="http://www.opengis.net/gml" decimal="." cs="," ts="
>> ">147.2910004483,-42.851001816890005</gml:coordinates></gml:Point></gml:pointMember></gml:MultiPoint></topp:the_geom><topp:CITY_NAME>Hobart</topp:CITY_NAME><topp:ADMIN_NAME>Tasmania</topp:ADMIN_NAME><topp:CNTRY_NAME>Australia</topp:CNTRY_NAME><topp:STATUS>Provincial
>> capital</topp:STATUS><topp:POP_CLASS>100,000 to
>> 250,000</topp:POP_CLASS></topp:tasmania_cities></gml:featureMember></wfs:FeatureCollection>
>>
>
> Looked into the code and made the same request as you did.
> Indeed the gml generator included in the ogr output format does not include
> namespaces and I get the same GML
> as above.
> However my version of ogr2ogr groks it without issues and produces an
> output.
> I have had the ogr tests enabled since January 2009, during the 2.5 years
> my system had
> different versions of ogr2ogr and I can't remember seeing these failures.
> I also have a customer that uses a rather old version of GDAL (1.6 I think)
> with the ogr output format,
> they don't have issues with it either.
>
> May it be OS specific? All of the above tests were performed on some Linux
> distro (various versions
> of Ubuntu, 32 and 64bits, and a RedHat enterprise).
>
> Anyways, I've just modified the code to add the prefix/namespace mapping,
> it should have been there
> anyways, just never noticed it as a problem since it was working for me.
> The code now generates:
>
> <?xml version="1.0" encoding="UTF-8"?><wfs:FeatureCollection xmlns="
> http://www.opengis.net/wfs" xmlns:wfs="http://www.opengis.net/wfs"
> xmlns:gs="http://www.openplans.org/topp" xmlns:gml="
> http://www.opengis.net/gml"><gml:boundedBy><gml:Box><gml:coordinates
> xmlns:gml="http://www.opengis.net/gml" decimal="." cs="," ts="
> ">147.2910004483,-42.851001816890005
> 147.2910004483,-42.851001816890005</gml:coordinates></gml:Box></gml:boundedBy><gml:featureMember><gs:tasmania_cities
> fid="tasmania_cities.1"><gs:the_geom><gml:MultiPoint><gml:pointMember><gml:Point><gml:coordinates
> xmlns:gml="http://www.opengis.net/gml" decimal="." cs="," ts="
> ">147.2910004483,-42.851001816890005</gml:coordinates></gml:Point></gml:pointMember></gml:MultiPoint></gs:the_geom><gs:CITY_NAME>Hobart</gs:CITY_NAME><gs:ADMIN_NAME>Tasmania</gs:ADMIN_NAME><gs:CNTRY_NAME>Australia</gs:CNTRY_NAME><gs:STATUS>Provincial
> capital</gs:STATUS><gs:POP_CLASS>100,000 to
> 250,000</gs:POP_CLASS></gs:tasmania_cities></gml:featureMember></wfs:FeatureCollection>
>
> Is your ogr version able to deal with the above?
> The change will be available in 2.1.x nightly builds starting tomorrow
>
> 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
>
> -------------------------------------------------------
>
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense..
http://p.sf.net/sfu/splunk-d2d-c1
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users