12 auto csn = static_cast<unsigned>(lvcs.
get_cs_name());
14 double lat, lon, elev;
19 double lat_scale, lon_scale;
27 double lox, loy, theta;
46 auto name = static_cast<vpgl_lvcs::cs_names>(cs_name);
47 double lat, lon, elev, lat_scale, lon_scale;
55 auto geo_angle_unit = static_cast<vpgl_lvcs::AngUnits>(gaunit);
58 auto localXYZUnit = static_cast<vpgl_lvcs::LenUnits>(lunit);
59 double lox, loy, theta;
63 vpgl_lvcs temp(lat, lon, elev, name, lat_scale, lon_scale,
64 geo_angle_unit, localXYZUnit, lox, loy, theta);
69 std::cerr <<
"I/O ERROR: vpgl_lvcs::b_read(vsl_b_istream&)\n" 70 <<
" Unknown version number "<< ver <<
'\n';
71 is.
is().clear(std::ios::badbit);
85 if (!lvcs_sptr)
return;
A geographic coordinate system.
AngUnits geo_angle_unit() const
LenUnits local_length_unit() const
void vsl_print_summary(std::ostream &os, const vpgl_lvcs &c)
Print human readable summary of object to a stream.
std::istream & is() const
void get_scale(double &lat, double &lon) const
return the scale for lat lon and elevation.
void vsl_b_read(vsl_b_istream &is, vpgl_lvcs &lvcs)
Binary load lvcs from stream.
void get_origin(double &lat, double &lon, double &elev) const
return the origin of the local system.
void get_transform(double &lox, double &loy, double &theta) const
Return the compass alignment transform.
void vsl_b_write(vsl_b_ostream &os, vpgl_lvcs const &lvcs)
Binary save lvcs to stream.
cs_names get_cs_name() const
return the coordinate system.