[Gdal-dev] Is ogr2ogr the tool to use?
Nelson, Dean
dean.nelson at eecradar.com
Tue Jul 24 13:06:14 EDT 2007
Frank
Here is the .prj file associated with the input file.
PROJCS["Sphere_ARC_INFO_Lambert_Azimuthal_Equal_Area",GEOGCS[
"GCS_Sphere_ARC_INFO",DATUM["D_Sphere_ARC_INFO",SPHEROID["Sphere_ARC_INFO",
6370997.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],
PROJECTION["Lambert_Azimuthal_Equal_Area"],PARAMETER["False_Easting",0.0],
PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-100.0],PARAMETER[
"Latitude_Of_Origin",45.0],UNIT["Meter",1.0]]
This particular data is located at
http://edc.usgs.gov/products/elevation/gtopo30/hydro/na_basins.html
Regards,
Dean Nelson
-----Original Message-----
From: Frank Warmerdam [mailto:warmerdam at pobox.com]
Sent: Tue 7/24/2007 11:37 AM
To: Nelson, Dean
Cc: gdal-dev at lists.maptools.org
Subject: Re: [Gdal-dev] Is ogr2ogr the tool to use?
Nelson, Dean wrote:
> Hello,
> I am trying to convert the Hydro1k basin shapefiles from a "projected"
> shapefile to a Lat/Lon shape file. I am doing that with the command:
>
> ogr2ogr -t_srs WGS84 -f "ESRI Shapefile" outfile.shp infile.shp
>
> But when the shapefile is viewed, it shows up about 17km north of the
> correct data. SO the questions are:
>
> 1. Is this the best tool to do that with?
> 2. Did I do it right?
> 3. Is there a way to offset the data in ogr2ogr?
Dean,
Could you post the .prj file associated with the input shapefile?
Ogr2ogr is an appropriate tool for the job, but there are issues
with how spherical projections are converted WGS84 that may be coming
into play. Or it might be something else. Having the input .prj
would be helpful to determine what the issue is.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | President OSGeo, http://osgeo.org
More information about the Gdal-dev
mailing list