[Gdal-dev] Problems with ogr2ogr?
Moskovitz, Bob
Bob.Moskovitz at conservation.ca.gov
Tue Jun 27 13:25:17 EDT 2006
Hello Frank,
There was a problem when I ran those commands on my Linux box (which is not connected to the Internet). So, I re ran those commands on my Windows box (which is on the Internet), assuming that I would get the same results. Looks like I was wrong.
I am using the GDAL 1.3.1 Windows binary and I compiled GDAL 1.3.2 on my Linux box. Below is the results of running GDAL on my Linux box. Thank you for looking into this.
Bob
ogrinfo -al -so LAND_AP_7.tab
Had to open data source read-only.
INFO: Open of `LAND_AP_7.tab'
using driver `MapInfo File' successful.
Layer name: LAND_AP_7
Geometry: Polygon
Feature Count: 6
Extent: (2452634.218712, 276580.102129) - (2486216.118198, 322063.122454)
Layer SRS WKT:
PROJCS["unnamed",
GEOGCS["unnamed",
DATUM["NAD_1927",
SPHEROID["Clarke 1866",6378206.4,294.9786982],
TOWGS84[-8,160,176,0,0,0,0]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433]],
PROJECTION["Lambert_Conformal_Conic_2SP"],
PARAMETER["standard_parallel_1",34.0333333333],
PARAMETER["standard_parallel_2",35.4666666667],
PARAMETER["latitude_of_origin",33.5],
PARAMETER["central_meridian",-118],
PARAMETER["false_easting",609601.2],
PARAMETER["false_northing",0],
UNIT["U.S. Foot",0.3048006]]
AREA: Real (0.0)
PERIMETER: Real (0.0)
LAND_AP_7_: Integer (0.0)
LAND_AP_7_ID: Integer (0.0)
ogr2ogr -f "MapInfo File" -s_srs EPSG:26745 -t_srs EPSG:26711 test.tab LAND_AP_7.tab
ogrinfo -al -so test.tab
Had to open data source read-only.
INFO: Open of `test.tab'
using driver `MapInfo File' successful.
Layer name: test
Geometry: Polygon
Feature Count: 5
Extent: (545973.839059, 3789822.182688) - (556088.117459, 3803682.581444)
Layer SRS WKT:
PROJCS["unnamed",
GEOGCS["unnamed",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.257223563],
TOWGS84[0,0,0,-0,-0,-0,0]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433]],
PROJECTION["Transverse_Mercator"],
PARAMETER["latitude_of_origin",0],
PARAMETER["central_meridian",-117],
PARAMETER["scale_factor",0.9996],
PARAMETER["false_easting",500000],
PARAMETER["false_northing",0],
UNIT["Meter",1.0]]
AREA: Real (0.0)
PERIMETER: Real (0.0)
LAND_AP_7_: Integer (0.0)
LAND_AP_7_ID: Integer (0.0)
-----Original Message-----
From: Frank Warmerdam [mailto:fwarmerdam at gmail.com]On Behalf Of Frank
Warmerdam
Sent: Tuesday, June 27, 2006 9:31 AM
To: Moskovitz, Bob
Cc: Gdal-Dev (E-mail)
Subject: Re: [Gdal-dev] Problems with ogr2ogr?
Moskovitz, Bob wrote:
> Hello List,
>
> I am a new user of GDAL./OGR and I have a problem converting (what is
> supposed to be) a NAD27 California State Plane Zone 5 Mapinfo file to a
> NAD27 UTM Zone 11. For some reason ogr2ogr created a file that
> uses WGS84. The source file was created with MapInfo 6. This is what I did:
...
> *ogr2ogr -f "MapInfo File" -s_srs EPSG:26745 -t_srs EPSG:26711 test.tab
> LAND_AP_7.tab*
> *ogrinfo -al -so test.tab*
> Had to open data source read-only.
> INFO: Open of `test.tab'
> using driver `MapInfo File' successful.
>
> Layer name: test
> Geometry: Polygon
> Feature Count: 5
> Extent: (545973.840000, 3789822.180000) - (556088.130000, 3803682.585000)
> Layer SRS WKT:
> PROJCS["unnamed",
> GEOGCS["unnamed",
> DATUM["North_American_Datum_1927",
> SPHEROID["Clarke 1866",6378206.4,294.9786982],
> TOWGS84[-8,160,176,0,0,0,0]],
> PRIMEM["Greenwich",0],
> UNIT["degree",0.0174532925199433]],
> PROJECTION["Transverse_Mercator"],
> PARAMETER["latitude_of_origin",0],
> PARAMETER["central_meridian",-117],
> PARAMETER["scale_factor",0.9996],
> PARAMETER["false_easting",500000],
> PARAMETER["false_northing",0],
> UNIT["Meter",1.0]]
Bob,
I'm not clear on why you think the output file is in WGS84. The
above report from ogrinfo is UTM 11 NAD27.
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 OSGF, http://osgeo.org
More information about the Gdal-dev
mailing list