Closed citizenfish closed 4 years ago
hi 👋 seeing the same result as above - I tried running a few previous versions and got the same error, guessing it might be related to a dependency?
Try to use the propertyname 'name' e.g.: mbtiles-extracts [path_to_mbtiles] [path_to_geojson] name
I was also facing this problem and debugged the javascript to find out that in the geojson file should look like this:
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"name": "NameOfTheArea"
},
"geometry": {
"type": "Polygon",
"coordinates": []
}
}
]
}
and that the argument 'property name' to give to mbtiles-extracts is in this case NOT "NameOfTheArea", but the identifier : name.
Hope this helps.
The fix was to add the attribute "name" to the GEOJSON and use the command specified by @EjaYF