ngageoint / hootenanny

Hootenanny conflates multiple maps into a single seamless map.
GNU General Public License v3.0
353 stars 74 forks source link

Writing multiple OSM files to Shapefile does not produce the expected output #4467

Closed mattjdnv closed 3 years ago

mattjdnv commented 3 years ago

Running this:

#!/bin/bash
set -e
rm -rf output* x_*.txt
hoot convert -C NodeExport.conf \
  -D convert.ops="hoot::SchemaTranslationOp" \
  -D schema.translation.script=$HOOT_HOME/translations/RenderDb.js \
  export_one.osm outputA.shp > x_A.txt
hoot convert export_one.osm outputB.shp > x_B.txt
hoot convert -C NodeExport.conf \
  -D convert.ops="hoot::SchemaTranslationOp" \
  -D schema.translation.script=$HOOT_HOME/translations/RenderDb.js \
  export_one.osm export_one2.osm outputC.shp > x_C.txt

Results in this output:

hoot3:/home/dg/matt_test/test_max_renderdb $ ls *
dc.zip  export_one2.osm  export_one.osm  export.osm  hoot_test.sh  x_A.txt  x_B.txt  x_C.txt
outputA:
Area.cpg  Area.dbf  Area.prj  Area.shp  Area.shx
outputB.shp:
Lines.cpg  Lines.prj  Lines.shx   Points.dbf  Points.shp  Polygons.cpg  Polygons.prj  Polygons.shx
Lines.dbf  Lines.shp  Points.cpg  Points.prj  Points.shx  Polygons.dbf  Polygons.shp
outputC.shp:
Lines.cpg  Lines.prj  Lines.shx   Points.dbf  Points.shp  Polygons.cpg  Polygons.prj  Polygons.shx
Lines.dbf  Lines.shp  Points.cpg  Points.prj  Points.shx  Polygons.dbf  Polygons.shp

outputC is wrong. The internal structure is correct but the layer naming has reverted to the generic shapefile naming

mattjdnv commented 3 years ago

The issue is:

NOTE: "single" == 1 x FGDB, 1 x directory of shapefiles etc

mattjdnv commented 3 years ago

Merged