ngageoint / hootenanny

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

Wood mapped as closed line exports as area #4514

Closed MikeTho16 closed 3 years ago

MikeTho16 commented 3 years ago

Describe the bug If one maps a Wood (EC030) feature with a closed line, it renders as an area, and exports as an area.

To Reproduce Steps to reproduce the behavior:

  1. Start iD editor (or use F5 to refresh, error message is different if this is the second or subsequent Wood feature mapped).
  2. Pan to area of the map where there are no other features (so that when you export you get just this one feature).
  3. Draw a closed line (perhaps not super common in reality, but not impossible, e.g. a shelter belt around a farmstead)
  4. Make sure "Tag Schema:" is set to "MGCP"
  5. Search for "Wood"
    image
  6. Select "Wood (EC030)"
  7. Feature renders as an area (note shaded green border):
    image
  8. Click "Save"
  9. Click "Upload"
  10. Click "Export"
  11. Select "MGCP" for Schema
  12. Select "Shapefile" for format
    image
  13. Click "Export"
  14. Save somewhere on local machine
  15. Unzip
  16. Should be one shapefile, AEC030.*, all MGCP shapefiles whose name starts with "A" are area shapefiles.
  17. Open shapefile in a GIS, such as QGIS, and Wood feature is indeed an area.

Expected behavior

Screenshots

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context

mattjdnv commented 3 years ago

This one is interesting. EC030 (Wood) can be a point, line or area feature in MGCP When translating OSM -> Shape/FGDB/etc the translator tries to figure out what the geometry is (point, line, polygon) and the rules are:

In the translation script:

@brianhatchl is looking at how the UI passes the geometry type to the translator. so that it gets the translation correct.

mattjdnv commented 3 years ago

Fixed in Hootenanny #4491

MikeTho16 commented 3 years ago

I tested on the GC instance.

iD 2.17.3----.17 - resolved Export - resolved