bcgov / designatedlands

Python script to combine conservation related spatial data from many sources to create a single 'Designated Lands' layer for British Columbia
Apache License 2.0
9 stars 4 forks source link

shapefile output option #83

Closed smnorris closed 2 years ago

smnorris commented 2 years ago

ESRI tools can be unreliable when viewing geopackages. Workaround by providing option to dump outputs to shapefile (writing to .gdb is possible with the esri fgdb driver but remains awkward to set up).

Need short field names, something like this:

designations_planarized_id dl_id
designations               dsgntn
source_ids                 src_ids  
source_names               src_names
forest_restrictions        rstr_for
mine_restrictions          rstr_min
og_restrictions            rstr_og
forest_restriction_max     rstrformax
mine_restriction_max       rstrminmax
og_restriction_max         rstrogmax
map_tile                   map_tile

2G file size limit may crash some outputs but user can then revert to gpkg.

smnorris commented 2 years ago

Not really needed, user can convert (ogr2ogr) a given .gpkg output to shp as required (but a standard set of short field names may be handy if this is the case)