Hi!

On Sun, Mar 6, 2016 at 12:56 AM, Stefan Keller <sfkel...@gmail.com> wrote:
>
> I of course know Shapefiles but they are deprecated because e.g. they
> cut-off field names at 10 chars. GeoJSON or GeoPackage are better
> alternatives.
>

For RABA-KGZ landuse import in Slovenia we pushed the-10 character limit in
shapefiles / dbf to 11 characters and even inserted special characters
(colons) in field name (to allow us to have "source:date" tag) by altering
the binary data using bbe (sed-like binary block editor) as the last step
of data preparation:
bbe -e "s/SOURCEDATE\x00/source:date/" source.dbf -o target.dbf

JOSM reads it nicely using OpenData plugin, as well as QGIS and other
editors.

Full example and context can be seen at
https://github.com/stefanb/RabaSplitForOSM/blob/master/makeOneSplitExplode.sh#L94

Example shapefiles can be seen (in browser and in JOSM) at
http://raba.openstreetmap.si

best regards,
Stefan
_______________________________________________
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk

Reply via email to