I've got a shapefile (.shp
, .shx
, .dbf
, and .prj
) that I'm trying to save as a GeoJSON using QGIS 2.14. When I load the .shp
into QGIS, everything seems to work fine, the Shapefile renders properly.
However, when I try to do a Save As
and select GeoJSON, I get null
values for all my GeoJSON coordinate values.
{
"type": "FeatureCollection",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { "Section": null, "Block": "Last Name, First Name" }, "geometry": { "type": "MultiPolygon", "coordinates": null } },
{ "type": "Feature", "properties": { "Section": null, "Block": "Last Name, First Name" }, "geometry": { "type": "MultiPolygon", "coordinates": null } },
{ "type": "Feature", "properties": { "Section": null, "Block": "Last Name, First Name" }, "geometry": { "type": "MultiPolygon", "coordinates": null } },
{ "type": "Feature", "properties": { "Section": null, "Block": "Last Name, First Name" }, "geometry": { "type": "MultiPolygon", "coordinates": null } },
{ "type": "Feature", "properties": { "Section": null, "Block": "Last Name, First Name" }, "geometry": { "type": "MultiPolygon", "coordinates": null } },
etc, etc..............
Is there something special I need to do to make sure my coordinates show up when I'm saving my data?
.prj
file:GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]]
ogrinfo -al
. There are coordinates, but there is anan
value that I think is thez
value. Would that affect it?-dim 2
in ogr2ogr. Example:ogr2ogr -f "ESRI Shapefile" -dim 2 output_2D.shp input_3D.shp
like suggested here