pike.git / lib / modules / Geography.pmod / Position.pike

version» Context lines:

pike.git/lib/modules/Geography.pmod/Position.pike:361:    UTMN += 10000000.0; // 10000000 meter offset for southern hemisphere       return ({ UTME, UTMN });   }      //! Returns the current UTM coordinates position.   //! An example output is   //! "32T 442063.562 5247479.500"   //! where the parts are zone number + zone designator,   //! easting and northing. - string UTM() { -  return sprintf("%d%s %f %f", UTM_zone_number(), UTM_zone_designator(), + string UTM(int precision) { +  return sprintf("%d%s %."+precision+"f %."+precision+"f", +  UTM_zone_number(), UTM_zone_designator(),    @UTM_offset());   }      //! Sets the longitude and lattitude from the given   //! UTM coordinates.   void set_from_UTM(int zone_number, string zone_designator, float UTME, float UTMN) {       float ecc = eccentricity_squared();    float eccPrime = (ecc)/(1-ecc);