source: subversion/applications/utils/export/osm2pgsql/reprojection.h @ 7141

Last change on this file since 7141 was 7141, checked in by martinvoosterhout, 12 years ago
Add support for a -Eproj option which allows users to use any epsg

projection that be used by proj4's +init=epsg:<num> format.

Should help all those people wanting to do maps in different projections.

File size: 579 bytes
Line 
1/* reprojection.h
2 *
3 * Convert OSM lattitude / longitude from degrees to mercator
4 * so that Mapnik does not have to project the data again
5 *
6 */
7
8#ifndef REPROJECTION_H
9#define REPROJECTION_H
10
11struct Projection_Info {
12  char *descr;
13  char *proj4text;
14  int srs;
15  char *option;
16};
17
18enum Projection { PROJ_LATLONG = 0, PROJ_MERC, PROJ_SPHERE_MERC,   PROJ_COUNT };
19void project_init(int);
20void project_exit(void);
21struct Projection_Info const* project_getprojinfo(void);
22void reproject(double *lat, double *lon);
23
24extern const struct Projection_Info Projection_Info[];
25
26#endif
Note: See TracBrowser for help on using the repository browser.