OGR
ogr_srs_esri_names.h
1 static const int statePlaneZoneMapping[] = {
2 /* old zone code, prj code, new zone code */
3  3126, -1, 101,
4  3151, -1, 102,
5  3176, -1, 202,
6  3201, -1, 203,
7  3226, -1, 301,
8  3251, -1, 302,
9  3326, -1, 403,
10  3351, -1, 404,
11  3376, 26945, 405,
12  3426, -1, 407,
13  3451, -1, 501,
14  3476, -1, 502,
15  3526, -1, 600,
16  3551, -1, 700,
17  3576, -1, 903,
18  3626, -1, 902,
19  3651, -1, 1001,
20  3676, -1, 1002,
21  3726, -1, 1102,
22  3751, -1, 1103,
23  3776, -1, 1201,
24  3801, -1, 1202,
25  3826, -1, 1301,
26  3851, -1, 1302,
27  3876, -1, 1401,
28  3926, -1, 1501,
29  3951, -1, 1502,
30  3976, -1, 1601,
31  4026, -1, 1701,
32  6426, -1, 1703,
33  4076, -1, 1801,
34  4101, -1, 1802,
35  4126, -1, 1900,
36  4151, -1, 2001,
37  4176, -1, 2002,
38  4226, -1, 2102,
39  4251, -1, 2103,
40  6351, -1, 2111,
41  6376, -1, 2112,
42  6401, -1, 2113,
43  4276, -1, 2201,
44  4326, -1, 2203,
45  4351, -1, 2301,
46  4376, -1, 2302,
47  4400, 32045, 3400,
48  4401, -1, 2401,
49  4426, -1, 2402,
50  4451, -1, 2403,
51  4476, 32100, 2500,
52  4476, -1, 2501,
53  4701, 32111, 2900,
54  4801, 2260, 3101,
55  4801, 32115, 3101,
56  4526, -1, 2503,
57  4551, -1, 2601,
58  4576, -1, 2602,
59  4626, -1, 2702,
60  4651, -1, 2703,
61  4676, -1, 2800,
62  4726, -1, 3001,
63  4751, -1, 3002,
64  4776, -1, 3003,
65  4826, -1, 3102,
66  4851, -1, 3103,
67  4876, -1, 3104,
68  4926, -1, 3301,
69  4951, -1, 3302,
70  4976, -1, 3401,
71  5026, -1, 3501,
72  5051, -1, 3502,
73  5076, -1, 3601,
74  5126, -1, 3701,
75  5151, -1, 3702,
76  5176, -1, 3800,
77  5226, -1, 3902,
78  5251, -1, 4001,
79  5276, -1, 4002,
80  5301, -1, 4100,
81  5326, -1, 4201,
82  5351, -1, 4202,
83  5376, -1, 4203,
84  5401, -1, 4204,
85  5426, -1, 4205,
86  5451, -1, 4301,
87  5476, -1, 4302,
88  5501, -1, 4303,
89  5526, -1, 4400,
90  5551, -1, 4501,
91  5576, -1, 4502,
92  5601, -1, 4601,
93  5626, -1, 4602,
94  5651, -1, 4701,
95  5676, -1, 4702,
96  5701, -1, 4801,
97  5726, -1, 4802,
98  5751, -1, 4803,
99  5776, -1, 4901,
100  5801, -1, 4902,
101  5826, -1, 4903,
102  5851, -1, 4904,
103  6101, -1, 5001,
104  6126, -1, 5002,
105  6151, -1, 5003,
106  6176, -1, 5004,
107  6201, -1, 5005,
108  6226, -1, 5006,
109  6251, -1, 5007,
110  6276, -1, 5008,
111  6301, -1, 5009,
112  6326, -1, 5010,
113  5876, -1, 5101,
114  5901, -1, 5102,
115  5926, -1, 5103,
116  5951, -1, 5104,
117  5976, -1, 5105,
118  6001, -1, 5201,
119  6026, -1, 5200,
120  6076, -1, 5200,
121  6051, -1, 5202,
122  0, 0, 0
123  };
124 
125 /* This is not a complete mapping. Need to add more. */
126 static const int statePlanePcsCodeToZoneCode[] = {
127 /* pcs code, state plane prj str index*/
128 2222, 2016,
129 2223, 2026,
130 2224, 2036,
131 2225, 4012,
132 2226, 4022,
133 2227, 4032,
134 2228, 4042,
135 2229, 4052,
136 2230, 4062,
137 2231, 5012,
138 2232, 5022,
139 2233, 5032,
140 2234, 6002,
141 2235, 7002,
142 2236, 9012,
143 2237, 9022,
144 2238, 9032,
145 2239, 10012,
146 2240, 10022,
147 2241, 11012,
148 2242, 11022,
149 2243, 11032,
150 2251, 21116,
151 2252, 21126,
152 2253, 21136,
153 2256, 25006,
154 2265, 33016,
155 2266, 33026,
156 2965, 13012,
157 2966, 13022,
158 2246, 16012,
159 2247, 16022,
160 2248, 19002,
161 2249, 20012,
162 2250, 20022,
163 2254, 23012,
164 2255, 23022,
165 2257, 30012,
166 2258, 30022,
167 2259, 30032,
168 2260, 31012,
169 2261, 31022,
170 2262, 31032,
171 2263, 31042,
172 2264, 32002,
173 2267, 35012,
174 2268, 35022,
175 2269, 36016,
176 2270, 36026,
177 2271, 37012,
178 2272, 37022,
179 2273, 39006,
180 2274, 41002,
181 2275, 42012,
182 2276, 42022,
183 2277, 42032,
184 2278, 42042,
185 2279, 42052,
186 2280, 43016,
187 2281, 43026,
188 2282, 43036,
189 2283, 45012,
190 2284, 45022,
191 2285, 46012,
192 2286, 46022,
193 2287, 48012,
194 2288, 48022,
195 2289, 48032,
196 2867, 2015,
197 2868, 2025,
198 2869, 2035,
199 2896, 21115,
200 2897, 21125,
201 2898, 21135,
202 2901, 25005,
203 2909, 33015,
204 2910, 33025,
205 2913, 36015,
206 2914, 36025,
207 2921, 43015,
208 2922, 43025,
209 2923, 43035,
210 2870, 4013,
211 2871, 4023,
212 2872, 4033,
213 2873, 4043,
214 2874, 4053,
215 2875, 4063,
216 2876, 5013,
217 2877, 5023,
218 2878, 5033,
219 2879, 6003,
220 2880, 7003,
221 2881, 9013,
222 2882, 9023,
223 2883, 9033,
224 2884, 10013,
225 2885, 10023,
226 2886, 11013,
227 2887, 11023,
228 2888, 11033,
229 2967, 13013,
230 2968, 13023,
231 2891, 16013,
232 2892, 16023,
233 2893, 19003,
234 2894, 20013,
235 2895, 20023,
236 2899, 23013,
237 2900, 23023,
238 2902, 30013,
239 2903, 30023,
240 2904, 30033,
241 2905, 31013,
242 2906, 31023,
243 2907, 31033,
244 2908, 31043,
245 2911, 35013,
246 2912, 35023,
247 2915, 41003,
248 2916, 42013,
249 2917, 42023,
250 2918, 42033,
251 2919, 42043,
252 2920, 42053,
253 2924, 45013,
254 2925, 45023,
255 2926, 46013,
256 2927, 46023,
257 2928, 48013,
258 2929, 48023,
259 2930, 48033,
260 // following are state systems (not complete)
261 2964, 102965,
262 2991, 102991,
263 2992, 102992,
264 2993, 102993,
265 2994, 102994,
266 // following are NAD 1983 SPCS Zone
267 26929, 1011,
268 26930, 1021,
269 26931, 50011,
270 26932, 50021,
271 26933, 50031,
272 26934, 50041,
273 26935, 50051,
274 26936, 50061,
275 26937, 50071,
276 26938, 50081,
277 26939, 50091,
278 26940, 50101,
279 26948, 2011,
280 26949, 2021,
281 26950, 2031,
282 26951, 3011,
283 26952, 3021,
284 26941, 4011,
285 26942, 4021,
286 26943, 4031,
287 26944, 4041,
288 26945, 4051,
289 26946, 4061,
290 26953, 5011,
291 26954, 5021,
292 26955, 5031,
293 26956, 6001,
294 26957, 7001,
295 26958, 9011,
296 26959, 9021,
297 26960, 9031,
298 26966, 10011,
299 26967, 10021,
300 26961, 51011,
301 26962, 51021,
302 26963, 51031,
303 26964, 51041,
304 26965, 51051,
305 26968, 11011,
306 26969, 11021,
307 26970, 11031,
308 26971, 12011,
309 26972, 12021,
310 26973, 13011,
311 26974, 13021,
312 26975, 14011,
313 26976, 14021,
314 26977, 15011,
315 26978, 15021,
316 26979, 16011,
317 26980, 16021,
318 26981, 17011,
319 26982, 17021,
320 26983, 18011,
321 26984, 18021,
322 26985, 19001,
323 26986, 20011,
324 26987, 20021,
325 26988, 21111,
326 26989, 21121,
327 26990, 21131,
328 26991, 22011,
329 26992, 22021,
330 26993, 22031,
331 26994, 23011,
332 26995, 23021,
333 26996, 24011,
334 26997, 24021,
335 26998, 24031,
336 32100, 25001,
337 32104, 26001,
338 32107, 27011,
339 32108, 27021,
340 32109, 27031,
341 32110, 28001,
342 32111, 29001,
343 32112, 30011,
344 32113, 30021,
345 32114, 30031,
346 32115, 31011,
347 32116, 31021,
348 32117, 31031,
349 32118, 31041,
350 32119, 32001,
351 32120, 33011,
352 32121, 33021,
353 32122, 34011,
354 32123, 34021,
355 32124, 35011,
356 32125, 35021,
357 32126, 36011,
358 32127, 36021,
359 32128, 37011,
360 32129, 37021,
361 32130, 38001,
362 32133, 39001,
363 32134, 40011,
364 32135, 40021,
365 32136, 41001,
366 32137, 42011,
367 32138, 42021,
368 32139, 42031,
369 32140, 42041,
370 32141, 42051,
371 32142, 43011,
372 32143, 43021,
373 32144, 43031,
374 32145, 44001,
375 32146, 45011,
376 32147, 45021,
377 32148, 46011,
378 32149, 46021,
379 32150, 47011,
380 32151, 47021,
381 32152, 48011,
382 32153, 48021,
383 32154, 48031,
384 32155, 49011,
385 32156, 49021,
386 32157, 49031,
387 32158, 49041,
388 32161, 52000,
389 65161, 54001,
390 0, 0
391 };
OGRSpatialReference::SetEC
OGRErr SetEC(double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5434
ogr_spatialref.h
OGRSpatialReference::GetEPSGGeogCS
int GetEPSGGeogCS() const
Definition: ogr_fromepsg.cpp:301
CPLReadLineL
const char * CPLReadLineL(VSILFILE *)
Definition: cpl_conv.cpp:630
OGRSpatialReference::SetMercator2SP
OGRErr SetMercator2SP(double dfStdP1, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6477
cpl_error.h
OGRSpatialReference::SetWellKnownGeogCS
OGRErr SetWellKnownGeogCS(const char *)
Set a GeogCS based on well known name.
Definition: ogrspatialreference.cpp:2953
CPLFindFile
const char * CPLFindFile(const char *pszClass, const char *pszBasename)
Definition: cpl_findfile.cpp:177
OGRSpatialReference::ImportFromESRIStatePlaneWKT
OGRErr ImportFromESRIStatePlaneWKT(int nCode, const char *pszDatumName, const char *pszUnitsName, int nPCSCode, const char *pszCRSName=nullptr)
Definition: ogr_srs_esri.cpp:820
OGRSpatialReference::GetAuthorityCode
const char * GetAuthorityCode(const char *pszTargetKey) const
Get the authority code for a node.
Definition: ogrspatialreference.cpp:7381
OGRSpatialReference::morphFromESRI
OGRErr morphFromESRI()
Convert in place from ESRI WKT format.
Definition: ogrspatialreference.cpp:9900
OGRSpatialReference::GetAttrValue
const char * GetAttrValue(const char *, int=0) const
Fetch indicated attribute of named node.
Definition: ogrspatialreference.cpp:1099
cpl_vsi.h
OGRSpatialReference
Definition: ogr_spatialref.h:157
OGRSpatialReference::SetACEA
OGRErr SetACEA(double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5265
OGRSpatialReference::IsLocal
int IsLocal() const
Check if local coordinate system.
Definition: ogrspatialreference.cpp:7823
OGRSpatialReference::importFromERM
OGRErr importFromERM(const char *pszProj, const char *pszDatum, const char *pszUnits)
Definition: ogr_srs_erm.cpp:83
CSLCount
int CSLCount(CSLConstList papszStrList)
Definition: cpl_string.cpp:147
CPLString
Convenient string class based on std::string.
Definition: cpl_string.h:330
OGRSpatialReference::SetPS
OGRErr SetPS(double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6698
OGRSpatialReference::IsProjected
int IsProjected() const
Check if projected coordinate system.
Definition: ogrspatialreference.cpp:7642
OGRSpatialReference::CopyGeogCSFrom
OGRErr CopyGeogCSFrom(const OGRSpatialReference *poSrcSRS)
Copy GEOGCS from another OGRSpatialReference.
Definition: ogrspatialreference.cpp:3081
CPLRealloc
void * CPLRealloc(void *, size_t)
Definition: cpl_conv.cpp:225
OGRSpatialReference::SetPolyconic
OGRErr SetPolyconic(double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6663
OGRSpatialReference::GetUTMZone
int GetUTMZone(int *pbNorth=nullptr) const
Get utm zone information.
Definition: ogrspatialreference.cpp:7024
EQUAL
#define EQUAL(a, b)
Definition: cpl_port.h:569
VSIFCloseL
int VSIFCloseL(VSILFILE *) EXPERIMENTAL_CPL_WARN_UNUSED_RESULT
Close file.
Definition: cpl_vsil.cpp:1472
OGRSpatialReference::SetStatePlane
OGRErr SetStatePlane(int nZone, int bNAD83=TRUE, const char *pszOverrideUnitName=nullptr, double dfOverrideUnit=0.0)
Set State Plane projection definition.
Definition: ogr_fromepsg.cpp:151
OGRSpatialReference::GetAuthorityName
const char * GetAuthorityName(const char *pszTargetKey) const
Get the authority name for a node.
Definition: ogrspatialreference.cpp:7465
OGRERR_UNSUPPORTED_SRS
#define OGRERR_UNSUPPORTED_SRS
Definition: ogr_core.h:299
OGRSpatialReferenceH
void * OGRSpatialReferenceH
Definition: ogr_api.h:74
OGRSpatialReference::exportToERM
OGRErr exportToERM(char *pszProj, char *pszDatum, char *pszUnits)
Definition: ogr_srs_erm.cpp:188
VALIDATE_POINTER1
#define VALIDATE_POINTER1(ptr, func, rc)
Definition: cpl_error.h:276
OGRERR_FAILURE
#define OGRERR_FAILURE
Definition: ogr_core.h:298
OGRSpatialReference::importFromDict
OGRErr importFromDict(const char *pszDict, const char *pszCode)
Definition: ogr_srs_dict.cpp:70
OGRSpatialReference::SetGeogCS
OGRErr SetGeogCS(const char *pszGeogName, const char *pszDatumName, const char *pszEllipsoidName, double dfSemiMajor, double dfInvFlattening, const char *pszPMName=nullptr, double dfPMOffset=0.0, const char *pszUnits=nullptr, double dfConvertToRadians=0.0)
Set geographic coordinate system.
Definition: ogrspatialreference.cpp:2836
OGRSpatialReference::Clear
void Clear()
Wipe current definition.
Definition: ogrspatialreference.cpp:790
CPLDebug
void CPLDebug(const char *, const char *,...)
Definition: cpl_error.cpp:602
ogr_srs_api.h
cpl_conv.h
OGRSpatialReference::importFromWkt
OGRErr importFromWkt(char **)
Import from WKT string.
Definition: ogrspatialreference.cpp:1704
cpl_string.h
SRS_UL_METER
#define SRS_UL_METER
Definition: ogr_srs_api.h:314
OGRSpatialReference::importFromEPSG
OGRErr importFromEPSG(int)
Initialize SRS based on EPSG geographic, projected or vertical CRS code.
Definition: ogrspatialreference.cpp:10220
OSRCalcInvFlattening
double OSRCalcInvFlattening(double dfSemiMajor, double dfSemiMinor)
Compute inverse flattening from semi-major and semi-minor axis.
Definition: ogrspatialreference.cpp:9474
CPLError
void CPLError(CPLErr eErrClass, CPLErrorNum err_no, const char *fmt,...)
Definition: cpl_error.cpp:308
OSRImportFromDict
OGRErr OSRImportFromDict(OGRSpatialReferenceH, const char *, const char *)
Definition: ogr_srs_dict.cpp:175
OGRSpatialReference::SetLAEA
OGRErr SetLAEA(double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6228
SRS_PT_MERCATOR_AUXILIARY_SPHERE
#define SRS_PT_MERCATOR_AUXILIARY_SPHERE
Definition: ogr_srs_api.h:149
OGRSpatialReference::GetLinearUnits
double GetLinearUnits(char **) const CPL_WARN_DEPRECATED("Use GetLinearUnits( const char**) instead")
Fetch linear projection units.
Definition: ogrspatialreference.cpp:2430
OGRERR_CORRUPT_DATA
#define OGRERR_CORRUPT_DATA
Definition: ogr_core.h:297
OGRErr
int OGRErr
Definition: ogr_core.h:290
OGRSpatialReference::SetAuthority
OGRErr SetAuthority(const char *pszTargetKey, const char *pszAuthority, int nCode)
Set the authority for a node.
Definition: ogrspatialreference.cpp:7245
CSLDestroy
void CSLDestroy(char **papszStrList)
Definition: cpl_string.cpp:200
OSRImportFromESRI
OGRErr OSRImportFromESRI(OGRSpatialReferenceH, char **)
Import coordinate system from ESRI .prj format(s).
Definition: ogr_srs_esri.cpp:238
OGRSpatialReference::SetLCC
OGRErr SetLCC(double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6289
cpl_port.h
CSLTokenizeString
char ** CSLTokenizeString(const char *pszString)
Definition: cpl_string.cpp:759
EQUALN
#define EQUALN(a, b, n)
Definition: cpl_port.h:567
SRS_UL_US_FOOT_CONV
#define SRS_UL_US_FOOT_CONV
Definition: ogr_srs_api.h:322
VSIFOpenL
VSILFILE * VSIFOpenL(const char *, const char *)
Open file.
Definition: cpl_vsil.cpp:997
OSRExportToERM
OGRErr OSRExportToERM(OGRSpatialReferenceH, char *, char *, char *)
Convert coordinate system to ERMapper format.
Definition: ogr_srs_erm.cpp:163
OGRERR_NONE
#define OGRERR_NONE
Definition: ogr_core.h:292
CPLStrdup
char * CPLStrdup(const char *)
Definition: cpl_conv.cpp:293
CPLAtof
double CPLAtof(const char *)
Definition: cpl_strtod.cpp:117
OGRSpatialReference::SetLinearUnitsAndUpdateParameters
OGRErr SetLinearUnitsAndUpdateParameters(const char *pszName, double dfInMeters, const char *pszUnitAuthority=nullptr, const char *pszUnitCode=nullptr)
Set the linear units for the projection.
Definition: ogrspatialreference.cpp:2180
OGRSpatialReference::SetTM
OGRErr SetTM(double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5060
OSRImportFromERM
OGRErr OSRImportFromERM(OGRSpatialReferenceH, const char *, const char *, const char *)
Create OGR WKT from ERMapper projection definitions.
Definition: ogr_srs_erm.cpp:55
OGRSpatialReference::SetLocalCS
OGRErr SetLocalCS(const char *)
Set the user visible LOCAL_CS name.
Definition: ogrspatialreference.cpp:4305
ogr_core.h
OGRSpatialReference::importFromESRI
OGRErr importFromESRI(char **)
Import coordinate system from ESRI .prj format(s).
Definition: ogr_srs_esri.cpp:399
OGRSpatialReference::IsGeographic
int IsGeographic() const
Check if geographic coordinate system.
Definition: ogrspatialreference.cpp:7760
CPLFree
#define CPLFree
Definition: cpl_conv.h:81
VSILFILE
FILE VSILFILE
Definition: cpl_vsi.h:156
STARTS_WITH_CI
#define STARTS_WITH_CI(a, b)
Definition: cpl_port.h:580
CPLE_AppDefined
#define CPLE_AppDefined
Definition: cpl_error.h:99
SRS_UL_US_FOOT
#define SRS_UL_US_FOOT
Definition: ogr_srs_api.h:320
OGRSpatialReference::SetUTM
OGRErr SetUTM(int nZone, int bNorth=TRUE)
Set UTM projection definition.
Definition: ogrspatialreference.cpp:6973

Generated for GDAL by doxygen 1.8.20.