[gdal-dev] ogrinfo and gml?

Mateusz Loskot mateusz at loskot.net
Fri Jul 25 08:58:54 EDT 2008


Christopher Schmidt wrote:
> On Fri, Jul 25, 2008 at 02:06:38PM +0200, Mateusz Loskot wrote:
>> Christopher Schmidt wrote:
>>> On Fri, Jul 25, 2008 at 12:37:38PM +0200, Mateusz Loskot wrote:
>>>> Wendell Turner wrote:
>>>>> Why do the examples of ogrinfo not work? That is, the
>>>>> example shows a coal_dep.gml with contents of:
>>>>>
>>>>> <gml:featureMember>
>>>>> <Coal_Deposits fid="1">
>> Yes, I agree the prolog is optional, but GML driver expects to find
>> target namespace in the root element.
> 
> Right, which means the prolog is not the problem here -- the fact that
> this is an illegal XML document is. :) 

Yes, Chris, you are perfectly correct.
I always use XML prolog, so I assumed myself it's not optional.
I should read the XML spec more carefully instead :-)

> Specifically, it's a namespaced doc with no namespace declarations.

Yes.

Ciao
-- 
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org


More information about the gdal-dev mailing list