Metadata-Version: 1.2
Name: pygcj
Version: 0.0.2
Summary: Transfrom coordinate between China GCJ02(colloquially Mars Coordinates) and WGS-84 with high precision
Home-page: https://github.com/vistawn/
Author: Jiang Yunpeng @vistawn
Author-email: vistawn@gmail.com
Maintainer: Jiang Yunpeng @vistawn
Maintainer-email: vistawn@gmail.com
License: Apache-2.0
Download-URL: https://github.com/vistawn//tarball/2020-06-12
Description: pygcj
        ===================
        
        A GCJ02 and WGS-84 coordinate converter.
        
        Increase the accuracy by control points
        
        Generate Control Points
        -----------------------
        
        Default gcp file’s grid interval is 1 degree. If you want generate new
        gcp file,please run:
        
        .. code:: shell
        
            python generate_gcp.py
        
        Transform between WGS84 and GCJ02
        ---------------------------------
        
        .. code:: python
        
            from pygcj.pygcj import GCJProj
            trans = GCJProj()
            # wgs84 to gcj
            gcj_lat, gcj_lon = trans.wgs_to_gcj(45.2,112.8)
        
            # gcj to wgs84
            wgs_lat, wgs_lon = trans.gcj_to_wgs(45.2,112.8)
        
            # gcj to wgs84 and specific threshold(default is 0.000001)
            wgs_lat, wgs_lon = trans.gcj_to_wgs(45.2,112.8,0.00000001)
        
        accuracy test (use default control points)
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        
        ::
        
            origional:
            distance mean: 347.554477357
            distance stdev: 164.494315519
        
            eviltransform:
            distance mean: 3.39331251552
            distance stdev: 2.6602095071
        
            pygcj.gcj_to_wgs():
            distance mean: 0.395794995772
            distance stdev: 0.571923075943
        
Platform: Windows
Platform: MacOS
Platform: Unix
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
