Quantcast
Channel: Question and Answer » gdal
Viewing all articles
Browse latest Browse all 397

What's the best way to add a projection to GDAL?

$
0
0

I have a number of files in Maryland State-Plane (US foot) that have the following wkt:

“PROJCS["NAD_1983_StatePlane_Maryland_FIPS_1900_Feet",
GEOGCS["NAD83",
DATUM["North_American_Datum_1983",
SPHEROID["GRS 1980",6378137,298.2572221010002,AUTHORITY["EPSG","7019"]],AUTHORITY["EPSG","6269"]],
PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433],AUTHORITY["EPSG","4269"]],
PROJECTION["Lambert_Conformal_Conic_2SP"],
PARAMETER["standard_parallel_1",38.3],
PARAMETER["standard_parallel_2",39.45],
PARAMETER["latitude_of_origin",37.66666666666666],
PARAMETER["central_meridian",-77],
PARAMETER["false_easting",1312333.333333333],
PARAMETER["false_northing",0],
UNIT["US survey foot",0.3048006096012192,AUTHORITY["EPSG","9003"]]]”

OGRSpatialReference::autoIdentifyEPSG fails to recognize this.
As far as I can tell, the only difference in this wkt and the one for 2248 on spatialreference.org is some trailing significant digits, some omitted Authority codes, and a reversal in the order of the standard parallels.

[Edit] I’ve been looking at the pcs.csv file and while I don’t know exactly how to read the columns, it appears that the parameters in the file for 2248 don’t match the above wkt or the wkt on spatialreference.org. The standard parallels differ, as does the latitude of origin. This ups the ante on what the right action is.

What is the preferred method for adding this to the data files so that it will be recognized? Do I edit my pcs.csv file? The pcs.override.csv? Or something else? Changing the content of the file is impractical in this case.


Viewing all articles
Browse latest Browse all 397

Trending Articles