예제 #1
0
    def __init__(
        self,
        ellipsoidCode="wgs84",
        axesOri="ne",
        bearingOri="right-handed",
        name="",
        description="",
        proj4String="",
        distScale=1.0,
    ):
        """
        ellipsoidCode: code of ellipsoid from gizela.util.Ellipsoid class
        axesOri: orientation of x and y axis
        bearingOri: orientation of bearings right-handed/left-handed
        name: short name of local system
        description: longer description of system
        proj4String: string of parameters for pyproj.Proj class
                     for projection from global to local system
        distScale: scale factor for distance reduction
        """

        AxesOrientation.__init__(self, axesOri=axesOri, bearingOri=bearingOri)
        CoordSystemGlobal.__init__(self, ellipsoidCode=ellipsoidCode, name=name, description=description)

        self.name = name
        self.description = description
        self.proj4String = proj4String
        self.distScale = distScale
예제 #2
0
    def __init__(self,
                 ellipsoidCode="wgs84",
                 lat=0,
                 lon=0,
                 height=0,
                 x=0,
                 y=0,
                 z=0,
                 axesOri="ne",
                 bearingOri="right-handed",
                 name="",
                 description=""):
        """
        ellipsoidCode: code of ellipsoid from gizela.util.Ellipsoid class
        lat, lon, height: latitude, longitude and ellipsoidal height of
                          central point of E3 local coordinate system
                          angles are in radians
        x, y, z: coordinates in E3 of central point
        axesOri: orientation of x and y axis
        bearingOri: orientation of bearings right-handed/left-handed
        name: short name of local system
        description: longer description of system
        """

        AxesOrientation.__init__(self, axesOri=axesOri,
                                       bearingOri=bearingOri)
        CoordSystemGlobal.__init__(self, ellipsoidCode=ellipsoidCode,
                                   name=name, description=description)

        self.centralPointGeo=PointGeodetic(id="", lat=lat, lon=lon,
                                           height=height)
        self.centralPointLoc=PointCart(id="", x=x, y=y, z=z)
예제 #3
0
    def __str__(self):
        str = ["Name: %s" % self.name]
        str.append(AxesOrientation.__str__(self))
        str.append("Ellipsoid: %s" % self.ellipsoid)
        str.append("Description:%s" % self.description)
        str.append("Proj4String:%s" % self.proj4String)

        return "\n".join(str)
예제 #4
0
    def __str__(self):
        str = ["Name: %s" % self.name]
        str.append(AxesOrientation.__str__(self))
        str.append("Ellipsoid: %s" % self.ellipsoid)
        str.append("Central point geographic:%s" % self.centralPointGeo)
        str.append("Central point local:%s" % self.centralPointLoc)
        str.append("Description:%s" % self.description)

        return "\n".join(str)