GDAL

ogr_srs_cf1.h
1/******************************************************************************
2 * $Id$
3 *
4 * Project: netCDF read/write Driver
5 * Purpose: GDAL bindings over netCDF library.
6 * Author: Frank Warmerdam, warmerdam@pobox.com
7 *
8 ******************************************************************************
9 * Copyright (c) 2004, Frank Warmerdam
10 *
11 * Permission is hereby granted, free of charge, to any person obtaining a
12 * copy of this software and associated documentation files (the "Software"),
13 * to deal in the Software without restriction, including without limitation
14 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
15 * and/or sell copies of the Software, and to permit persons to whom the
16 * Software is furnished to do so, subject to the following conditions:
17 *
18 * The above copyright notice and this permission notice shall be included
19 * in all copies or substantial portions of the Software.
20 *
21 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
22 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
24 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
26 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
27 * DEALINGS IN THE SOFTWARE.
28 ****************************************************************************/
29
30#ifndef OGR_SRS_CF1_INCLUDED
31#define OGR_SRS_CF1_INCLUDED
32
33#define NCDF_CRS_WKT "crs_wkt"
34#define NCDF_SPATIAL_REF "spatial_ref"
35
36/* -------------------------------------------------------------------- */
37/* CF-1 convention standard variables related to */
38/* mapping & projection - see http://cf-pcmdi.llnl.gov/ */
39/* -------------------------------------------------------------------- */
40
41#define CF_GRD_MAPPING_NAME "grid_mapping_name"
42
43#define CF_PRIME_MERIDIAN_NAME "prime_meridian_name"
44#define CF_REFERENCE_ELLIPSOID_NAME "reference_ellipsoid_name"
45#define CF_HORIZONTAL_DATUM_NAME "horizontal_datum_name"
46#define CF_GEOGRAPHIC_CRS_NAME "geographic_crs_name"
47#define CF_PROJECTED_CRS_NAME "projected_crs_name"
48
49/* projection types */
50#define CF_PT_AEA "albers_conical_equal_area"
51#define CF_PT_AE "azimuthal_equidistant"
52#define CF_PT_CEA "cylindrical_equal_area"
53#define CF_PT_LAEA "lambert_azimuthal_equal_area"
54#define CF_PT_LCEA "lambert_cylindrical_equal_area"
55#define CF_PT_LCC "lambert_conformal_conic"
56#define CF_PT_TM "transverse_mercator"
57#define CF_PT_LATITUDE_LONGITUDE "latitude_longitude"
58#define CF_PT_MERCATOR "mercator"
59#define CF_PT_ORTHOGRAPHIC "orthographic"
60#define CF_PT_POLAR_STEREO "polar_stereographic"
61#define CF_PT_STEREO "stereographic"
62#define CF_PT_GEOS "geostationary"
63#define CF_PT_ROTATED_LATITUDE_LONGITUDE "rotated_latitude_longitude"
64
65/* projection parameters */
66#define CF_PP_STD_PARALLEL "standard_parallel"
67/* CF uses only "standard_parallel" */
68#define CF_PP_STD_PARALLEL_1 "standard_parallel_1"
69#define CF_PP_STD_PARALLEL_2 "standard_parallel_2"
70#define CF_PP_CENTRAL_MERIDIAN "central_meridian"
71#define CF_PP_LONG_CENTRAL_MERIDIAN "longitude_of_central_meridian"
72#define CF_PP_LON_PROJ_ORIGIN "longitude_of_projection_origin"
73#define CF_PP_LAT_PROJ_ORIGIN "latitude_of_projection_origin"
74/* #define PROJ_X_ORIGIN "projection_x_coordinate_origin" */
75/* #define PROJ_Y_ORIGIN "projection_y_coordinate_origin" */
76#define CF_PP_EARTH_SHAPE "GRIB_earth_shape"
77#define CF_PP_EARTH_SHAPE_CODE "GRIB_earth_shape_code"
78/* scale_factor is not CF, there are two possible translations */
79/* for WKT scale_factor : SCALE_FACTOR_MERIDIAN and SCALE_FACTOR_ORIGIN */
80#define CF_PP_SCALE_FACTOR_MERIDIAN "scale_factor_at_central_meridian"
81#define CF_PP_SCALE_FACTOR_ORIGIN "scale_factor_at_projection_origin"
82#define CF_PP_VERT_LONG_FROM_POLE "straight_vertical_longitude_from_pole"
83#define CF_PP_FALSE_EASTING "false_easting"
84#define CF_PP_FALSE_NORTHING "false_northing"
85#define CF_PP_EARTH_RADIUS "earth_radius"
86#define CF_PP_EARTH_RADIUS_OLD "spherical_earth_radius_meters"
87#define CF_PP_INVERSE_FLATTENING "inverse_flattening"
88#define CF_PP_LONG_PRIME_MERIDIAN "longitude_of_prime_meridian"
89#define CF_PP_SEMI_MAJOR_AXIS "semi_major_axis"
90#define CF_PP_SEMI_MINOR_AXIS "semi_minor_axis"
91#define CF_PP_VERT_PERSP "vertical_perspective" /*not used yet */
92#define CF_PP_PERSPECTIVE_POINT_HEIGHT "perspective_point_height"
93#define CF_PP_SWEEP_ANGLE_AXIS "sweep_angle_axis"
94#define CF_PP_GRID_NORTH_POLE_LONGITUDE "grid_north_pole_longitude"
95#define CF_PP_GRID_NORTH_POLE_LATITUDE "grid_north_pole_latitude"
96#define CF_PP_NORTH_POLE_GRID_LONGITUDE "north_pole_grid_longitude"
97
98#endif /* OGR_SRS_CF1_INCLUDED */