| 1 | // Copyright (c) 2022, 2026, Oracle and/or its affiliates. |
| 2 | // |
| 3 | // This program is free software; you can redistribute it and/or modify |
| 4 | // it under the terms of the GNU General Public License, version 2.0, |
| 5 | // as published by the Free Software Foundation. |
| 6 | // |
| 7 | // This program is designed to work with certain software (including |
| 8 | // but not limited to OpenSSL) that is licensed under separate terms, |
| 9 | // as designated in a particular file or component or in included license |
| 10 | // documentation. The authors of MySQL hereby grant you an additional |
| 11 | // permission to link the program and your derivative works with the |
| 12 | // separately licensed software that they have either included with |
| 13 | // the program or referenced in the documentation. |
| 14 | // |
| 15 | // This program is distributed in the hope that it will be useful, |
| 16 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 | // GNU General Public License, version 2.0, for more details. |
| 19 | // |
| 20 | // You should have received a copy of the GNU General Public License |
| 21 | // along with this program; if not, write to the Free Software |
| 22 | // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 23 | |
| 24 | #include "my_config.h" |
| 25 | |
| 26 | #include <gtest/gtest.h> |
| 27 | #include <memory> // unique_ptr |
| 28 | |
| 29 | #include "sql/dd/dd.h" |
| 30 | #include "sql/dd/impl/types/spatial_reference_system_impl.h" |
| 31 | #include "sql/dd/properties.h" |
| 32 | #include "sql/dd/types/spatial_reference_system.h" |
| 33 | #include "sql/gis/geometries.h" |
| 34 | #include "sql/gis/geometries_cs.h" |
| 35 | #include "sql/gis/relops.h" |
| 36 | #include "sql/gis/transform.h" |
| 37 | #include "unittest/gunit/gis_setops_testshapes.h" |
| 38 | #include "unittest/gunit/gis_typeset.h" |
| 39 | |
| 40 | #include <boost/geometry.hpp> |
| 41 | |
| 42 | namespace gis_transform_unittest { |
| 43 | |
| 44 | // geo SRS |
| 45 | |
| 46 | dd::String_type wgs84 = |
| 47 | "GEOGCS[\"WGS 84\",DATUM[\"World Geodetic System 1984\",SPHEROID[\"WGS " |
| 48 | "84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],TOWGS84[0,0,0,0," |
| 49 | "0,0,0],AUTHORITY[\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[" |
| 50 | "\"EPSG\",\"8901\"]],UNIT[\"degree\",0.017453292519943278,AUTHORITY[" |
| 51 | "\"EPSG\",\"9122\"]],AXIS[\"Lon\",EAST],AXIS[\"Lat\",NORTH],AUTHORITY[" |
| 52 | "\"EPSG\",\"4326\"]]"; |
| 53 | dd::String_type geogcs2985 = |
| 54 | "GEOGCS[\"Petrels 1972\",DATUM[\"Petrels 1972\",SPHEROID[\"International " |
| 55 | "1924\",6378388,297,AUTHORITY[\"EPSG\",\"7022\"]],TOWGS84[365,194,166,0,0," |
| 56 | "0,0],AUTHORITY[\"EPSG\",\"6636\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[" |
| 57 | "\"EPSG\",\"8901\"]],UNIT[\"degree\",0.017453292519943278,AUTHORITY[" |
| 58 | "\"EPSG\",\"9122\"]],AXIS[\"Lat\",NORTH],AXIS[\"Lon\",EAST],AUTHORITY[" |
| 59 | "\"EPSG\",\"4636\"]]"; |
| 60 | dd::String_type modairy = |
| 61 | "GEOGCS[\"modairy\",DATUM[\"modairy\",SPHEROID[\"Bessel 1841 " |
| 62 | "84\",6377340.189,299.324937365,AUTHORITY[\"EPSG\",\"7004\"]],TOWGS84[0,0," |
| 63 | "0,0,0,0,0],AUTHORITY[\"EPSG\",\"6120\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[" |
| 64 | "\"EPSG\",\"8901\"]],UNIT[\"degree\",0.017453292519943278,AUTHORITY[" |
| 65 | "\"EPSG\",\"9122\"]],AXIS[\"Lon\",EAST],AXIS[\"Lat\",NORTH],AUTHORITY[" |
| 66 | "\"EPSG\",\"4120\"]]"; |
| 67 | |
| 68 | // projections SRS |
| 69 | // 1024 |
| 70 | dd::String_type webmerc3857 = |
| 71 | "PROJCS[\"WGS 84 / Pseudo-Mercator\",GEOGCS[\"WGS 84\",DATUM[\"World " |
| 72 | "Geodetic System 1984\",SPHEROID[\"WGS " |
| 73 | "84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[" |
| 74 | "\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]]," |
| 75 | "UNIT[\"degree\",0.017453292519943278,AUTHORITY[\"EPSG\",\"9122\"]],AXIS[" |
| 76 | "\"Lat\",NORTH],AXIS[\"Lon\",EAST],AUTHORITY[\"EPSG\",\"4326\"]]," |
| 77 | "PROJECTION[\"Popular Visualisation Pseudo " |
| 78 | "Mercator\",AUTHORITY[\"EPSG\",\"1024\"]],PARAMETER[\"Latitude of natural " |
| 79 | "origin\",0,AUTHORITY[\"EPSG\",\"8801\"]],PARAMETER[\"Longitude of natural " |
| 80 | "origin\",0,AUTHORITY[\"EPSG\",\"8802\"]],PARAMETER[\"False " |
| 81 | "easting\",0,AUTHORITY[\"EPSG\",\"8806\"]],PARAMETER[\"False " |
| 82 | "northing\",0,AUTHORITY[\"EPSG\",\"8807\"]],UNIT[\"metre\",1,AUTHORITY[" |
| 83 | "\"EPSG\",\"9001\"]],AXIS[\"X\",EAST],AXIS[\"Y\",NORTH],AUTHORITY[\"EPSG\"," |
| 84 | "\"3857\"]]"; |
| 85 | dd::String_type webmerc_modairy = |
| 86 | "PROJCS[\"modairy / Pseudo-Mercator\",GEOGCS[\"modairy\",DATUM[\" " |
| 87 | "modairy\",SPHEROID[\"Bessel " |
| 88 | "1841\",6377340.189,299.324937365],TOWGS84[0,0,0,0,0,0,0]],PRIMEM[" |
| 89 | "\"Greenwich\",0],UNIT[\"degree\",0.017453292519943278],AXIS[\"Lat\",NORTH]" |
| 90 | ",AXIS[\"Lon\",EAST]],PROJECTION[\"Popular Visualisation Pseudo " |
| 91 | "Mercator\",AUTHORITY[\"EPSG\",\"1024\"]],PARAMETER[\"Latitude of natural " |
| 92 | "origin\",0,AUTHORITY[\"EPSG\",\"8801\"]],PARAMETER[\"Longitude of natural " |
| 93 | "origin\",0,AUTHORITY[\"EPSG\",\"8802\"]],PARAMETER[\"False " |
| 94 | "easting\",0,AUTHORITY[\"EPSG\",\"8806\"]],PARAMETER[\"False " |
| 95 | "northing\",0,AUTHORITY[\"EPSG\",\"8807\"]],UNIT[\"metre\",1],AXIS[\"X\"," |
| 96 | "EAST],AXIS[\"Y\",NORTH]]"; |
| 97 | // 1027 |
| 98 | dd::String_type epsg2163 = |
| 99 | "PROJCS[\"US National Atlas Equal " |
| 100 | "Area\",GEOGCS[\"Unspecified\",DATUM[\"Not specified\",SPHEROID[\"Clarke " |
| 101 | "1866 Authalic " |
| 102 | "Sphere\",6370997,0,AUTHORITY[\"EPSG\",\"7052\"]],TOWGS84[0,0,0,0,0,0,0]," |
| 103 | "AUTHORITY[\"EPSG\",\"6052\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\"," |
| 104 | "\"8901\"]],UNIT[\"degree\",0.017453292519943278,AUTHORITY[\"EPSG\"," |
| 105 | "\"9122\"]],AXIS[\"Lat\",NORTH],AXIS[\"Lon\",EAST],AUTHORITY[\"EPSG\"," |
| 106 | "\"4052\"]],PROJECTION[\"Lambert Azimuthal Equal " |
| 107 | "Area\",AUTHORITY[\"EPSG\",\"1027\"]],PARAMETER[\"Latitude of natural " |
| 108 | "origin\",45,AUTHORITY[\"EPSG\",\"8801\"]],PARAMETER[\"Longitude of " |
| 109 | "natural origin\",-100,AUTHORITY[\"EPSG\",\"8802\"]],PARAMETER[\"False " |
| 110 | "easting\",0,AUTHORITY[\"EPSG\",\"8806\"]],PARAMETER[\"False " |
| 111 | "northing\",0,AUTHORITY[\"EPSG\",\"8807\"]],UNIT[\"metre\",1,AUTHORITY[" |
| 112 | "\"EPSG\",\"9001\"]],AXIS[\"X\",EAST],AXIS[\"Y\",NORTH],AUTHORITY[\"EPSG\"," |
| 113 | "\"2163\"]]"; |
| 114 | // 1028 |
| 115 | dd::String_type epsg4087 = |
| 116 | "PROJCS[\"WGS 84 / World Equidistant Cylindrical\",GEOGCS[\"WGS " |
| 117 | "84\",DATUM[\"World Geodetic System 1984\",SPHEROID[\"WGS " |
| 118 | "84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[" |
| 119 | "\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]]," |
| 120 | "UNIT[\"degree\",0.017453292519943278,AUTHORITY[\"EPSG\",\"9122\"]],AXIS[" |
| 121 | "\"Lat\",NORTH],AXIS[\"Lon\",EAST],AUTHORITY[\"EPSG\",\"4326\"]]," |
| 122 | "PROJECTION[\"Equidistant " |
| 123 | "Cylindrical\",AUTHORITY[\"EPSG\",\"1028\"]],PARAMETER[\"Latitude of 1st " |
| 124 | "standard parallel\",0,AUTHORITY[\"EPSG\",\"8823\"]],PARAMETER[\"Longitude " |
| 125 | "of natural origin\",0,AUTHORITY[\"EPSG\",\"8802\"]],PARAMETER[\"False " |
| 126 | "easting\",0,AUTHORITY[\"EPSG\",\"8806\"]],PARAMETER[\"False " |
| 127 | "northing\",0,AUTHORITY[\"EPSG\",\"8807\"]],UNIT[\"metre\",1,AUTHORITY[" |
| 128 | "\"EPSG\",\"9001\"]],AXIS[\"X\",EAST],AXIS[\"Y\",NORTH],AUTHORITY[\"EPSG\"," |
| 129 | "\"4087\"]]"; |
| 130 | // 1029 |
| 131 | dd::String_type epsg4088 = |
| 132 | "PROJCS[\"World Equidistant Cylindrical (Sphere)\",GEOGCS[\"Unspecified " |
| 133 | "datum based upon the GRS 1980 Authalic Sphere\",DATUM[\"Not specified " |
| 134 | "(based on GRS 1980 Authalic Sphere)\",SPHEROID[\"GRS 1980 Authalic " |
| 135 | "Sphere\",6371007,0,AUTHORITY[\"EPSG\",\"7048\"]],TOWGS84[0,0,0,0,0,0,0]," |
| 136 | "AUTHORITY[\"EPSG\",\"6047\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\"," |
| 137 | "\"8901\"]],UNIT[\"degree\",0.017453292519943278,AUTHORITY[\"EPSG\"," |
| 138 | "\"9122\"]],AXIS[\"Lat\",NORTH],AXIS[\"Lon\",EAST],AUTHORITY[\"EPSG\"," |
| 139 | "\"4047\"]],PROJECTION[\"Equidistant Cylindrical " |
| 140 | "(Spherical)\",AUTHORITY[\"EPSG\",\"1029\"]],PARAMETER[\"Latitude of 1st " |
| 141 | "standard parallel\",0,AUTHORITY[\"EPSG\",\"8823\"]],PARAMETER[\"Longitude " |
| 142 | "of natural origin\",0,AUTHORITY[\"EPSG\",\"8802\"]],PARAMETER[\"False " |
| 143 | "easting\",0,AUTHORITY[\"EPSG\",\"8806\"]],PARAMETER[\"False " |
| 144 | "northing\",0,AUTHORITY[\"EPSG\",\"8807\"]],UNIT[\"metre\",1,AUTHORITY[" |
| 145 | "\"EPSG\",\"9001\"]],AXIS[\"X\",EAST],AXIS[\"Y\",NORTH],AUTHORITY[\"EPSG\"," |
| 146 | "\"4088\"]]"; |
| 147 | // 1041 |
| 148 | dd::String_type epsg5514 = |
| 149 | "PROJCS[\"S-JTSK / Krovak East North\",GEOGCS[\"S-JTSK\",DATUM[\"System of " |
| 150 | "the Unified Trigonometrical Cadastral Network\",SPHEROID[\"Bessel " |
| 151 | "1841\",6377397.155,299.1528128,AUTHORITY[\"EPSG\",\"7004\"]],TOWGS84[589," |
| 152 | "76,480,0,0,0,0],AUTHORITY[\"EPSG\",\"6156\"]],PRIMEM[\"Greenwich\",0," |
| 153 | "AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.017453292519943278," |
| 154 | "AUTHORITY[\"EPSG\",\"9122\"]],AXIS[\"Lat\",NORTH],AXIS[\"Lon\",EAST]," |
| 155 | "AUTHORITY[\"EPSG\",\"4156\"]],PROJECTION[\"Krovak (North " |
| 156 | "Orientated)\",AUTHORITY[\"EPSG\",\"1041\"]],PARAMETER[\"Latitude of " |
| 157 | "projection " |
| 158 | "centre\",49.5111111111111,AUTHORITY[\"EPSG\",\"8811\"]],PARAMETER[" |
| 159 | "\"Longitude of " |
| 160 | "origin\",24.8333333333333,AUTHORITY[\"EPSG\",\"8833\"]],PARAMETER[\"Co-" |
| 161 | "latitude of cone " |
| 162 | "axis\",30.2881397222222,AUTHORITY[\"EPSG\",\"1036\"]],PARAMETER[" |
| 163 | "\"Latitude of pseudo standard " |
| 164 | "parallel\",78.5111111111111,AUTHORITY[\"EPSG\",\"8818\"]],PARAMETER[" |
| 165 | "\"Scale factor on pseudo standard " |
| 166 | "parallel\",0.9999,AUTHORITY[\"EPSG\",\"8819\"]],PARAMETER[\"False " |
| 167 | "easting\",0,AUTHORITY[\"EPSG\",\"8806\"]],PARAMETER[\"False " |
| 168 | "northing\",0,AUTHORITY[\"EPSG\",\"8807\"]],UNIT[\"metre\",1,AUTHORITY[" |
| 169 | "\"EPSG\",\"9001\"]],AXIS[\"X\",EAST],AXIS[\"Y\",NORTH],AUTHORITY[\"EPSG\"," |
| 170 | "\"5514\"]]"; |
| 171 | // 1051 |
| 172 | dd::String_type epsg6201 = |
| 173 | "PROJCS[\"NAD27 / Michigan Central\",GEOGCS[\"NAD27\",DATUM[\"North " |
| 174 | "American Datum 1927\",SPHEROID[\"Clarke " |
| 175 | "1866\",6378206.4,294.9786982138982,AUTHORITY[\"EPSG\",\"7008\"]],TOWGS84[-" |
| 176 | "32.3841359,180.4090461,120.8442577,-2.1545854,-0.1498782,0.5742915,8." |
| 177 | "1049164],AUTHORITY[\"EPSG\",\"6267\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[" |
| 178 | "\"EPSG\",\"8901\"]],UNIT[\"degree\",0.017453292519943278,AUTHORITY[" |
| 179 | "\"EPSG\",\"9122\"]],AXIS[\"Lat\",NORTH],AXIS[\"Lon\",EAST],AUTHORITY[" |
| 180 | "\"EPSG\",\"4267\"]],PROJECTION[\"Lambert Conic Conformal (2SP " |
| 181 | "Michigan)\",AUTHORITY[\"EPSG\",\"1051\"]],PARAMETER[\"Latitude of false " |
| 182 | "origin\",43.3277777777778,AUTHORITY[\"EPSG\",\"8821\"]],PARAMETER[" |
| 183 | "\"Longitude of false " |
| 184 | "origin\",-84.3333333333333,AUTHORITY[\"EPSG\",\"8822\"]],PARAMETER[" |
| 185 | "\"Latitude of 1st standard " |
| 186 | "parallel\",44.1944444444444,AUTHORITY[\"EPSG\",\"8823\"]],PARAMETER[" |
| 187 | "\"Latitude of 2nd standard " |
| 188 | "parallel\",45.7,AUTHORITY[\"EPSG\",\"8824\"]],PARAMETER[\"Easting at " |
| 189 | "false origin\",2000000,AUTHORITY[\"EPSG\",\"8826\"]],PARAMETER[\"Northing " |
| 190 | "at false origin\",0,AUTHORITY[\"EPSG\",\"8827\"]],PARAMETER[\"Ellipsoid " |
| 191 | "scaling factor\",1.0000382,AUTHORITY[\"EPSG\",\"1038\"]],UNIT[\"US survey " |
| 192 | "foot\",0.30480060960121924,AUTHORITY[\"EPSG\",\"9003\"]],AXIS[\"X\",EAST]," |
| 193 | "AXIS[\"Y\",NORTH],AUTHORITY[\"EPSG\",\"6201\"]]"; |
| 194 | // 1052 |
| 195 | dd::String_type epsg6247 = |
| 196 | "PROJCS[\"MAGNA-SIRGAS / Bogota urban " |
| 197 | "grid\",GEOGCS[\"MAGNA-SIRGAS\",DATUM[\"Marco Geocentrico Nacional de " |
| 198 | "Referencia\",SPHEROID[\"GRS " |
| 199 | "1980\",6378137,298.257222101,AUTHORITY[\"EPSG\",\"7019\"]],TOWGS84[0,0,0," |
| 200 | "0,0,0,0],AUTHORITY[\"EPSG\",\"6686\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[" |
| 201 | "\"EPSG\",\"8901\"]],UNIT[\"degree\",0.017453292519943278,AUTHORITY[" |
| 202 | "\"EPSG\",\"9122\"]],AXIS[\"Lat\",NORTH],AXIS[\"Lon\",EAST],AUTHORITY[" |
| 203 | "\"EPSG\",\"4686\"]],PROJECTION[\"Colombia " |
| 204 | "Urban\",AUTHORITY[\"EPSG\",\"1052\"]],PARAMETER[\"Latitude of natural " |
| 205 | "origin\",4.68048611111111,AUTHORITY[\"EPSG\",\"8801\"]],PARAMETER[" |
| 206 | "\"Longitude of natural " |
| 207 | "origin\",-74.1465916666667,AUTHORITY[\"EPSG\",\"8802\"]],PARAMETER[" |
| 208 | "\"False " |
| 209 | "easting\",92334.879,AUTHORITY[\"EPSG\",\"8806\"]],PARAMETER[\"False " |
| 210 | "northing\",109320.965,AUTHORITY[\"EPSG\",\"8807\"]],PARAMETER[" |
| 211 | "\"Projection plane origin " |
| 212 | "height\",2550,AUTHORITY[\"EPSG\",\"1039\"]],UNIT[\"metre\",1,AUTHORITY[" |
| 213 | "\"EPSG\",\"9001\"]],AXIS[\"N\",NORTH],AXIS[\"E\",EAST],AUTHORITY[\"EPSG\"," |
| 214 | "\"6247\"]]"; |
| 215 | // 9801 |
| 216 | dd::String_type epsg24200 = |
| 217 | "PROJCS[\"JAD69 / Jamaica National Grid\",GEOGCS[\"JAD69\",DATUM[\"Jamaica " |
| 218 | "1969\",SPHEROID[\"Clarke " |
| 219 | "1866\",6378206.4,294.9786982138982,AUTHORITY[\"EPSG\",\"7008\"]],TOWGS84[-" |
| 220 | "33.722,153.789,94.959,-8.581,-4.478,4.54,8.95],AUTHORITY[\"EPSG\"," |
| 221 | "\"6242\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[" |
| 222 | "\"degree\",0.017453292519943278,AUTHORITY[\"EPSG\",\"9122\"]],AXIS[" |
| 223 | "\"Lat\",NORTH],AXIS[\"Lon\",EAST],AUTHORITY[\"EPSG\",\"4242\"]]," |
| 224 | "PROJECTION[\"Lambert Conic Conformal " |
| 225 | "(1SP)\",AUTHORITY[\"EPSG\",\"9801\"]],PARAMETER[\"Latitude of natural " |
| 226 | "origin\",18,AUTHORITY[\"EPSG\",\"8801\"]],PARAMETER[\"Longitude of " |
| 227 | "natural origin\",-77,AUTHORITY[\"EPSG\",\"8802\"]],PARAMETER[\"Scale " |
| 228 | "factor at natural " |
| 229 | "origin\",1,AUTHORITY[\"EPSG\",\"8805\"]],PARAMETER[\"False " |
| 230 | "easting\",250000,AUTHORITY[\"EPSG\",\"8806\"]],PARAMETER[\"False " |
| 231 | "northing\",150000,AUTHORITY[\"EPSG\",\"8807\"]],UNIT[\"metre\",1," |
| 232 | "AUTHORITY[\"EPSG\",\"9001\"]],AXIS[\"E\",EAST],AXIS[\"N\",NORTH]," |
| 233 | "AUTHORITY[\"EPSG\",\"24200\"]]"; |
| 234 | // 9802 |
| 235 | dd::String_type epsg32040 = |
| 236 | "PROJCS[\"NAD27 / Texas South Central\",GEOGCS[\"NAD27\",DATUM[\"North " |
| 237 | "American Datum 1927\",SPHEROID[\"Clarke " |
| 238 | "1866\",6378206.4,294.9786982138982,AUTHORITY[\"EPSG\",\"7008\"]],TOWGS84[-" |
| 239 | "32.3841359,180.4090461,120.8442577,-2.1545854,-0.1498782,0.5742915,8." |
| 240 | "1049164],AUTHORITY[\"EPSG\",\"6267\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[" |
| 241 | "\"EPSG\",\"8901\"]],UNIT[\"degree\",0.017453292519943278,AUTHORITY[" |
| 242 | "\"EPSG\",\"9122\"]],AXIS[\"Lat\",NORTH],AXIS[\"Lon\",EAST],AUTHORITY[" |
| 243 | "\"EPSG\",\"4267\"]],PROJECTION[\"Lambert Conic Conformal " |
| 244 | "(2SP)\",AUTHORITY[\"EPSG\",\"9802\"]],PARAMETER[\"Latitude of false " |
| 245 | "origin\",27.8333333333333,AUTHORITY[\"EPSG\",\"8821\"]],PARAMETER[" |
| 246 | "\"Longitude of false " |
| 247 | "origin\",-99,AUTHORITY[\"EPSG\",\"8822\"]],PARAMETER[\"Latitude of 1st " |
| 248 | "standard " |
| 249 | "parallel\",28.3833333333333,AUTHORITY[\"EPSG\",\"8823\"]],PARAMETER[" |
| 250 | "\"Latitude of 2nd standard " |
| 251 | "parallel\",30.2833333333333,AUTHORITY[\"EPSG\",\"8824\"]],PARAMETER[" |
| 252 | "\"Easting at false " |
| 253 | "origin\",2000000,AUTHORITY[\"EPSG\",\"8826\"]],PARAMETER[\"Northing at " |
| 254 | "false origin\",0,AUTHORITY[\"EPSG\",\"8827\"]],UNIT[\"US survey " |
| 255 | "foot\",0.30480060960121924,AUTHORITY[\"EPSG\",\"9003\"]],AXIS[\"X\",EAST]," |
| 256 | "AXIS[\"Y\",NORTH],AUTHORITY[\"EPSG\",\"32040\"]]"; |
| 257 | // 9803 |
| 258 | dd::String_type epsg31300 = |
| 259 | "PROJCS[\"Belge 1972 / Belge Lambert 72\",GEOGCS[\"Belge " |
| 260 | "1972\",DATUM[\"Reseau National Belge 1972\",SPHEROID[\"International " |
| 261 | "1924\",6378388,297,AUTHORITY[\"EPSG\",\"7022\"]],TOWGS84[-106.8686,52." |
| 262 | "2978,-103.7239,0.3366,-0.457,1.8422,-1.2747],AUTHORITY[\"EPSG\",\"6313\"]]" |
| 263 | ",PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0." |
| 264 | "017453292519943278,AUTHORITY[\"EPSG\",\"9122\"]],AXIS[\"Lat\",NORTH],AXIS[" |
| 265 | "\"Lon\",EAST],AUTHORITY[\"EPSG\",\"4313\"]],PROJECTION[\"Lambert Conic " |
| 266 | "Conformal (2SP " |
| 267 | "Belgium)\",AUTHORITY[\"EPSG\",\"9803\"]],PARAMETER[\"Latitude of false " |
| 268 | "origin\",90,AUTHORITY[\"EPSG\",\"8821\"]],PARAMETER[\"Longitude of false " |
| 269 | "origin\",4.35693972222222,AUTHORITY[\"EPSG\",\"8822\"]],PARAMETER[" |
| 270 | "\"Latitude of 1st standard " |
| 271 | "parallel\",49.8333333333333,AUTHORITY[\"EPSG\",\"8823\"]],PARAMETER[" |
| 272 | "\"Latitude of 2nd standard " |
| 273 | "parallel\",51.1666666666667,AUTHORITY[\"EPSG\",\"8824\"]],PARAMETER[" |
| 274 | "\"Easting at false " |
| 275 | "origin\",150000.01256,AUTHORITY[\"EPSG\",\"8826\"]],PARAMETER[\"Northing " |
| 276 | "at false " |
| 277 | "origin\",5400088.4378,AUTHORITY[\"EPSG\",\"8827\"]],UNIT[\"metre\",1," |
| 278 | "AUTHORITY[\"EPSG\",\"9001\"]],AXIS[\"X\",EAST],AXIS[\"Y\",NORTH]," |
| 279 | "AUTHORITY[\"EPSG\",\"31300\"]]"; |
| 280 | // 9804 |
| 281 | dd::String_type epsg3002 = |
| 282 | "PROJCS[\"Makassar / " |
| 283 | "NEIEZ\",GEOGCS[\"Makassar\",DATUM[\"Makassar\",SPHEROID[\"Bessel " |
| 284 | "1841\",6377397.155,299.1528128,AUTHORITY[\"EPSG\",\"7004\"]],TOWGS84[-587." |
| 285 | "8,519.75,145.76,0,0,0,0],AUTHORITY[\"EPSG\",\"6257\"]],PRIMEM[" |
| 286 | "\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0." |
| 287 | "017453292519943278,AUTHORITY[\"EPSG\",\"9122\"]],AXIS[\"Lat\",NORTH],AXIS[" |
| 288 | "\"Lon\",EAST],AUTHORITY[\"EPSG\",\"4257\"]],PROJECTION[\"Mercator " |
| 289 | "(variant A)\",AUTHORITY[\"EPSG\",\"9804\"]],PARAMETER[\"Latitude of " |
| 290 | "natural origin\",0,AUTHORITY[\"EPSG\",\"8801\"]],PARAMETER[\"Longitude of " |
| 291 | "natural origin\",110,AUTHORITY[\"EPSG\",\"8802\"]],PARAMETER[\"Scale " |
| 292 | "factor at natural " |
| 293 | "origin\",0.997,AUTHORITY[\"EPSG\",\"8805\"]],PARAMETER[\"False " |
| 294 | "easting\",3900000,AUTHORITY[\"EPSG\",\"8806\"]],PARAMETER[\"False " |
| 295 | "northing\",900000,AUTHORITY[\"EPSG\",\"8807\"]],UNIT[\"metre\",1," |
| 296 | "AUTHORITY[\"EPSG\",\"9001\"]],AXIS[\"X\",EAST],AXIS[\"Y\",NORTH]," |
| 297 | "AUTHORITY[\"EPSG\",\"3002\"]]"; |
| 298 | // 9805 |
| 299 | dd::String_type epsg3388 = |
| 300 | "PROJCS[\"Pulkovo 1942 / Caspian Sea Mercator\",GEOGCS[\"Pulkovo " |
| 301 | "1942\",DATUM[\"Pulkovo 1942\",SPHEROID[\"Krassowsky " |
| 302 | "1940\",6378245,298.3,AUTHORITY[\"EPSG\",\"7024\"]],TOWGS84[25,-141,-78.5," |
| 303 | "0,0.35,0.736,0],AUTHORITY[\"EPSG\",\"6284\"]],PRIMEM[\"Greenwich\",0," |
| 304 | "AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.017453292519943278," |
| 305 | "AUTHORITY[\"EPSG\",\"9122\"]],AXIS[\"Lat\",NORTH],AXIS[\"Lon\",EAST]," |
| 306 | "AUTHORITY[\"EPSG\",\"4284\"]],PROJECTION[\"Mercator (variant " |
| 307 | "B)\",AUTHORITY[\"EPSG\",\"9805\"]],PARAMETER[\"Latitude of 1st standard " |
| 308 | "parallel\",42,AUTHORITY[\"EPSG\",\"8823\"]],PARAMETER[\"Longitude of " |
| 309 | "natural origin\",51,AUTHORITY[\"EPSG\",\"8802\"]],PARAMETER[\"False " |
| 310 | "easting\",0,AUTHORITY[\"EPSG\",\"8806\"]],PARAMETER[\"False " |
| 311 | "northing\",0,AUTHORITY[\"EPSG\",\"8807\"]],UNIT[\"metre\",1,AUTHORITY[" |
| 312 | "\"EPSG\",\"9001\"]],AXIS[\"none\",NORTH],AXIS[\"none\",EAST],AUTHORITY[" |
| 313 | "\"EPSG\",\"3388\"]]"; |
| 314 | // 9806 |
| 315 | dd::String_type epsg30200 = |
| 316 | "PROJCS[\"Trinidad 1903 / Trinidad Grid\",GEOGCS[\"Trinidad " |
| 317 | "1903\",DATUM[\"Trinidad 1903\",SPHEROID[\"Clarke " |
| 318 | "1858\",6378293.645208759,294.26067636926103,AUTHORITY[\"EPSG\",\"7007\"]]," |
| 319 | "TOWGS84[-61.702,284.488,472.052,0,0,0,0],AUTHORITY[\"EPSG\",\"6302\"]]," |
| 320 | "PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0." |
| 321 | "017453292519943278,AUTHORITY[\"EPSG\",\"9122\"]],AXIS[\"Lat\",NORTH],AXIS[" |
| 322 | "\"Lon\",EAST],AUTHORITY[\"EPSG\",\"4302\"]],PROJECTION[\"Cassini-" |
| 323 | "Soldner\",AUTHORITY[\"EPSG\",\"9806\"]],PARAMETER[\"Latitude of natural " |
| 324 | "origin\",10.4416666666667,AUTHORITY[\"EPSG\",\"8801\"]],PARAMETER[" |
| 325 | "\"Longitude of natural " |
| 326 | "origin\",-61.3333333333333,AUTHORITY[\"EPSG\",\"8802\"]],PARAMETER[" |
| 327 | "\"False easting\",430000,AUTHORITY[\"EPSG\",\"8806\"]],PARAMETER[\"False " |
| 328 | "northing\",325000,AUTHORITY[\"EPSG\",\"8807\"]],UNIT[\"Clarke's " |
| 329 | "link\",0.201166195164,AUTHORITY[\"EPSG\",\"9039\"]],AXIS[\"E\",EAST],AXIS[" |
| 330 | "\"N\",NORTH],AUTHORITY[\"EPSG\",\"30200\"]]"; |
| 331 | // 9807 |
| 332 | dd::String_type epsg27700 = |
| 333 | "PROJCS[\"OSGB 1936 / British National Grid\",GEOGCS[\"OSGB " |
| 334 | "1936\",DATUM[\"OSGB 1936\",SPHEROID[\"Airy " |
| 335 | "1830\",6377563.396,299.3249646,AUTHORITY[\"EPSG\",\"7001\"]],TOWGS84[446." |
| 336 | "448,-125.157,542.06,0.15,0.247,0.842,-20.489],AUTHORITY[\"EPSG\",\"6277\"]" |
| 337 | "],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0." |
| 338 | "017453292519943278,AUTHORITY[\"EPSG\",\"9122\"]],AXIS[\"Lat\",NORTH],AXIS[" |
| 339 | "\"Lon\",EAST],AUTHORITY[\"EPSG\",\"4277\"]],PROJECTION[\"Transverse " |
| 340 | "Mercator\",AUTHORITY[\"EPSG\",\"9807\"]],PARAMETER[\"Latitude of natural " |
| 341 | "origin\",49,AUTHORITY[\"EPSG\",\"8801\"]],PARAMETER[\"Longitude of " |
| 342 | "natural origin\",-2,AUTHORITY[\"EPSG\",\"8802\"]],PARAMETER[\"Scale " |
| 343 | "factor at natural " |
| 344 | "origin\",0.9996012717,AUTHORITY[\"EPSG\",\"8805\"]],PARAMETER[\"False " |
| 345 | "easting\",400000,AUTHORITY[\"EPSG\",\"8806\"]],PARAMETER[\"False " |
| 346 | "northing\",-100000,AUTHORITY[\"EPSG\",\"8807\"]],UNIT[\"metre\",1," |
| 347 | "AUTHORITY[\"EPSG\",\"9001\"]],AXIS[\"E\",EAST],AXIS[\"N\",NORTH]," |
| 348 | "AUTHORITY[\"EPSG\",\"27700\"]]"; |
| 349 | dd::String_type wgs84tmerc = |
| 350 | "PROJCS[\"WGS 84 / TM 36 SE\",GEOGCS[\"WGS 84\",DATUM[\"World Geodetic " |
| 351 | "System 1984\",SPHEROID[\"WGS " |
| 352 | "84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[" |
| 353 | "\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]]," |
| 354 | "UNIT[\"degree\",0.017453292519943278,AUTHORITY[\"EPSG\",\"9122\"]],AXIS[" |
| 355 | "\"Lat\",NORTH],AXIS[\"Lon\",EAST],AUTHORITY[\"EPSG\",\"4326\"]]," |
| 356 | "PROJECTION[\"Transverse " |
| 357 | "Mercator\",AUTHORITY[\"EPSG\",\"9807\"]],PARAMETER[\"Latitude of natural " |
| 358 | "origin\",0,AUTHORITY[\"EPSG\",\"8801\"]],PARAMETER[\"Longitude of natural " |
| 359 | "origin\",36,AUTHORITY[\"EPSG\",\"8802\"]],PARAMETER[\"Scale factor at " |
| 360 | "natural origin\",0.9996,AUTHORITY[\"EPSG\",\"8805\"]],PARAMETER[\"False " |
| 361 | "easting\",500000,AUTHORITY[\"EPSG\",\"8806\"]],PARAMETER[\"False " |
| 362 | "northing\",10000000,AUTHORITY[\"EPSG\",\"8807\"]],UNIT[\"metre\",1," |
| 363 | "AUTHORITY[\"EPSG\",\"9001\"]],AXIS[\"E\",EAST],AXIS[\"N\",NORTH]," |
| 364 | "AUTHORITY[\"EPSG\",\"32766\"]]"; |
| 365 | // 9808 |
| 366 | dd::String_type epsg2053 = |
| 367 | "PROJCS[\"Hartebeesthoek94 / " |
| 368 | "Lo29\",GEOGCS[\"Hartebeesthoek94\",DATUM[\"Hartebeesthoek94\",SPHEROID[" |
| 369 | "\"WGS " |
| 370 | "84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],TOWGS84[0,0,0,0," |
| 371 | "0,0,0],AUTHORITY[\"EPSG\",\"6148\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[" |
| 372 | "\"EPSG\",\"8901\"]],UNIT[\"degree\",0.017453292519943278,AUTHORITY[" |
| 373 | "\"EPSG\",\"9122\"]],AXIS[\"Lat\",NORTH],AXIS[\"Lon\",EAST],AUTHORITY[" |
| 374 | "\"EPSG\",\"4148\"]],PROJECTION[\"Transverse Mercator (South " |
| 375 | "Orientated)\",AUTHORITY[\"EPSG\",\"9808\"]],PARAMETER[\"Latitude of " |
| 376 | "natural origin\",0,AUTHORITY[\"EPSG\",\"8801\"]],PARAMETER[\"Longitude of " |
| 377 | "natural origin\",29,AUTHORITY[\"EPSG\",\"8802\"]],PARAMETER[\"Scale " |
| 378 | "factor at natural " |
| 379 | "origin\",1,AUTHORITY[\"EPSG\",\"8805\"]],PARAMETER[\"False " |
| 380 | "easting\",0,AUTHORITY[\"EPSG\",\"8806\"]],PARAMETER[\"False " |
| 381 | "northing\",0,AUTHORITY[\"EPSG\",\"8807\"]],UNIT[\"metre\",1,AUTHORITY[" |
| 382 | "\"EPSG\",\"9001\"]],AXIS[\"Y\",WEST],AXIS[\"X\",SOUTH],AUTHORITY[\"EPSG\"," |
| 383 | "\"2053\"]]"; |
| 384 | // 9809 |
| 385 | dd::String_type epsg28992 = |
| 386 | "PROJCS[\"Amersfoort / RD " |
| 387 | "New\",GEOGCS[\"Amersfoort\",DATUM[\"Amersfoort\",SPHEROID[\"Bessel " |
| 388 | "1841\",6377397.155,299.1528128,AUTHORITY[\"EPSG\",\"7004\"]],TOWGS84[565." |
| 389 | "4171,50.3319,465.5524,-0.398957388243134,0.343987817378283,-1." |
| 390 | "87740163998045,4.0725],AUTHORITY[\"EPSG\",\"6289\"]],PRIMEM[\"Greenwich\"," |
| 391 | "0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.017453292519943278," |
| 392 | "AUTHORITY[\"EPSG\",\"9122\"]],AXIS[\"Lat\",NORTH],AXIS[\"Lon\",EAST]," |
| 393 | "AUTHORITY[\"EPSG\",\"4289\"]],PROJECTION[\"Oblique " |
| 394 | "Stereographic\",AUTHORITY[\"EPSG\",\"9809\"]],PARAMETER[\"Latitude of " |
| 395 | "natural " |
| 396 | "origin\",52.1561605555556,AUTHORITY[\"EPSG\",\"8801\"]],PARAMETER[" |
| 397 | "\"Longitude of natural " |
| 398 | "origin\",5.38763888888889,AUTHORITY[\"EPSG\",\"8802\"]],PARAMETER[\"Scale " |
| 399 | "factor at natural " |
| 400 | "origin\",0.9999079,AUTHORITY[\"EPSG\",\"8805\"]],PARAMETER[\"False " |
| 401 | "easting\",155000,AUTHORITY[\"EPSG\",\"8806\"]],PARAMETER[\"False " |
| 402 | "northing\",463000,AUTHORITY[\"EPSG\",\"8807\"]],UNIT[\"metre\",1," |
| 403 | "AUTHORITY[\"EPSG\",\"9001\"]],AXIS[\"X\",EAST],AXIS[\"Y\",NORTH]," |
| 404 | "AUTHORITY[\"EPSG\",\"28992\"]]"; |
| 405 | // 9810 |
| 406 | dd::String_type epsg5041 = |
| 407 | "PROJCS[\"WGS 84 / UPS North (E,N)\",GEOGCS[\"WGS 84\",DATUM[\"World " |
| 408 | "Geodetic System 1984\",SPHEROID[\"WGS " |
| 409 | "84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[" |
| 410 | "\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]]," |
| 411 | "UNIT[\"degree\",0.017453292519943278,AUTHORITY[\"EPSG\",\"9122\"]],AXIS[" |
| 412 | "\"Lat\",NORTH],AXIS[\"Lon\",EAST],AUTHORITY[\"EPSG\",\"4326\"]]," |
| 413 | "PROJECTION[\"Polar Stereographic (variant " |
| 414 | "A)\",AUTHORITY[\"EPSG\",\"9810\"]],PARAMETER[\"Latitude of natural " |
| 415 | "origin\",90,AUTHORITY[\"EPSG\",\"8801\"]],PARAMETER[\"Longitude of " |
| 416 | "natural origin\",0,AUTHORITY[\"EPSG\",\"8802\"]],PARAMETER[\"Scale factor " |
| 417 | "at natural origin\",0.994,AUTHORITY[\"EPSG\",\"8805\"]],PARAMETER[\"False " |
| 418 | "easting\",2000000,AUTHORITY[\"EPSG\",\"8806\"]],PARAMETER[\"False " |
| 419 | "northing\",2000000,AUTHORITY[\"EPSG\",\"8807\"]],UNIT[\"metre\",1," |
| 420 | "AUTHORITY[\"EPSG\",\"9001\"]],AXIS[\"E\",SOUTH],AXIS[\"N\",SOUTH]," |
| 421 | "AUTHORITY[\"EPSG\",\"5041\"]]"; |
| 422 | // 9811 |
| 423 | dd::String_type epsg27200 = |
| 424 | "PROJCS[\"NZGD49 / New Zealand Map Grid\",GEOGCS[\"NZGD49\",DATUM[\"New " |
| 425 | "Zealand Geodetic Datum 1949\",SPHEROID[\"International " |
| 426 | "1924\",6378388,297,AUTHORITY[\"EPSG\",\"7022\"]],TOWGS84[59.47,-5.04,187." |
| 427 | "44,0.47,-0.1,1.024,-4.5993],AUTHORITY[\"EPSG\",\"6272\"]],PRIMEM[" |
| 428 | "\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0." |
| 429 | "017453292519943278,AUTHORITY[\"EPSG\",\"9122\"]],AXIS[\"Lat\",NORTH],AXIS[" |
| 430 | "\"Lon\",EAST],AUTHORITY[\"EPSG\",\"4272\"]],PROJECTION[\"New Zealand Map " |
| 431 | "Grid\",AUTHORITY[\"EPSG\",\"9811\"]],PARAMETER[\"Latitude of natural " |
| 432 | "origin\",-41,AUTHORITY[\"EPSG\",\"8801\"]],PARAMETER[\"Longitude of " |
| 433 | "natural origin\",173,AUTHORITY[\"EPSG\",\"8802\"]],PARAMETER[\"False " |
| 434 | "easting\",2510000,AUTHORITY[\"EPSG\",\"8806\"]],PARAMETER[\"False " |
| 435 | "northing\",6023150,AUTHORITY[\"EPSG\",\"8807\"]],UNIT[\"metre\",1," |
| 436 | "AUTHORITY[\"EPSG\",\"9001\"]],AXIS[\"E\",EAST],AXIS[\"N\",NORTH]," |
| 437 | "AUTHORITY[\"EPSG\",\"27200\"]]"; |
| 438 | // 9812 |
| 439 | dd::String_type epsg3079 = |
| 440 | "PROJCS[\"NAD83(HARN) / Michigan Oblique " |
| 441 | "Mercator\",GEOGCS[\"NAD83(HARN)\",DATUM[\"NAD83 (High Accuracy Reference " |
| 442 | "Network)\",SPHEROID[\"GRS " |
| 443 | "1980\",6378137,298.257222101,AUTHORITY[\"EPSG\",\"7019\"]],TOWGS84[0,0,0," |
| 444 | "0,0,0,0],AUTHORITY[\"EPSG\",\"6152\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[" |
| 445 | "\"EPSG\",\"8901\"]],UNIT[\"degree\",0.017453292519943278,AUTHORITY[" |
| 446 | "\"EPSG\",\"9122\"]],AXIS[\"Lat\",NORTH],AXIS[\"Lon\",EAST],AUTHORITY[" |
| 447 | "\"EPSG\",\"4152\"]],PROJECTION[\"Hotine Oblique Mercator (variant " |
| 448 | "A)\",AUTHORITY[\"EPSG\",\"9812\"]],PARAMETER[\"Latitude of projection " |
| 449 | "centre\",45.3091666666667,AUTHORITY[\"EPSG\",\"8811\"]],PARAMETER[" |
| 450 | "\"Longitude of projection " |
| 451 | "centre\",-86,AUTHORITY[\"EPSG\",\"8812\"]],PARAMETER[\"Azimuth of initial " |
| 452 | "line\",337.25556,AUTHORITY[\"EPSG\",\"8813\"]],PARAMETER[\"Angle from " |
| 453 | "Rectified to Skew " |
| 454 | "Grid\",337.25556,AUTHORITY[\"EPSG\",\"8814\"]],PARAMETER[\"Scale factor " |
| 455 | "on initial line\",0.9996,AUTHORITY[\"EPSG\",\"8815\"]],PARAMETER[\"False " |
| 456 | "easting\",2546731.496,AUTHORITY[\"EPSG\",\"8806\"]],PARAMETER[\"False " |
| 457 | "northing\",-4354009.816,AUTHORITY[\"EPSG\",\"8807\"]],UNIT[\"metre\",1," |
| 458 | "AUTHORITY[\"EPSG\",\"9001\"]],AXIS[\"X\",EAST],AXIS[\"Y\",NORTH]," |
| 459 | "AUTHORITY[\"EPSG\",\"3079\"]]"; |
| 460 | // 9813 |
| 461 | dd::String_type epsg8441 = |
| 462 | "PROJCS[\"Tananarive / Laborde " |
| 463 | "Grid\",GEOGCS[\"Tananarive\",DATUM[\"Tananarive " |
| 464 | "1925\",SPHEROID[\"International " |
| 465 | "1924\",6378388,297,AUTHORITY[\"EPSG\",\"7022\"]],TOWGS84[-198.383,-240." |
| 466 | "517,-107.909,0,0,0,0],AUTHORITY[\"EPSG\",\"6297\"]],PRIMEM[\"Greenwich\"," |
| 467 | "0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.017453292519943278," |
| 468 | "AUTHORITY[\"EPSG\",\"9122\"]],AXIS[\"Lat\",NORTH],AXIS[\"Lon\",EAST]," |
| 469 | "AUTHORITY[\"EPSG\",\"4297\"]],PROJECTION[\"Laborde Oblique " |
| 470 | "Mercator\",AUTHORITY[\"EPSG\",\"9813\"]],PARAMETER[\"Latitude of " |
| 471 | "projection " |
| 472 | "centre\",-18.9111111111111,AUTHORITY[\"EPSG\",\"8811\"]],PARAMETER[" |
| 473 | "\"Longitude of projection " |
| 474 | "centre\",46.4372291666667,AUTHORITY[\"EPSG\",\"8812\"]],PARAMETER[" |
| 475 | "\"Azimuth of initial " |
| 476 | "line\",18.9111111111111,AUTHORITY[\"EPSG\",\"8813\"]],PARAMETER[\"Scale " |
| 477 | "factor on initial " |
| 478 | "line\",0.9995,AUTHORITY[\"EPSG\",\"8815\"]],PARAMETER[\"False " |
| 479 | "easting\",400000,AUTHORITY[\"EPSG\",\"8806\"]],PARAMETER[\"False " |
| 480 | "northing\",800000,AUTHORITY[\"EPSG\",\"8807\"]],UNIT[\"metre\",1," |
| 481 | "AUTHORITY[\"EPSG\",\"9001\"]],AXIS[\"X\",NORTH],AXIS[\"Y\",EAST]," |
| 482 | "AUTHORITY[\"EPSG\",\"8441\"]]"; |
| 483 | // 9815 |
| 484 | dd::String_type epsg29873 = |
| 485 | "PROJCS[\"Timbalai 1948 / RSO Borneo (m)\",GEOGCS[\"Timbalai " |
| 486 | "1948\",DATUM[\"Timbalai 1948\",SPHEROID[\"Everest 1830 (1967 " |
| 487 | "Definition)\",6377298.556,300.8017,AUTHORITY[\"EPSG\",\"7016\"]],TOWGS84[-" |
| 488 | "679,669,-48,0,0,0,0],AUTHORITY[\"EPSG\",\"6298\"]],PRIMEM[\"Greenwich\",0," |
| 489 | "AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.017453292519943278," |
| 490 | "AUTHORITY[\"EPSG\",\"9122\"]],AXIS[\"Lat\",NORTH],AXIS[\"Lon\",EAST]," |
| 491 | "AUTHORITY[\"EPSG\",\"4298\"]],PROJECTION[\"Hotine Oblique Mercator " |
| 492 | "(variant B)\",AUTHORITY[\"EPSG\",\"9815\"]],PARAMETER[\"Latitude of " |
| 493 | "projection centre\",4,AUTHORITY[\"EPSG\",\"8811\"]],PARAMETER[\"Longitude " |
| 494 | "of projection " |
| 495 | "centre\",115,AUTHORITY[\"EPSG\",\"8812\"]],PARAMETER[\"Azimuth of initial " |
| 496 | "line\",53.3158204722222,AUTHORITY[\"EPSG\",\"8813\"]],PARAMETER[\"Angle " |
| 497 | "from Rectified to Skew " |
| 498 | "Grid\",53.1301023611111,AUTHORITY[\"EPSG\",\"8814\"]],PARAMETER[\"Scale " |
| 499 | "factor on initial " |
| 500 | "line\",0.99984,AUTHORITY[\"EPSG\",\"8815\"]],PARAMETER[\"Easting at " |
| 501 | "projection " |
| 502 | "centre\",590476.87,AUTHORITY[\"EPSG\",\"8816\"]],PARAMETER[\"Northing at " |
| 503 | "projection " |
| 504 | "centre\",442857.65,AUTHORITY[\"EPSG\",\"8817\"]],UNIT[\"metre\",1," |
| 505 | "AUTHORITY[\"EPSG\",\"9001\"]],AXIS[\"E\",EAST],AXIS[\"N\",NORTH]," |
| 506 | "AUTHORITY[\"EPSG\",\"29873\"]]"; |
| 507 | // 9817 |
| 508 | dd::String_type epsg22700 = |
| 509 | "PROJCS[\"Deir ez Zor / Levant Zone\",GEOGCS[\"Deir ez Zor\",DATUM[\"Deir " |
| 510 | "ez Zor\",SPHEROID[\"Clarke 1880 " |
| 511 | "(IGN)\",6378249.2,293.4660212936269,AUTHORITY[\"EPSG\",\"7011\"]],TOWGS84[" |
| 512 | "-83.58,-397.54,458.78,-17.595,-2.847,4.256,3.225],AUTHORITY[\"EPSG\"," |
| 513 | "\"6227\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[" |
| 514 | "\"degree\",0.017453292519943278,AUTHORITY[\"EPSG\",\"9122\"]],AXIS[" |
| 515 | "\"Lat\",NORTH],AXIS[\"Lon\",EAST],AUTHORITY[\"EPSG\",\"4227\"]]," |
| 516 | "PROJECTION[\"Lambert Conic " |
| 517 | "Near-Conformal\",AUTHORITY[\"EPSG\",\"9817\"]],PARAMETER[\"Latitude of " |
| 518 | "natural " |
| 519 | "origin\",34.65,AUTHORITY[\"EPSG\",\"8801\"]],PARAMETER[\"Longitude of " |
| 520 | "natural origin\",37.35,AUTHORITY[\"EPSG\",\"8802\"]],PARAMETER[\"Scale " |
| 521 | "factor at natural " |
| 522 | "origin\",0.9996256,AUTHORITY[\"EPSG\",\"8805\"]],PARAMETER[\"False " |
| 523 | "easting\",300000,AUTHORITY[\"EPSG\",\"8806\"]],PARAMETER[\"False " |
| 524 | "northing\",300000,AUTHORITY[\"EPSG\",\"8807\"]],UNIT[\"metre\",1," |
| 525 | "AUTHORITY[\"EPSG\",\"9001\"]],AXIS[\"X\",EAST],AXIS[\"Y\",NORTH]," |
| 526 | "AUTHORITY[\"EPSG\",\"22700\"]]"; |
| 527 | // 9818 |
| 528 | dd::String_type epsg5880 = |
| 529 | "PROJCS[\"SIRGAS 2000 / Brazil Polyconic\",GEOGCS[\"SIRGAS " |
| 530 | "2000\",DATUM[\"Sistema de Referencia Geocentrico para las AmericaS " |
| 531 | "2000\",SPHEROID[\"GRS " |
| 532 | "1980\",6378137,298.257222101,AUTHORITY[\"EPSG\",\"7019\"]],TOWGS84[0,0,0," |
| 533 | "0,0,0,0],AUTHORITY[\"EPSG\",\"6674\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[" |
| 534 | "\"EPSG\",\"8901\"]],UNIT[\"degree\",0.017453292519943278,AUTHORITY[" |
| 535 | "\"EPSG\",\"9122\"]],AXIS[\"Lat\",NORTH],AXIS[\"Lon\",EAST],AUTHORITY[" |
| 536 | "\"EPSG\",\"4674\"]],PROJECTION[\"American " |
| 537 | "Polyconic\",AUTHORITY[\"EPSG\",\"9818\"]],PARAMETER[\"Latitude of natural " |
| 538 | "origin\",0,AUTHORITY[\"EPSG\",\"8801\"]],PARAMETER[\"Longitude of natural " |
| 539 | "origin\",-54,AUTHORITY[\"EPSG\",\"8802\"]],PARAMETER[\"False " |
| 540 | "easting\",5000000,AUTHORITY[\"EPSG\",\"8806\"]],PARAMETER[\"False " |
| 541 | "northing\",10000000,AUTHORITY[\"EPSG\",\"8807\"]],UNIT[\"metre\",1," |
| 542 | "AUTHORITY[\"EPSG\",\"9001\"]],AXIS[\"X\",EAST],AXIS[\"Y\",NORTH]," |
| 543 | "AUTHORITY[\"EPSG\",\"5880\"]]"; |
| 544 | // 9819 |
| 545 | dd::String_type epsg5513 = |
| 546 | "PROJCS[\"S-JTSK / Krovak\",GEOGCS[\"S-JTSK\",DATUM[\"System of the " |
| 547 | "Unified Trigonometrical Cadastral Network\",SPHEROID[\"Bessel " |
| 548 | "1841\",6377397.155,299.1528128,AUTHORITY[\"EPSG\",\"7004\"]],TOWGS84[589," |
| 549 | "76,480,0,0,0,0],AUTHORITY[\"EPSG\",\"6156\"]],PRIMEM[\"Greenwich\",0," |
| 550 | "AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.017453292519943278," |
| 551 | "AUTHORITY[\"EPSG\",\"9122\"]],AXIS[\"Lat\",NORTH],AXIS[\"Lon\",EAST]," |
| 552 | "AUTHORITY[\"EPSG\",\"4156\"]],PROJECTION[\"Krovak\",AUTHORITY[\"EPSG\"," |
| 553 | "\"9819\"]],PARAMETER[\"Latitude of projection " |
| 554 | "centre\",49.5111111111111,AUTHORITY[\"EPSG\",\"8811\"]],PARAMETER[" |
| 555 | "\"Longitude of " |
| 556 | "origin\",24.8333333333333,AUTHORITY[\"EPSG\",\"8833\"]],PARAMETER[\"Co-" |
| 557 | "latitude of cone " |
| 558 | "axis\",30.2881397222222,AUTHORITY[\"EPSG\",\"1036\"]],PARAMETER[" |
| 559 | "\"Latitude of pseudo standard " |
| 560 | "parallel\",78.5111111111111,AUTHORITY[\"EPSG\",\"8818\"]],PARAMETER[" |
| 561 | "\"Scale factor on pseudo standard " |
| 562 | "parallel\",0.9999,AUTHORITY[\"EPSG\",\"8819\"]],PARAMETER[\"False " |
| 563 | "easting\",0,AUTHORITY[\"EPSG\",\"8806\"]],PARAMETER[\"False " |
| 564 | "northing\",0,AUTHORITY[\"EPSG\",\"8807\"]],UNIT[\"metre\",1,AUTHORITY[" |
| 565 | "\"EPSG\",\"9001\"]],AXIS[\"X\",SOUTH],AXIS[\"Y\",WEST],AUTHORITY[\"EPSG\"," |
| 566 | "\"5513\"]]"; |
| 567 | // 9820 |
| 568 | dd::String_type epsg3035 = |
| 569 | "PROJCS[\"ETRS89 / LAEA Europe\",GEOGCS[\"ETRS89\",DATUM[\"European " |
| 570 | "Terrestrial Reference System 1989\",SPHEROID[\"GRS " |
| 571 | "1980\",6378137,298.257222101,AUTHORITY[\"EPSG\",\"7019\"]],TOWGS84[0,0,0," |
| 572 | "0,0,0,0],AUTHORITY[\"EPSG\",\"6258\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[" |
| 573 | "\"EPSG\",\"8901\"]],UNIT[\"degree\",0.017453292519943278,AUTHORITY[" |
| 574 | "\"EPSG\",\"9122\"]],AXIS[\"Lat\",NORTH],AXIS[\"Lon\",EAST],AUTHORITY[" |
| 575 | "\"EPSG\",\"4258\"]],PROJECTION[\"Lambert Azimuthal Equal " |
| 576 | "Area\",AUTHORITY[\"EPSG\",\"9820\"]],PARAMETER[\"Latitude of natural " |
| 577 | "origin\",52,AUTHORITY[\"EPSG\",\"8801\"]],PARAMETER[\"Longitude of " |
| 578 | "natural origin\",10,AUTHORITY[\"EPSG\",\"8802\"]],PARAMETER[\"False " |
| 579 | "easting\",4321000,AUTHORITY[\"EPSG\",\"8806\"]],PARAMETER[\"False " |
| 580 | "northing\",3210000,AUTHORITY[\"EPSG\",\"8807\"]],UNIT[\"metre\",1," |
| 581 | "AUTHORITY[\"EPSG\",\"9001\"]],AXIS[\"Y\",NORTH],AXIS[\"X\",EAST]," |
| 582 | "AUTHORITY[\"EPSG\",\"3035\"]]"; |
| 583 | // 9822 |
| 584 | dd::String_type epsg3174 = |
| 585 | "PROJCS[\"NAD83 / Great Lakes Albers\",GEOGCS[\"NAD83\",DATUM[\"North " |
| 586 | "American Datum 1983\",SPHEROID[\"GRS " |
| 587 | "1980\",6378137,298.257222101,AUTHORITY[\"EPSG\",\"7019\"]],TOWGS84[1,1,-1," |
| 588 | "0,0,0,0],AUTHORITY[\"EPSG\",\"6269\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[" |
| 589 | "\"EPSG\",\"8901\"]],UNIT[\"degree\",0.017453292519943278,AUTHORITY[" |
| 590 | "\"EPSG\",\"9122\"]],AXIS[\"Lat\",NORTH],AXIS[\"Lon\",EAST],AUTHORITY[" |
| 591 | "\"EPSG\",\"4269\"]],PROJECTION[\"Albers Equal " |
| 592 | "Area\",AUTHORITY[\"EPSG\",\"9822\"]],PARAMETER[\"Latitude of false " |
| 593 | "origin\",45.568977,AUTHORITY[\"EPSG\",\"8821\"]],PARAMETER[\"Longitude of " |
| 594 | "false " |
| 595 | "origin\",-84.455955,AUTHORITY[\"EPSG\",\"8822\"]],PARAMETER[\"Latitude of " |
| 596 | "1st standard " |
| 597 | "parallel\",42.122774,AUTHORITY[\"EPSG\",\"8823\"]],PARAMETER[\"Latitude " |
| 598 | "of 2nd standard " |
| 599 | "parallel\",49.01518,AUTHORITY[\"EPSG\",\"8824\"]],PARAMETER[\"Easting at " |
| 600 | "false origin\",1000000,AUTHORITY[\"EPSG\",\"8826\"]],PARAMETER[\"Northing " |
| 601 | "at false " |
| 602 | "origin\",1000000,AUTHORITY[\"EPSG\",\"8827\"]],UNIT[\"metre\",1,AUTHORITY[" |
| 603 | "\"EPSG\",\"9001\"]],AXIS[\"X\",EAST],AXIS[\"Y\",NORTH],AUTHORITY[\"EPSG\"," |
| 604 | "\"3174\"]]"; |
| 605 | // 9824 |
| 606 | dd::String_type epsg32600 = |
| 607 | "PROJCS[\"WGS 84 / UTM grid system (northern hemisphere)\",GEOGCS[\"WGS " |
| 608 | "84\",DATUM[\"World Geodetic System 1984\",SPHEROID[\"WGS " |
| 609 | "84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[" |
| 610 | "\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]]," |
| 611 | "UNIT[\"degree\",0.017453292519943278,AUTHORITY[\"EPSG\",\"9122\"]],AXIS[" |
| 612 | "\"Lat\",NORTH],AXIS[\"Lon\",EAST],AUTHORITY[\"EPSG\",\"4326\"]]," |
| 613 | "PROJECTION[\"Transverse Mercator Zoned Grid " |
| 614 | "System\",AUTHORITY[\"EPSG\",\"9824\"]],PARAMETER[\"Latitude of natural " |
| 615 | "origin\",0,AUTHORITY[\"EPSG\",\"8801\"]],PARAMETER[\"Initial " |
| 616 | "longitude\",-180,AUTHORITY[\"EPSG\",\"8830\"]],PARAMETER[\"Zone " |
| 617 | "width\",6,AUTHORITY[\"EPSG\",\"8831\"]],PARAMETER[\"Scale factor at " |
| 618 | "natural origin\",0.9996,AUTHORITY[\"EPSG\",\"8805\"]],PARAMETER[\"False " |
| 619 | "easting\",500000,AUTHORITY[\"EPSG\",\"8806\"]],PARAMETER[\"False " |
| 620 | "northing\",0,AUTHORITY[\"EPSG\",\"8807\"]],UNIT[\"metre\",1,AUTHORITY[" |
| 621 | "\"EPSG\",\"9001\"]],AXIS[\"E\",EAST],AXIS[\"N\",NORTH],AUTHORITY[\"EPSG\"," |
| 622 | "\"32600\"]]"; |
| 623 | dd::String_type epsg32700 = |
| 624 | "PROJCS[\"WGS 84 / UTM grid system (southern hemisphere)\",GEOGCS[\"WGS " |
| 625 | "84\",DATUM[\"World Geodetic System 1984\",SPHEROID[\"WGS " |
| 626 | "84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[" |
| 627 | "\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]]," |
| 628 | "UNIT[\"degree\",0.017453292519943278,AUTHORITY[\"EPSG\",\"9122\"]],AXIS[" |
| 629 | "\"Lat\",NORTH],AXIS[\"Lon\",EAST],AUTHORITY[\"EPSG\",\"4326\"]]," |
| 630 | "PROJECTION[\"Transverse Mercator Zoned Grid " |
| 631 | "System\",AUTHORITY[\"EPSG\",\"9824\"]],PARAMETER[\"Latitude of natural " |
| 632 | "origin\",0,AUTHORITY[\"EPSG\",\"8801\"]],PARAMETER[\"Initial " |
| 633 | "longitude\",-180,AUTHORITY[\"EPSG\",\"8830\"]],PARAMETER[\"Zone " |
| 634 | "width\",6,AUTHORITY[\"EPSG\",\"8831\"]],PARAMETER[\"Scale factor at " |
| 635 | "natural origin\",0.9996,AUTHORITY[\"EPSG\",\"8805\"]],PARAMETER[\"False " |
| 636 | "easting\",500000,AUTHORITY[\"EPSG\",\"8806\"]],PARAMETER[\"False " |
| 637 | "northing\",10000000,AUTHORITY[\"EPSG\",\"8807\"]],UNIT[\"metre\",1," |
| 638 | "AUTHORITY[\"EPSG\",\"9001\"]],AXIS[\"E\",EAST],AXIS[\"N\",NORTH]," |
| 639 | "AUTHORITY[\"EPSG\",\"32700\"]]"; |
| 640 | // 9828 |
| 641 | dd::String_type epsg5017 = |
| 642 | "PROJCS[\"Lisbon 1890 / Portugal Bonne New\",GEOGCS[\"Lisbon " |
| 643 | "1890\",DATUM[\"Lisbon 1890\",SPHEROID[\"Bessel " |
| 644 | "1841\",6377397.155,299.1528128,AUTHORITY[\"EPSG\",\"7004\"]],TOWGS84[631." |
| 645 | "392,-66.551,481.442,1.09,-4.445,-4.487,-4.43],AUTHORITY[\"EPSG\",\"6666\"]" |
| 646 | "],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0." |
| 647 | "017453292519943278,AUTHORITY[\"EPSG\",\"9122\"]],AXIS[\"Lat\",NORTH],AXIS[" |
| 648 | "\"Lon\",EAST],AUTHORITY[\"EPSG\",\"4666\"]],PROJECTION[\"Bonne (South " |
| 649 | "Orientated)\",AUTHORITY[\"EPSG\",\"9828\"]],PARAMETER[\"Latitude of " |
| 650 | "natural " |
| 651 | "origin\",39.6777777777778,AUTHORITY[\"EPSG\",\"8801\"]],PARAMETER[" |
| 652 | "\"Longitude of natural " |
| 653 | "origin\",-8.13190611111111,AUTHORITY[\"EPSG\",\"8802\"]],PARAMETER[" |
| 654 | "\"False easting\",0,AUTHORITY[\"EPSG\",\"8806\"]],PARAMETER[\"False " |
| 655 | "northing\",0,AUTHORITY[\"EPSG\",\"8807\"]],UNIT[\"metre\",1,AUTHORITY[" |
| 656 | "\"EPSG\",\"9001\"]],AXIS[\"P\",SOUTH],AXIS[\"M\",WEST],AUTHORITY[\"EPSG\"," |
| 657 | "\"5017\"]]"; |
| 658 | // 9829 |
| 659 | dd::String_type epsg3032 = |
| 660 | "PROJCS[\"WGS 84 / Australian Antarctic Polar Stereographic\",GEOGCS[\"WGS " |
| 661 | "84\",DATUM[\"World Geodetic System 1984\",SPHEROID[\"WGS " |
| 662 | "84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[" |
| 663 | "\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]]," |
| 664 | "UNIT[\"degree\",0.017453292519943278,AUTHORITY[\"EPSG\",\"9122\"]],AXIS[" |
| 665 | "\"Lat\",NORTH],AXIS[\"Lon\",EAST],AUTHORITY[\"EPSG\",\"4326\"]]," |
| 666 | "PROJECTION[\"Polar Stereographic (variant " |
| 667 | "B)\",AUTHORITY[\"EPSG\",\"9829\"]],PARAMETER[\"Latitude of standard " |
| 668 | "parallel\",-71,AUTHORITY[\"EPSG\",\"8832\"]],PARAMETER[\"Longitude of " |
| 669 | "origin\",70,AUTHORITY[\"EPSG\",\"8833\"]],PARAMETER[\"False " |
| 670 | "easting\",6000000,AUTHORITY[\"EPSG\",\"8806\"]],PARAMETER[\"False " |
| 671 | "northing\",6000000,AUTHORITY[\"EPSG\",\"8807\"]],UNIT[\"metre\",1," |
| 672 | "AUTHORITY[\"EPSG\",\"9001\"]],AXIS[\"E\",NORTH],AXIS[\"N\",NORTH]," |
| 673 | "AUTHORITY[\"EPSG\",\"3032\"]]"; |
| 674 | // 9830 |
| 675 | dd::String_type epsg2985 = |
| 676 | "PROJCS[\"Petrels 1972 / Terre Adelie Polar " |
| 677 | "Stereographic\",GEOGCS[\"Petrels 1972\",DATUM[\"Petrels " |
| 678 | "1972\",SPHEROID[\"International " |
| 679 | "1924\",6378388,297,AUTHORITY[\"EPSG\",\"7022\"]],TOWGS84[365,194,166,0,0," |
| 680 | "0,0],AUTHORITY[\"EPSG\",\"6636\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[" |
| 681 | "\"EPSG\",\"8901\"]],UNIT[\"degree\",0.017453292519943278,AUTHORITY[" |
| 682 | "\"EPSG\",\"9122\"]],AXIS[\"Lat\",NORTH],AXIS[\"Lon\",EAST],AUTHORITY[" |
| 683 | "\"EPSG\",\"4636\"]],PROJECTION[\"Polar Stereographic (variant " |
| 684 | "C)\",AUTHORITY[\"EPSG\",\"9830\"]],PARAMETER[\"Latitude of standard " |
| 685 | "parallel\",-67,AUTHORITY[\"EPSG\",\"8832\"]],PARAMETER[\"Longitude of " |
| 686 | "origin\",140,AUTHORITY[\"EPSG\",\"8833\"]],PARAMETER[\"Easting at false " |
| 687 | "origin\",300000,AUTHORITY[\"EPSG\",\"8826\"]],PARAMETER[\"Northing at " |
| 688 | "false " |
| 689 | "origin\",200000,AUTHORITY[\"EPSG\",\"8827\"]],UNIT[\"metre\",1,AUTHORITY[" |
| 690 | "\"EPSG\",\"9001\"]],AXIS[\"X\",NORTH],AXIS[\"Y\",NORTH],AUTHORITY[" |
| 691 | "\"EPSG\",\"2985\"]]"; |
| 692 | // 9831 |
| 693 | dd::String_type epsg3993 = |
| 694 | "PROJCS[\"Guam 1963 / Guam SPCS\",GEOGCS[\"Guam 1963\",DATUM[\"Guam " |
| 695 | "1963\",SPHEROID[\"Clarke " |
| 696 | "1866\",6378206.4,294.9786982138982,AUTHORITY[\"EPSG\",\"7008\"]],TOWGS84[-" |
| 697 | "100,-248,259,0,0,0,0],AUTHORITY[\"EPSG\",\"6675\"]],PRIMEM[\"Greenwich\"," |
| 698 | "0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.017453292519943278," |
| 699 | "AUTHORITY[\"EPSG\",\"9122\"]],AXIS[\"Lat\",NORTH],AXIS[\"Lon\",EAST]," |
| 700 | "AUTHORITY[\"EPSG\",\"4675\"]],PROJECTION[\"Guam " |
| 701 | "Projection\",AUTHORITY[\"EPSG\",\"9831\"]],PARAMETER[\"Latitude of " |
| 702 | "natural " |
| 703 | "origin\",13.4724663527778,AUTHORITY[\"EPSG\",\"8801\"]],PARAMETER[" |
| 704 | "\"Longitude of natural " |
| 705 | "origin\",144.748750705556,AUTHORITY[\"EPSG\",\"8802\"]],PARAMETER[\"False " |
| 706 | "easting\",50000,AUTHORITY[\"EPSG\",\"8806\"]],PARAMETER[\"False " |
| 707 | "northing\",50000,AUTHORITY[\"EPSG\",\"8807\"]],UNIT[\"metre\",1,AUTHORITY[" |
| 708 | "\"EPSG\",\"9001\"]],AXIS[\"X\",EAST],AXIS[\"Y\",NORTH],AUTHORITY[\"EPSG\"," |
| 709 | "\"3993\"]]"; |
| 710 | // 9832 |
| 711 | dd::String_type epsg3295 = |
| 712 | "PROJCS[\"Guam 1963 / Yap Islands\",GEOGCS[\"Guam 1963\",DATUM[\"Guam " |
| 713 | "1963\",SPHEROID[\"Clarke " |
| 714 | "1866\",6378206.4,294.9786982138982,AUTHORITY[\"EPSG\",\"7008\"]],TOWGS84[-" |
| 715 | "100,-248,259,0,0,0,0],AUTHORITY[\"EPSG\",\"6675\"]],PRIMEM[\"Greenwich\"," |
| 716 | "0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.017453292519943278," |
| 717 | "AUTHORITY[\"EPSG\",\"9122\"]],AXIS[\"Lat\",NORTH],AXIS[\"Lon\",EAST]," |
| 718 | "AUTHORITY[\"EPSG\",\"4675\"]],PROJECTION[\"Modified Azimuthal " |
| 719 | "Equidistant\",AUTHORITY[\"EPSG\",\"9832\"]],PARAMETER[\"Latitude of " |
| 720 | "natural " |
| 721 | "origin\",9.54670833333333,AUTHORITY[\"EPSG\",\"8801\"]],PARAMETER[" |
| 722 | "\"Longitude of natural " |
| 723 | "origin\",138.168744444444,AUTHORITY[\"EPSG\",\"8802\"]],PARAMETER[\"False " |
| 724 | "easting\",40000,AUTHORITY[\"EPSG\",\"8806\"]],PARAMETER[\"False " |
| 725 | "northing\",60000,AUTHORITY[\"EPSG\",\"8807\"]],UNIT[\"metre\",1,AUTHORITY[" |
| 726 | "\"EPSG\",\"9001\"]],AXIS[\"X\",EAST],AXIS[\"Y\",NORTH],AUTHORITY[\"EPSG\"," |
| 727 | "\"3295\"]]"; |
| 728 | // 9833 |
| 729 | dd::String_type epsg3139 = |
| 730 | "PROJCS[\"Vanua Levu 1915 / Vanua Levu Grid\",GEOGCS[\"Vanua Levu " |
| 731 | "1915\",DATUM[\"Vanua Levu 1915\",SPHEROID[\"Clarke 1880 (international " |
| 732 | "foot)\",6378306.3696,293.46630765562986,AUTHORITY[\"EPSG\",\"7055\"]]," |
| 733 | "TOWGS84[51,391,-36,0,0,0,0],AUTHORITY[\"EPSG\",\"6748\"]],PRIMEM[" |
| 734 | "\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0." |
| 735 | "017453292519943278,AUTHORITY[\"EPSG\",\"9122\"]],AXIS[\"Lat\",NORTH],AXIS[" |
| 736 | "\"Lon\",EAST],AUTHORITY[\"EPSG\",\"4748\"]],PROJECTION[\"Hyperbolic " |
| 737 | "Cassini-Soldner\",AUTHORITY[\"EPSG\",\"9833\"]],PARAMETER[\"Latitude of " |
| 738 | "natural " |
| 739 | "origin\",-16.2611111111111,AUTHORITY[\"EPSG\",\"8801\"]],PARAMETER[" |
| 740 | "\"Longitude of natural " |
| 741 | "origin\",179.344444444444,AUTHORITY[\"EPSG\",\"8802\"]],PARAMETER[\"False " |
| 742 | "easting\",1251331.8,AUTHORITY[\"EPSG\",\"8806\"]],PARAMETER[\"False " |
| 743 | "northing\",1662888.5,AUTHORITY[\"EPSG\",\"8807\"]],UNIT[\"link\",0.201168," |
| 744 | "AUTHORITY[\"EPSG\",\"9098\"]],AXIS[\"X\",NORTH],AXIS[\"Y\",EAST]," |
| 745 | "AUTHORITY[\"EPSG\",\"3139\"]]"; |
| 746 | // 9834 |
| 747 | dd::String_type epsg3410 = |
| 748 | "PROJCS[\"NSIDC EASE-Grid Global\",GEOGCS[\"Unspecified datum based upon " |
| 749 | "the International 1924 Authalic Sphere\",DATUM[\"Not specified (based on " |
| 750 | "International 1924 Authalic Sphere)\",SPHEROID[\"International 1924 " |
| 751 | "Authalic " |
| 752 | "Sphere\",6371228,0,AUTHORITY[\"EPSG\",\"7057\"]],TOWGS84[0,0,0,0,0,0,0]," |
| 753 | "AUTHORITY[\"EPSG\",\"6053\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\"," |
| 754 | "\"8901\"]],UNIT[\"degree\",0.017453292519943278,AUTHORITY[\"EPSG\"," |
| 755 | "\"9122\"]],AXIS[\"Lat\",NORTH],AXIS[\"Lon\",EAST],AUTHORITY[\"EPSG\"," |
| 756 | "\"4053\"]],PROJECTION[\"Lambert Cylindrical Equal Area " |
| 757 | "(Spherical)\",AUTHORITY[\"EPSG\",\"9834\"]],PARAMETER[\"Latitude of 1st " |
| 758 | "standard " |
| 759 | "parallel\",30,AUTHORITY[\"EPSG\",\"8823\"]],PARAMETER[\"Longitude of " |
| 760 | "natural origin\",0,AUTHORITY[\"EPSG\",\"8802\"]],PARAMETER[\"False " |
| 761 | "easting\",0,AUTHORITY[\"EPSG\",\"8806\"]],PARAMETER[\"False " |
| 762 | "northing\",0,AUTHORITY[\"EPSG\",\"8807\"]],UNIT[\"metre\",1,AUTHORITY[" |
| 763 | "\"EPSG\",\"9001\"]],AXIS[\"X\",EAST],AXIS[\"Y\",NORTH],AUTHORITY[\"EPSG\"," |
| 764 | "\"3410\"]]"; |
| 765 | // 9835 |
| 766 | dd::String_type epsg6933 = |
| 767 | "PROJCS[\"WGS 84 / NSIDC EASE-Grid 2.0 Global\",GEOGCS[\"WGS " |
| 768 | "84\",DATUM[\"World Geodetic System 1984\",SPHEROID[\"WGS " |
| 769 | "84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[" |
| 770 | "\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]]," |
| 771 | "UNIT[\"degree\",0.017453292519943278,AUTHORITY[\"EPSG\",\"9122\"]],AXIS[" |
| 772 | "\"Lat\",NORTH],AXIS[\"Lon\",EAST],AUTHORITY[\"EPSG\",\"4326\"]]," |
| 773 | "PROJECTION[\"Lambert Cylindrical Equal " |
| 774 | "Area\",AUTHORITY[\"EPSG\",\"9835\"]],PARAMETER[\"Latitude of 1st standard " |
| 775 | "parallel\",30,AUTHORITY[\"EPSG\",\"8823\"]],PARAMETER[\"Longitude of " |
| 776 | "natural origin\",0,AUTHORITY[\"EPSG\",\"8802\"]],PARAMETER[\"False " |
| 777 | "easting\",0,AUTHORITY[\"EPSG\",\"8806\"]],PARAMETER[\"False " |
| 778 | "northing\",0,AUTHORITY[\"EPSG\",\"8807\"]],UNIT[\"metre\",1,AUTHORITY[" |
| 779 | "\"EPSG\",\"9001\"]],AXIS[\"X\",EAST],AXIS[\"Y\",NORTH],AUTHORITY[\"EPSG\"," |
| 780 | "\"6933\"]]"; |
| 781 | |
| 782 | template <typename Geometry> |
| 783 | struct print { |
| 784 | static void apply() {} |
| 785 | }; |
| 786 | |
| 787 | template <> |
| 788 | struct print<gis::Cartesian_point> { |
| 789 | static void apply(gis::Cartesian_point p) { |
| 790 | std::cout << std::setprecision(20) << p.x() << " , " << p.y() << std::endl; |
| 791 | } |
| 792 | }; |
| 793 | template <> |
| 794 | struct print<gis::Geographic_point> { |
| 795 | static void apply(gis::Geographic_point p) { |
| 796 | const double to_rad = boost::geometry::math::pi<double>() / 180.0; |
| 797 | std::cout << std::setprecision(20) << p.x() / to_rad << " , " |
| 798 | << p.y() / to_rad << std::endl; |
| 799 | } |
| 800 | }; |
| 801 | |
| 802 | template <> |
| 803 | struct print<gis::Cartesian_linestring> { |
| 804 | static void apply(gis::Cartesian_linestring g2) { |
| 805 | for (std::size_t p = 0; p < g2.size(); p++) { |
| 806 | std::cout << std::setprecision(20) << g2[p].x() << "," << g2[p].y() |
| 807 | << " "; |
| 808 | } |
| 809 | std::cout << std::endl; |
| 810 | } |
| 811 | }; |
| 812 | |
| 813 | template <> |
| 814 | struct print<gis::Geographic_linestring> { |
| 815 | static void apply(gis::Geographic_linestring g2) { |
| 816 | for (std::size_t p = 0; p < g2.size(); p++) { |
| 817 | std::cout << std::setprecision(20) << g2[p].x() << "," << g2[p].y() |
| 818 | << " "; |
| 819 | } |
| 820 | std::cout << std::endl; |
| 821 | } |
| 822 | }; |
| 823 | |
| 824 | template <typename Geometry1> |
| 825 | auto coverage_transform(const dd::Spatial_reference_system_impl &srs1, |
| 826 | const dd::Spatial_reference_system_impl &srs2, |
| 827 | const Geometry1 &g1) { |
| 828 | if (srs1.is_projected()) |
| 829 | assert(g1.coordinate_system() == gis::Coordinate_system::kCartesian); |
| 830 | else |
| 831 | assert(g1.coordinate_system() == gis::Coordinate_system::kGeographic); |
| 832 | |
| 833 | std::unique_ptr<gis::Geometry> result_g; |
| 834 | gis::transform(&srs1, g1, &srs2, "unittest", &result_g); |
| 835 | |
| 836 | return result_g; |
| 837 | } |
| 838 | |
| 839 | template <typename Geometry1> |
| 840 | void coverage_transform(const dd::String_type &srs1_str, |
| 841 | const dd::String_type &srs2_str, const Geometry1 &g1) { |
| 842 | auto srs1 = std::unique_ptr<dd::Spatial_reference_system_impl>{ |
| 843 | dynamic_cast<dd::Spatial_reference_system_impl *>( |
| 844 | dd::create_object<dd::Spatial_reference_system>())}; |
| 845 | srs1->set_id(1000001); |
| 846 | srs1->set_name("Test1"); |
| 847 | srs1->set_created(0UL); |
| 848 | srs1->set_last_altered(0UL); |
| 849 | srs1->set_definition(srs1_str); |
| 850 | srs1->parse_definition(); |
| 851 | |
| 852 | auto srs2 = std::unique_ptr<dd::Spatial_reference_system_impl>{ |
| 853 | dynamic_cast<dd::Spatial_reference_system_impl *>( |
| 854 | dd::create_object<dd::Spatial_reference_system>())}; |
| 855 | srs2->set_id(1000000); |
| 856 | srs2->set_name("Test2"); |
| 857 | srs2->set_created(0UL); |
| 858 | srs2->set_last_altered(0UL); |
| 859 | srs2->set_definition(srs2_str); |
| 860 | srs2->parse_definition(); |
| 861 | |
| 862 | coverage_transform(*srs1, *srs2, g1); |
| 863 | } |
| 864 | |
| 865 | template <typename Geometry1, typename Geometry2> |
| 866 | void check_transform(const dd::Spatial_reference_system_impl &srs1, |
| 867 | const dd::Spatial_reference_system_impl &srs2, |
| 868 | const Geometry1 &g1, const Geometry2 &g2, |
| 869 | bool check_inverse) { |
| 870 | if (srs2.is_projected()) |
| 871 | assert(g2.coordinate_system() == gis::Coordinate_system::kCartesian); |
| 872 | else |
| 873 | assert(g2.coordinate_system() == gis::Coordinate_system::kGeographic); |
| 874 | |
| 875 | // print<Geometry1>::apply(g1); |
| 876 | // print<Geometry2>::apply(g2); |
| 877 | |
| 878 | std::unique_ptr<gis::Geometry> result_g; |
| 879 | result_g = coverage_transform(srs1, srs2, g1); |
| 880 | |
| 881 | auto g = dynamic_cast<Geometry2 *>(result_g.get()); |
| 882 | |
| 883 | // Verify result is correct. |
| 884 | EXPECT_NEAR(g->x(), g2.x(), 0.000001f); |
| 885 | EXPECT_NEAR(g->y(), g2.y(), 0.000001f); |
| 886 | |
| 887 | // for debugging |
| 888 | // print<Geometry2>::apply(*g); |
| 889 | // print<Geometry2>::apply(g2); |
| 890 | |
| 891 | // test inverse tranformation |
| 892 | if (check_inverse) { |
| 893 | std::unique_ptr<gis::Geometry> result_g_inv; |
| 894 | result_g_inv = coverage_transform(srs2, srs1, g2); |
| 895 | |
| 896 | auto g_inv = dynamic_cast<Geometry1 *>(result_g_inv.get()); |
| 897 | |
| 898 | // Verify result is correct. |
| 899 | EXPECT_NEAR(g_inv->x(), g1.x(), 0.1f); |
| 900 | EXPECT_NEAR(g_inv->y(), g1.y(), 0.1f); |
| 901 | } |
| 902 | } |
| 903 | |
| 904 | template <typename Geometry1, typename Geometry2> |
| 905 | void check_transform(const dd::String_type &srs1_str, |
| 906 | const dd::String_type &srs2_str, const Geometry1 &g1, |
| 907 | const Geometry2 &g2, bool check_inverse = true) { |
| 908 | auto srs1 = std::unique_ptr<dd::Spatial_reference_system_impl>{ |
| 909 | dynamic_cast<dd::Spatial_reference_system_impl *>( |
| 910 | dd::create_object<dd::Spatial_reference_system>())}; |
| 911 | srs1->set_id(1000001); |
| 912 | srs1->set_name("Test1"); |
| 913 | srs1->set_created(0UL); |
| 914 | srs1->set_last_altered(0UL); |
| 915 | srs1->set_definition(srs1_str); |
| 916 | srs1->parse_definition(); |
| 917 | |
| 918 | auto srs2 = std::unique_ptr<dd::Spatial_reference_system_impl>{ |
| 919 | dynamic_cast<dd::Spatial_reference_system_impl *>( |
| 920 | dd::create_object<dd::Spatial_reference_system>())}; |
| 921 | srs2->set_id(1000000); |
| 922 | srs2->set_name("Test2"); |
| 923 | srs2->set_created(0UL); |
| 924 | srs2->set_last_altered(0UL); |
| 925 | srs2->set_definition(srs2_str); |
| 926 | srs2->parse_definition(); |
| 927 | |
| 928 | check_transform(*srs1, *srs2, g1, g2, check_inverse); |
| 929 | } |
| 930 | |
| 931 | TEST(TransformTest, GeogcsProjcsCombinations) { |
| 932 | gis::Geographic_point gp{0.001, 0.0002}; |
| 933 | |
| 934 | // Point to Point transformations |
| 935 | // geogcs - geogcs |
| 936 | check_transform(wgs84, modairy, gp, |
| 937 | gis::Geographic_point{0.0010000000000000000208, |
| 938 | 0.00019999503232222135473}); |
| 939 | check_transform( |
| 940 | modairy, wgs84, gis::Geographic_point{0.1, 0.2}, |
| 941 | gis::Geographic_point{0.099999999999999991673, 0.20000483632518123445}); |
| 942 | |
| 943 | // geogcs - projcs |
| 944 | check_transform( |
| 945 | wgs84, webmerc3857, gp, |
| 946 | gis::Cartesian_point{6378.1369999999997162, 1275.6274085031250252}); |
| 947 | check_transform( |
| 948 | webmerc3857, wgs84, |
| 949 | gis::Cartesian_point{6378.1369999999997162, 1275.6274085031250252}, |
| 950 | gis::Geographic_point{0.00099999999999999980398, |
| 951 | 0.00019999999999975592857}); |
| 952 | check_transform( |
| 953 | modairy, webmerc3857, gp, |
| 954 | gis::Cartesian_point{6378.1369999999997162, 1275.6590978060371526}); |
| 955 | check_transform( |
| 956 | wgs84, webmerc_modairy, gp, |
| 957 | gis::Cartesian_point{6377.3401890000004641, 1275.4363657304534172}); |
| 958 | check_transform( |
| 959 | modairy, webmerc_modairy, gp, |
| 960 | gis::Cartesian_point{6377.3401890000004641, 1275.468046302062703}); |
| 961 | check_transform(wgs84, wgs84tmerc, gis::Geographic_point{0., 0.}, |
| 962 | gis::Cartesian_point{-3801310.4438896430656, 10000000}); |
| 963 | |
| 964 | // projcs - projcs |
| 965 | check_transform(webmerc3857, webmerc_modairy, |
| 966 | gis::Cartesian_point{6378.137, 1275.627}, |
| 967 | gis::Cartesian_point{6377.3401889999986, 1275.4359572862386}); |
| 968 | check_transform( |
| 969 | webmerc_modairy, webmerc3857, |
| 970 | gis::Cartesian_point{6377.3401889999986, 1275.4359572862386}, |
| 971 | gis::Cartesian_point{6378.1369999999969878, 1275.6270039824446485}); |
| 972 | check_transform(webmerc3857, wgs84tmerc, gis::Cartesian_point{0., 0.}, |
| 973 | gis::Cartesian_point{-3801310.4438896430656, 10000000}); |
| 974 | |
| 975 | // for the rest of geometry types perform unit tests for coverage |
| 976 | coverage_transform(webmerc3857, wgs84, base_py<gis_typeset::Cartesian>()); |
| 977 | coverage_transform(webmerc3857, wgs84, simple_ls<gis_typeset::Cartesian>()); |
| 978 | coverage_transform(webmerc3857, wgs84, simple_mpt<gis_typeset::Cartesian>()); |
| 979 | coverage_transform(webmerc3857, wgs84, simple_mls<gis_typeset::Cartesian>()); |
| 980 | coverage_transform(webmerc3857, wgs84, simple_mpy<gis_typeset::Cartesian>()); |
| 981 | typename gis_typeset::Cartesian::Geometrycollection gc_cartesian; |
| 982 | gc_cartesian.push_back(simple_ls<gis_typeset::Cartesian>()); |
| 983 | gc_cartesian.push_back(base_py<gis_typeset::Cartesian>()); |
| 984 | coverage_transform(webmerc3857, wgs84, gc_cartesian); |
| 985 | |
| 986 | coverage_transform(wgs84, webmerc3857, base_py<gis_typeset::Geographic>()); |
| 987 | coverage_transform(wgs84, webmerc3857, simple_mpt<gis_typeset::Geographic>()); |
| 988 | coverage_transform(wgs84, webmerc3857, simple_mls<gis_typeset::Geographic>()); |
| 989 | coverage_transform(wgs84, webmerc3857, simple_mpy<gis_typeset::Geographic>()); |
| 990 | typename gis_typeset::Geographic::Geometrycollection gc_geo; |
| 991 | gc_geo.push_back(simple_ls<gis_typeset::Geographic>()); |
| 992 | gc_geo.push_back(base_py<gis_typeset::Geographic>()); |
| 993 | coverage_transform(wgs84, webmerc3857, gc_geo); |
| 994 | |
| 995 | // Test all supported projected SRSs |
| 996 | const double to_rad = boost::geometry::math::pi<double>() / 180.0; |
| 997 | |
| 998 | // EPSG 1027 |
| 999 | check_transform(wgs84, epsg2163, |
| 1000 | gis::Geographic_point{10 * to_rad, 52 * to_rad}, |
| 1001 | gis::Cartesian_point{4413901.784906911, 5358732.968947821}); |
| 1002 | |
| 1003 | // EPSG 1028 |
| 1004 | check_transform(wgs84, epsg4087, |
| 1005 | gis::Geographic_point{10 * to_rad, 52 * to_rad}, |
| 1006 | gis::Cartesian_point{1113194.9079327346, 5788613.52125022}); |
| 1007 | |
| 1008 | // EPSG 1029 |
| 1009 | check_transform(wgs84, epsg4088, |
| 1010 | gis::Geographic_point{10 * to_rad, 52 * to_rad}, |
| 1011 | gis::Cartesian_point{1111950.48817606, 5761364.71140026}); |
| 1012 | |
| 1013 | // EPSG 1041 |
| 1014 | check_transform(wgs84, epsg5514, |
| 1015 | gis::Geographic_point{16.84977 * to_rad, 50.20901 * to_rad}, |
| 1016 | gis::Cartesian_point{-568885.6301656856, -1050469.445646209}); |
| 1017 | |
| 1018 | // EPSG 1051 Lambert Conic Conformal (2SP Michigan) |
| 1019 | check_transform( |
| 1020 | wgs84, epsg6201, |
| 1021 | gis::Geographic_point{-83.166666653 * to_rad, 43.750000014 * to_rad}, |
| 1022 | gis::Cartesian_point{2308321.22103756, 156019.767239717}); |
| 1023 | |
| 1024 | // EPSG 1052 |
| 1025 | check_transform( |
| 1026 | wgs84, epsg6247, |
| 1027 | gis::Geographic_point{-74.250000023 * to_rad, 4.7999999945 * to_rad}, |
| 1028 | gis::Cartesian_point{80859.03040774254, 122543.173684438}); |
| 1029 | |
| 1030 | // EPSG 9801 |
| 1031 | check_transform( |
| 1032 | wgs84, epsg24200, |
| 1033 | gis::Geographic_point{-76.943683174 * to_rad, 17.932166647 * to_rad}, |
| 1034 | gis::Cartesian_point{255854.11037737486, 142204.1008478572}); |
| 1035 | |
| 1036 | // EPSG 9802 |
| 1037 | check_transform( |
| 1038 | wgs84, epsg32040, |
| 1039 | gis::Geographic_point{-95.99999989 * to_rad, 28.500000182 * to_rad}, |
| 1040 | gis::Cartesian_point{2963639.1656968565658, 254577.3224964972178}); |
| 1041 | |
| 1042 | // EPSG 9803 |
| 1043 | check_transform( |
| 1044 | wgs84, epsg31300, |
| 1045 | gis::Geographic_point{5.80737015 * to_rad, 50.679572292 * to_rad}, |
| 1046 | gis::Cartesian_point{252415.172330661, 153108.899168551}); |
| 1047 | |
| 1048 | // EPSG 9804 |
| 1049 | check_transform( |
| 1050 | wgs84, epsg3002, |
| 1051 | gis::Geographic_point{119.99999986 * to_rad, -3.0000001398 * to_rad}, |
| 1052 | gis::Cartesian_point{5009477.80168315, 568973.523495937}); |
| 1053 | |
| 1054 | // EPSG 9805 |
| 1055 | check_transform( |
| 1056 | wgs84, epsg3388, |
| 1057 | gis::Geographic_point{52.999999796 * to_rad, 52.999999796 * to_rad}, |
| 1058 | gis::Cartesian_point{165825.171978172, 5171814.99912084}); |
| 1059 | |
| 1060 | // EPSG 9806 Cassini-Soldner |
| 1061 | check_transform( |
| 1062 | wgs84, epsg30200, |
| 1063 | gis::Geographic_point{-62.000000216 * to_rad, 10.000000275 * to_rad}, |
| 1064 | gis::Cartesian_point{66247.6252721806, 80477.5039249589}); |
| 1065 | |
| 1066 | // EPSG 9807 Transverse Mercator |
| 1067 | check_transform( |
| 1068 | wgs84, epsg27700, |
| 1069 | gis::Geographic_point{0.50000021429 * to_rad, 50.499999871 * to_rad}, |
| 1070 | gis::Cartesian_point{577393.388440983, 69673.6088671646}); |
| 1071 | |
| 1072 | // EPSG 9808 Transverse Mercator (South Orientated) |
| 1073 | check_transform( |
| 1074 | wgs84, epsg2053, |
| 1075 | gis::Geographic_point{28.282632944 * to_rad, -25.732028354 * to_rad}, |
| 1076 | gis::Cartesian_point{71984.4909153351, 2847342.73756047}); |
| 1077 | |
| 1078 | // EPSG 9809 Oblique Stereographic |
| 1079 | check_transform( |
| 1080 | wgs84, epsg28992, |
| 1081 | gis::Geographic_point{5.9999999931 * to_rad, 53.000000025 * to_rad}, |
| 1082 | gis::Cartesian_point{196139.436718705, 557179.096590178}); |
| 1083 | |
| 1084 | // EPSG 9810 Polar Stereographic (variant A) |
| 1085 | check_transform( |
| 1086 | wgs84, epsg5041, |
| 1087 | gis::Geographic_point{44.000000007 * to_rad, 73.000000003 * to_rad}, |
| 1088 | gis::Cartesian_point{3320416.74729058, 632668.431678171}); |
| 1089 | |
| 1090 | // EPSG 9811 New Zealand Map Grid |
| 1091 | check_transform( |
| 1092 | wgs84, epsg27200, |
| 1093 | gis::Geographic_point{174.763336 * to_rad, -36.848461 * to_rad}, |
| 1094 | gis::Cartesian_point{2667648.97907212, 6482184.9814991}); |
| 1095 | |
| 1096 | // EPSG 9812 Hotine Oblique Mercator (variant A) |
| 1097 | check_transform( |
| 1098 | wgs84, epsg3079, gis::Geographic_point{117 * to_rad, 12 * to_rad}, |
| 1099 | gis::Cartesian_point{-4893794.4284746721, 12634528.929278262}); |
| 1100 | |
| 1101 | // EPSG 9813 Laborde Oblique Mercator |
| 1102 | check_transform( |
| 1103 | wgs84, epsg8441, |
| 1104 | gis::Geographic_point{44.45757 * to_rad, -16.189799986 * to_rad}, |
| 1105 | gis::Cartesian_point{188364.97174500348, 1100212.7585672687}); |
| 1106 | |
| 1107 | // EPSG 9815 Hotine Oblique Mercator (variant B) |
| 1108 | check_transform( |
| 1109 | wgs84, epsg29873, |
| 1110 | gis::Geographic_point{115.80550545 * to_rad, 5.3872536023 * to_rad}, |
| 1111 | gis::Cartesian_point{678925.284380531, 596659.268844775}); |
| 1112 | |
| 1113 | // EPSG 9817 Lambert Conic Near-Conformal |
| 1114 | check_transform( |
| 1115 | wgs84, epsg22700, |
| 1116 | gis::Geographic_point{34.136469742 * to_rad, 37.521562493 * to_rad}, |
| 1117 | gis::Cartesian_point{15583.7954048792, 623198.935092147}); |
| 1118 | |
| 1119 | // EPSG 9818 American Polyconic |
| 1120 | check_transform(wgs84, epsg5880, |
| 1121 | gis::Geographic_point{-45 * to_rad, -6 * to_rad}, |
| 1122 | gis::Cartesian_point{5996378.70981776, 9328349.94407545}); |
| 1123 | |
| 1124 | // EPSG 9819 Krovak |
| 1125 | check_transform(wgs84, epsg5513, |
| 1126 | gis::Geographic_point{16.84977 * to_rad, 50.20901 * to_rad}, |
| 1127 | gis::Cartesian_point{1050469.44564621, 568885.630165686}); |
| 1128 | |
| 1129 | // EPSG 9820 Lambert Azimuthal Equal Area |
| 1130 | check_transform(wgs84, epsg3035, |
| 1131 | gis::Geographic_point{5 * to_rad, 50 * to_rad}, |
| 1132 | gis::Cartesian_point{3962799.45095507, 2999718.85315956}); |
| 1133 | |
| 1134 | // EPSG 9822 Albers Equal Area |
| 1135 | check_transform(wgs84, epsg3174, |
| 1136 | gis::Geographic_point{-78.75 * to_rad, 42.749999987 * to_rad}, |
| 1137 | gis::Cartesian_point{1466492.30576324, 702903.122081279}); |
| 1138 | |
| 1139 | // EPSG 9824 Transverse Mercator Zoned Grid System |
| 1140 | check_transform(wgs84, epsg32600, |
| 1141 | gis::Geographic_point{12 * to_rad, 56 * to_rad}, |
| 1142 | gis::Cartesian_point{ |
| 1143 | 1798179.0365446017, |
| 1144 | 13588963.310720725, |
| 1145 | }); |
| 1146 | |
| 1147 | // EPSG 9824 |
| 1148 | check_transform( |
| 1149 | wgs84, epsg32700, gis::Geographic_point{174 * to_rad, -44 * to_rad}, |
| 1150 | gis::Cartesian_point{-2617060.1631802432, 4328084.4894244494}); |
| 1151 | |
| 1152 | // EPSG 9828 Bonne (South Orientated) |
| 1153 | check_transform(wgs84, epsg5017, |
| 1154 | gis::Geographic_point{-9.142685 * to_rad, 38.736946 * to_rad}, |
| 1155 | gis::Cartesian_point{87766.669137895, -3183066.76596979}); |
| 1156 | |
| 1157 | // EPSG 9829 Polar Stereographic (variant B) |
| 1158 | check_transform(wgs84, epsg3032, |
| 1159 | gis::Geographic_point{120 * to_rad, -75 * to_rad}, |
| 1160 | gis::Cartesian_point{7255380.79325839, 7053389.56061016}); |
| 1161 | |
| 1162 | // EPSG 9830 Polar Stereographic (variant C) |
| 1163 | check_transform( |
| 1164 | wgs84, epsg2985, |
| 1165 | gis::Geographic_point{140.07140001 * to_rad, -66.605227791 * to_rad}, |
| 1166 | gis::Cartesian_point{303553.11039781151, 244065.20291350142}); |
| 1167 | check_transform( |
| 1168 | geogcs2985, epsg2985, |
| 1169 | gis::Geographic_point{140.07140001 * to_rad, -66.605227791 * to_rad}, |
| 1170 | gis::Cartesian_point{303169.52229904052, 244055.71902347734}); |
| 1171 | |
| 1172 | // EPSG 9831 Guam Projection |
| 1173 | check_transform( |
| 1174 | wgs84, epsg3993, |
| 1175 | gis::Geographic_point{144.63533131 * to_rad, 13.33903845 * to_rad}, |
| 1176 | gis::Cartesian_point{37452.289675775798969, 35082.299014313684893}); |
| 1177 | |
| 1178 | // EPSG 9832 Modified Azimuthal Equidistant |
| 1179 | check_transform( |
| 1180 | wgs84, epsg3295, |
| 1181 | gis::Geographic_point{138.19303 * to_rad, 9.5965258594 * to_rad}, |
| 1182 | gis::Cartesian_point{42414.396661825645, 65317.2630414931}); |
| 1183 | |
| 1184 | // EPSG 9833 Hyperbolic Cassini-Soldner |
| 1185 | check_transform( |
| 1186 | wgs84, epsg3139, |
| 1187 | gis::Geographic_point{179.99433651 * to_rad, -16.841456514 * to_rad}, |
| 1188 | gis::Cartesian_point{1597583.62617055, 1342373.86918921}); |
| 1189 | |
| 1190 | // EPSG 9834 Lambert Cylindrical Equal Area (Spherical) |
| 1191 | check_transform(wgs84, epsg3410, |
| 1192 | gis::Geographic_point{10 * to_rad, 52 * to_rad}, |
| 1193 | gis::Cartesian_point{963010.77464927, 5782482.73916603}); |
| 1194 | |
| 1195 | // EPSG 9835 Lambert Cylindrical Equal Area |
| 1196 | check_transform(wgs84, epsg6933, |
| 1197 | gis::Geographic_point{10 * to_rad, 52 * to_rad}, |
| 1198 | gis::Cartesian_point{964862.802508964, 5775916.83074435}); |
| 1199 | |
| 1200 | // test some tranformations between projection SRSs |
| 1201 | |
| 1202 | // proj9 returns -6354577.27, -7784081.82 |
| 1203 | check_transform( |
| 1204 | epsg3032, epsg8441, gis::Cartesian_point{1000000., 2400000.}, |
| 1205 | gis::Cartesian_point{-7783930.2673280816525, -6352094.8328518876806}, |
| 1206 | false); |
| 1207 | |
| 1208 | // proj9 returns -18969118.77, -12275282.69 |
| 1209 | check_transform( |
| 1210 | epsg3032, epsg5041, gis::Cartesian_point{1000000, 2400000}, |
| 1211 | gis::Cartesian_point{-18969118.766775749624, -12275282.685159243643}); |
| 1212 | } |
| 1213 | |
| 1214 | } // namespace gis_transform_unittest |