[Gdal-dev] GML to shapefile

Bart van den Eijnden (OSGIS) bartvde at xs4all.nl
Wed Jul 26 05:18:31 EDT 2006


Hi Mateusz,

oops, my fault :-) I had forgotten to do so.

I have now opened a bug for the ms: attribute name in dbf issue:

http://bugzilla.remotesensing.org/show_bug.cgi?id=1250

Thanks in advance foor looking into this.

Best regards,
Bart

> Bart van den Eijnden (OSGIS) wrote:
>> Hi list,
>>
>> a while ago I reported a problem with Mapserver GML to shapefile
>> conversion using ogr2ogr, the dbf column names are ms:XXXX.
>>
>> Has this been fixed (ie the namespace removed from the attribute name)?
>>
>> Should I open up a bug report?
>
> Hi Bart,
>
> Obviously, I've forgot about this problem, I'm sorry.
> So, please, file a bug with sample GML files attached then it won't be
> forgotten.
>
> AFAIR from our e-mails exchange you were going to file a bug with
> sample data files:
> http://lists.maptools.org/pipermail/gdal-dev/2006-May/008944.html
>
> and here is your last response I got about this problem:
>
> Bart van den Eijnden (OSGIS) wrote:
>> Hi Mateusz,
>>
>> I have the file at work, will open up a bug on Monday and attach it to
>> it.
>>
>> Best regards,
>> Bart
>>
>> Mateusz Loskot wrote:
>>
>>> Bart van den Eijnden (OSGIS) wrote:
>>>
>>>
>>>> Hi Frank, Mateusz,
>>>>
>>>> I am not saying it is invalid GML, I am saying the values are wrong.
>>>>
>>>> XMIN and YMIN in the Mapserver GML are:
>>>>
>>>> 192519.015625
>>>> 320687.375000
>>>>
>>>> But in OGR's output they are both 0.
>>>>
>>>> I will file some bugs on Monday.
>>>>
>>>
>>> Hi,
>>>
>>> Strange.
>>> I have a sample of GML 2.0 file with
>>>
>>> <gml:boundedBy>
>>> <gml:Box>
>>> <gml:coordinates>
>>> 278653.100,187444.800 279095.300,187898.250
>>> </gml:coordinates>
>>> </gml:Box>
>>> </gml:boundedBy>
>>>
>>> and after I run
>>> ogr2ogr -f "GML" test.gml MySampleGML.gml
>>> the output is changed but correct:
>>>
>>> <gml:boundedBy>
>>> <gml:Box>
>>> <gml:coord><gml:X>278653.1</gml:X><gml:Y>187444.8</gml:Y></gml:coord>
>>> <gml:coord><gml:X>279095.3</gml:X><gml:Y>187898.25</gml:Y></gml:coord>
>>> </gml:Box>
>>> </gml:boundedBy>
>>>
>>> I'd need to test using your GML file. Is it possible send me one?
>>>
>>> Cheers
>
>
> --
> Mateusz Loskot
> http://mateusz.loskot.net
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/gdal-dev
>





More information about the Gdal-dev mailing list