GithubHelp home page GithubHelp logo

jeaken / geotrans Goto Github PK

View Code? Open in Web Editor NEW

This project forked from leopold2019/geotrans

0.0 2.0 0.0 29 KB

Transform WKT Format(linestring/multilinestring/polygon) from 3857 to GCJ-02/BD-09

C# 100.00%

geotrans's Introduction

geotrans

一、What can do?

1.将3857坐标的wkt格式的polygon/multilinestring/linestring转为gcj-02的geojson格式的字符串

2.将3857坐标的wkt格式的polygon/multilinestring/linestring转为bd-09的geojson格式的字符串

二、How to use?

  1. CoordsTrans.Trans_3857toGCJ02(string WKT);

  2. CoordsTrans.Trans_3857toBD09(string WKT);

1)Parameter WKT:wkt format(polygon/multilinestring/linestring)

exmaple:WKT="LINESTRING(13746967.180598299950361 5125687.142056070268154,13746967.372486900538206 5125687.087575890123844)";

2)Return:geojson(string)

example:{ "type": "MultiLineString", "coordinates": [ [ [ 101.859862859712493, 36.523079718151706 ], [ 101.859456035152945, 36.523369313600973 ] ] ] }; { "type": "MultiLineString", "coordinates": [ [ [ 101.858121153728945, 36.523341793361269 ], [ 101.857713408838165, 36.52363062430571 ] ] ] };

三、Note: 相关依赖:GDAL 可参见该博客进行GDAL在vs2017中的配置 https://blog.csdn.net/xlp789/article/details/89922762

四、最近更新:

将常用的投影坐标系统和地理坐标系统封装到epsg类中,需要用到的时候可以直接引用。

geotrans's People

Contributors

leopold2019 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.