[gdal-dev] Reminder: GDAL 1.11.0RC1 planned to be packaged tomorrow evening

Martin Landa landa.martin at gmail.com
Mon Apr 14 14:54:18 PDT 2014


Hi,

2014-04-14 10:55 GMT+02:00 Martin Landa <landa.martin at gmail.com>:

>>> In this case I would ask you for few days (two/three) postpone. I am
>>> slowly finishing the initial support for GML-based Czech format
>>> (VFR/RUIAN). Would it be possible? Thanks in advance... Martin
>>
>> ok, no problem.
>
> I will commit related GFS files today in the evening hopefully. Sorry
> for delay! Martin

when testing new GFS files for GML driver I found possible bug in the driver.

Program received signal SIGSEGV, Segmentation fault.

#0  __memcpy_sse2 () at ../sysdeps/x86_64/multiarch/../memcpy.S:399
#1  0x00007ffff1cf32b5 in __GI___libc_realloc (oldmem=0x878a70,
bytes=24) at malloc.c:2995
#2  0x00007ffff739f457 in VSIRealloc (pData=0x878a70, nNewSize=24) at
cpl_vsisimple.cpp:623
#3  0x00007ffff7351102 in CPLRealloc (pData=0x878a70, nNewSize=24) at
cpl_conv.cpp:203
#4  0x00007ffff743ea22 in GMLFeature::SetGeometryDirectly
(this=0x878a40, nIdx=1, psGeom=0x8792e0) at gmlfeature.cpp:234
#5  0x00007ffff7442478 in GMLHandler::endElementGeometry
(this=0x68b800) at gmlhandler.cpp:1477
#6  0x00007ffff74402d9 in GMLHandler::endElement (this=0x68b800) at
gmlhandler.cpp:606
#7  0x00007ffff743f8ac in GMLExpatHandler::endElementCbk
(pUserData=0x68b800, pszName=0x742d80 "gml:MultiSurface") at
gmlhandler.cpp:317

In this case `nIdx = 1` and `m_nGeometryCount = 0`. The features in
this layer have one or two geometry colums.

 <obi:Geometrie>
          <obi:DefinicniBod>
          <obi:OriginalniHranice>
</obi:Geometrie>

'DefinicniBod' can be Point or MultiPoint, OriginalniHranice is
MultiSurface (so MultiPolygon). The driver fails when 'Geometrie'
contains only 'OriginalniHranice'. The relevant part of GFS file:

    <GeomPropertyDefn>
      <Name>DefinicniBod</Name>
      <ElementPath>Geometrie|DefinicniBod</ElementPath>
      <Type>MultiPoint</Type>
    </GeomPropertyDefn>
    <GeomPropertyDefn>
      <Name>OriginalniHranice</Name>
      <ElementPath>Geometrie|OriginalniHranice</ElementPath>
      <Type>MultiPolygon</Type>
    </GeomPropertyDefn>

I will prepare sample test file later tomorrow, Martin

-- 
Martin Landa * http://geo.fsv.cvut.cz/gwiki/Landa


More information about the gdal-dev mailing list