[gdal-dev] Opening a folder of shape files with different encoding as a data set

jratike80 jukka.rahkonen at maanmittauslaitos.fi
Wed Jan 17 02:00:09 PST 2018


Lauri Kajan wrote
> Hi all,
> 
> Is it possible to define shape file encoding per layer when reading a
> folder/zip as a data set?
> 
> My current code reads a zip file containing shape files as a data set and
> then iterates containing layers. The problem I have is that the data
> provider changed their release so that shape files in zip may use
> different
> encoding.
> 
> Do I have any other solutions than opening each shape file separately?
> 
> 
> 
> Thanks,
> 
> -Lauri

Hi,

I would have a try with OGR virtual format http://www.gdal.org/drv_vrt.html.
Include OpenOptions element on each layer and use the ENCODING OpenOption
http://www.gdal.org/drv_shapefile.html.

-Jukka Rahkonen-




--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html


More information about the gdal-dev mailing list