Opened 19 years ago
Last modified 19 years ago
#937 closed defect (fixed)
OGRSpatialReference says WKTs with "rectified_grid_angle" are invalid
Reported by: | Owned by: | warmerdam | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | OGR_SRS | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: |
Description
I tiring to build a OGRSpatialReference object with the following WKT: PROJCS["IMAGINE ... Projection Name = Oblique Mercator (Hotine) Units", 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["Hotine_Oblique_Mercator"], PARAMETER["latitude_of_center",0.9996], PARAMETER["longitude_of_center",0.9996], PARAMETER["azimuth",0.9996], PARAMETER["rectified_grid_angle",90], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",0.9996], PARAMETER["false_northing",0.9996], UNIT["metre",1, AUTHORITY["EPSG","9001"]]] I call OGRSpatialReference::Validate() and it fails saying that the "rectified_grid_angle" parameter is not supported. It looks like SRS_PP_RECTIFIED_GRID_ANGLE is not in papszParameters[] on line 65 of ogr/ogr_srs_validate.cpp. (Well adding it makes the error go away. I don't know if this is the right solution.) I also noticed that SRS_PP_PSEUDO_STD_PARALLEL_1 and SRS_PP_SATELLITE_HEIGHT are not in papszParameters[]. -john
Note:
See TracTickets
for help on using tickets.