12 xml_element.
add_attribute(
"cs_name",
v.cs_name_strings[
v.get_cs_name() ]);
14 double lat, lon, elev;
15 v.get_origin(lat, lon, elev);
20 double lat_scale, lon_scale;
21 v.get_scale(lat_scale, lon_scale);
25 std::string len_u =
"meters", ang_u=
"degrees";
26 if (
v.local_length_unit() ==
v.FEET)
28 if (
v.geo_angle_unit() ==
v.RADIANS)
33 double lox, loy, theta;
34 v.get_transform(lox, loy, theta);
XML write a vpgl_lvcs Two functions which write a valid XML fragment to an ostream.
A geographic coordinate system.
void add_attribute(std::string attr_name, std::string value)
void x_write(std::ostream &ostr)
void x_write(std::ostream &os, vpgl_lvcs const &v, std::string element_name="vpgl_lvcs")
XML save vpgl_lvcs to stream.