Opened 19 years ago
Last modified 19 years ago
#804 closed defect (worksforme)
having troubles with EPSG:3005
Reported by: | Owned by: | warmerdam | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | default | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: |
Description
I'm tring to make an OGRSpatialReference object as follows: OGRSpatialReference spatialRef; OGRErr err = OGRERR_NONE; int epsg = 3005; err = spatialRef.importFromEPSG(epsg); if(err != OGRERR_NONE) fprintf(stderr, "********** ERROR calling importFromEPSG()\n"); err = spatialRef.Validate(); if(err != OGRERR_NONE) fprintf(stderr, "********** WKT IS NOT VALID\n"); char *wkt = NULL; if(spatialRef.exportToWkt(&wkt) == OGRERR_NONE && wkt) printf("%s\n", wkt); if(wkt) CPLFree(wkt); It is failing inside importFromEPSG(). After some debugging I found it is failing in ogr_fromepsg.cpp:SetEPSGProjCS() on the switch for nProjMethod = 9822. Is this not a supported ProjMethod or is it an error in the pcs.csv file? Note: EPSG:2964 also fails in the same way.
Change History (2)
comment:2 by , 19 years ago
John reports he is using GDAL 1.2.0 which definately pre-dates the support for ACEA. I will close this now ... please re-open if your problem persists with a modern GDAL.
Note:
See TracTickets
for help on using tickets.