|
|
|
#include "modgmt_objects.h"
|
|
|
|
|
|
|
|
template<> const std::string ObjectGMTCoord::type="GMTCoord";
|
|
|
|
template<> const std::string ObjectGMTRegion::type="GMTRegion";
|
|
|
|
template<> const std::string ObjectGMTProjection::type="GMTProjection";
|
|
|
|
template<> const std::string ObjectGMTColor::type="GMTColor";
|
|
|
|
template<> const std::string ObjectGMTDash::type="GMTDash";
|
|
|
|
template<> const std::string ObjectGMTPen::type="GMTPen";
|
|
|
|
|
|
|
|
std::map<std::string,gmt_projection::projection> gmt_projection::projnames;
|
|
|
|
|
|
|
|
void gmt_projection::FillProjNames()
|
|
|
|
{
|
|
|
|
projnames["x"]=XY;
|
|
|
|
projnames["xy"]=XY;
|
|
|
|
projnames["decart"]=XY;
|
|
|
|
|
|
|
|
projnames["q"]=CYL_EQU;
|
|
|
|
projnames["cyl_equid"]=CYL_EQU;
|
|
|
|
projnames["cylindrical equidistant"]=CYL_EQU;
|
|
|
|
|
|
|
|
projnames["m"]=MERCATOR;
|
|
|
|
projnames["merc"]=MERCATOR;
|
|
|
|
projnames["mercator"]=MERCATOR;
|
|
|
|
|
|
|
|
projnames["t"]=TRANSMERCATOR;
|
|
|
|
projnames["tmerc"]=TRANSMERCATOR;
|
|
|
|
projnames["transverse mercator"]=TRANSMERCATOR;
|
|
|
|
|
|
|
|
projnames["o"]=OBLIQMERCATOR;
|
|
|
|
projnames["omerc"]=OBLIQMERCATOR;
|
|
|
|
projnames["oblique mercator"]=OBLIQMERCATOR;
|
|
|
|
|
|
|
|
projnames["c"]=CASSINI;
|
|
|
|
projnames["cassini"]=CASSINI;
|
|
|
|
|
|
|
|
projnames["y"]=CYL_EQA;
|
|
|
|
projnames["cyl_equala"]=CYL_EQA;
|
|
|
|
projnames["cylindrical equal-area"]=CYL_EQA;
|
|
|
|
projnames["cylindrical equalarea"]=CYL_EQA;
|
|
|
|
|
|
|
|
projnames["j"]=MILLER;
|
|
|
|
projnames["cyl_miller"]=MILLER;
|
|
|
|
projnames["miller"]=MILLER;
|
|
|
|
projnames["cylindrical miller"]=MILLER;
|
|
|
|
|
|
|
|
projnames["cyl_stere"]=CYL_STERE;
|
|
|
|
projnames["cylindrical stereographic"]=CYL_STERE;
|
|
|
|
}
|
|
|
|
|
|
|
|
const double gmt_projection::default_width=10.0;
|