Skip to content

Commit 315add8

Browse files
committed
Merge pull request osm2pgsql-dev#354 from lonvia/remove-oldmerc
Remove oldmerc option
2 parents 97a48f9 + db511a1 commit 315add8

File tree

5 files changed

+3
-17
lines changed

5 files changed

+3
-17
lines changed

docs/osm2pgsql.1

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,6 @@ Store data in degrees of latitude & longitude.
7878
\fB\-m\fR|\-\-merc
7979
Store data in proper spherical Mercator (the default).
8080
.TP
81-
\fB\-M\fR|\-\-oldmerc
82-
Store data in the legacy OSM Mercator format.
83-
.TP
8481
\fB\-E\fR|\-\-proj num
8582
Use projection EPSG:num
8683
.TP
@@ -246,9 +243,9 @@ Verbose output.
246243
.SH SUPPORTED PROJECTIONS
247244
Latlong (\-l) SRS: 4326 (none)
248245
.br
249-
WGS84 Mercator ( ) SRS: 3395 +proj=merc +datum=WGS84 +k=1.0 +units=m +over +no_defs
250-
.br
251246
Spherical Mercator (\-m) SRS:900913 +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs +over
247+
.br
248+
EPSG-defined (\-E) SRS: +init=epsg:(as given in parameter)
252249
.PP
253250
.SH SEE ALSO
254251
.BR proj (1),

options.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ namespace
2929
{"prefix", 1, 0, 'p'},
3030
{"proj", 1, 0, 'E'},
3131
{"merc", 0, 0, 'm'},
32-
{"oldmerc", 0, 0, 'M'},
3332
{"utf8-sanitize", 0, 0, 'u'},
3433
{"cache", 1, 0, 'C'},
3534
{"username", 1, 0, 'U'},
@@ -128,7 +127,6 @@ namespace
128127
Obsolete options:\n\
129128
-u|--utf8-sanitize Repair bad UTF8 input data (present in planet\n\
130129
dumps prior to August 2007). Adds about 10% overhead.\n\
131-
-M|--oldmerc Store data in the legacy OSM mercator format\n\
132130
\n\
133131
Performance options:\n\
134132
-i|--tablespace-index The name of the PostgreSQL tablespace where\n\
@@ -326,9 +324,6 @@ options_t options_t::parse(int argc, char *argv[])
326324
case 'm':
327325
options.projection.reset(new reprojection(PROJ_SPHERE_MERC));
328326
break;
329-
case 'M':
330-
options.projection.reset(new reprojection(PROJ_MERC));
331-
break;
332327
case 'E':
333328
options.projection.reset(new reprojection(-atoi(optarg)));
334329
break;

reprojection.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ const struct Projection_Info Projection_Infos[] = {
3434
/*proj4text*/ "+init=epsg:4326",
3535
/*srs */ 4326,
3636
/*option */ "-l" ),
37-
/*PROJ_MERC*/ Projection_Info(
38-
/*descr */ "WGS84 Mercator",
39-
/*proj4text*/ "+proj=merc +datum=WGS84 +k=1/*0 +units=m +over +no_defs",
40-
/*srs */ 3395,
41-
/*option */ "-M" ),
4237
/*PROJ_SPHERE_MERC*/ Projection_Info(
4338
/*descr */ "Spherical Mercator",
4439
/*proj4text*/ "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs",

reprojection.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ struct Projection_Info {
1919
const char *option;
2020
};
2121

22-
enum Projection { PROJ_LATLONG = 0, PROJ_MERC, PROJ_SPHERE_MERC, PROJ_COUNT };
22+
enum Projection { PROJ_LATLONG = 0, PROJ_SPHERE_MERC, PROJ_COUNT };
2323

2424
struct reprojection : public boost::noncopyable
2525
{

tests/test-parse-options.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ int get_random_proj(std::vector<std::string>& args)
138138
switch(proj)
139139
{
140140
case PROJ_LATLONG:
141-
case PROJ_MERC:
142141
case PROJ_SPHERE_MERC:
143142
args.push_back(reprojection(proj).project_getprojinfo()->option);
144143
break;

0 commit comments

Comments
 (0)