[Gdal-dev] Newbie (ogr2ogr reprojecting NZMG to NZTM)

andrew.haywood at poyry.com andrew.haywood at poyry.com
Mon May 28 20:13:42 EDT 2007


Dear List,

i am having some problems with reprojecting shapefiles from NZMG to NZTM. 
I have copied the nzgd2kgrid0005.1gsb into the projlib directory (on my 
Suse 10.2 installation it is in the 

if i run the following command

ogr2ogr -f "ESRI Shapefile" north_island_nztm.shp 'FRWP/Active/38A08772 
MfE_Mapping forest harvesting using MODIS satellite 
data/GIS/LCDB2_North_Island_Forest_Classes.shp' -s_srs "+proj=nzmg 
+lat_0=-41 +lon_0=173 +x_0=2510000 +y_0=6023150 +ellps=intl +datum=nzgd49 
+units=m +nadgrids=nzgd2kgrid0005.1gsb +wktext" -t_srs EPSG:2193

then run the following 

ogrinfo -summary north_island_nztm.shp north_island_nztm

i get the following output. Where the datum is "Mean_Sea_Level" - which i 
suspect is incorrect. I thought the datum should have been NZGD2000. Any 
help would be greatly appreciated.

best regards.



INFO: Open of `north_island_nztm.shp'
      using driver `ESRI Shapefile' successful.

Layer name: north_island_nztm
Geometry: Polygon
Feature Count: 104978
Extent: (1518858.988989, 5392310.766727) - (2089515.826863, 
6221064.447185)
Layer SRS WKT:
PROJCS["NZGD2000 / New Zealand Transverse Mercator",
    GEOGCS["NZGD2000",
        DATUM["Mean_Sea_Level",
            SPHEROID["GRS_1980",6378137,298.257222101]],
        PRIMEM["Greenwich",0],
        UNIT["Degree",0.017453292519943295]],
    PROJECTION["Transverse_Mercator"],
    PARAMETER["latitude_of_origin",0],
    PARAMETER["central_meridian",173],
    PARAMETER["scale_factor",0.9996],
    PARAMETER["false_easting",1600000],
    PARAMETER["false_northing",10000000],
    UNIT["Meter",1]]
AREA: Real (19.5)
PERIMETER: Real (19.5)
NI_NZMG_: Real (11.0)
NI_NZMG_ID: Real (11.0)
LCDB1CLASS: Real (11.0)
LCDB1NAME: String (40.0)
LCDB2CLASS: Real (11.0)
LCDB2NAME: String (40.0)
WET_CONTEX: String (3.0)
HECTARES: Real (19.2)
TA_ID: Real (11.0)
TA_NAME: String (50.0)
REGION_ID: Real (11.0)
REGION_NAM: String (50.0)



This email and any files transmitted with it are confidential, may be legally privileged and are intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, you are hereby notified that any use, distribution, or reproduction of the contents of this email is strictly prohibited and may be unlawful. If you are not the intended recipient, please notify the sender by return email and destroy all copies of the original message including any attachments thereto. 
Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20070529/1c5c80a5/attachment.html


More information about the Gdal-dev mailing list