Beispiel #1
0
 def LL2UTM(self, outfile="tmp.xyz", LatLon=False):
     def converter(xyz):
         if(LatLon==True): Zone, Easting, Northing = libUTM.LLtoUTM(23,xyz[0],xyz[1])
         else: Zone, Easting, Northing = libUTM.LLtoUTM(23,xyz[1],xyz[0])
         return Easting, Northing, xyz[2]
     output = libIO.write(outfile)
     [output.a([converter(xyz) for xyz in XYZ]) for XYZ in self.input.a()]
     output.close()
Beispiel #2
0
    def LL2UTM(self, outfile="tmp.xyz", LatLon=False):
        def converter(xyz):
            if (LatLon == True):
                Zone, Easting, Northing = libUTM.LLtoUTM(23, xyz[0], xyz[1])
            else:
                Zone, Easting, Northing = libUTM.LLtoUTM(23, xyz[1], xyz[0])
            return Easting, Northing, xyz[2]

        output = libIO.write(outfile)
        [output.a([converter(xyz) for xyz in XYZ]) for XYZ in self.input.a()]
        output.close()
Beispiel #3
0
 def replace(self, outfile, new_delimiter=" "):
     output = libIO.write(outfile, new_delimiter)
     [output.a(XYZ) for XYZ in self.input.a()]
     output.close()
Beispiel #4
0
 def replace(self, outfile, new_delimiter=" "):
     output = libIO.write(outfile, new_delimiter)
     [output.a(XYZ) for XYZ in self.input.a()]
     output.close()