Quantcast
Channel: Question and Answer » osgeo
Viewing all articles
Browse latest Browse all 11

ogr2ogr re-projection produces empty shapefile

$
0
0

I use the following to re-project a shapefile to EPSG 4326 using ogr2ogr:

ogr2ogr -s_srs "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" -t_srs "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" /reprojected_location/ /originalfile/file.shp 

It works for almost every file I have tried it with except for this one:

testshp

It gives no error messages but the output shapefile is empty. Granted, this file is already epsg 4326, but I have tried reprojecting to other systems with the same result. I have also successfully run this command on other shapefiles with a prj file identical to this one. Any thoughts on how I could at least get some debugging information from ogr2ogr or what is special about this shapefile that causes it to fail silently?


Viewing all articles
Browse latest Browse all 11

Trending Articles