I need shapes of admin regions as GeoJSON (Multi)Polygons. After looking for an appropriate source for way too long, I found this NE Admin 1 dataset.
ogr2ogr to convert the data to GeoJSON, I found features with geometry-type
(Multi)LineString. Not quite what I wanted. This guy on GitHub used a different dataset from Natural Earth, but he got
(Multi)Polygons. Are there some special options for
ogr2ogr, some possible conversions, or is it the dataset?
I need to determine whether a point is in a province/region and with the tools I'm using, that's easiest with polygons. If it happens to be a problem with the dataset, does anyone know an alternative?
That's the command I used for conversion:
ogr2ogr -f GeoJSON -t_srs crs:84 output.geojson ne_10m_admin_1_states_provinces_lines.shp`
PS: Most examples I've found specify
-t_srs crs:84. I do need
WGS84, as I'm also using data from geonames.org. But I'm not sure if I even need the transformation.