GithubHelp home page GithubHelp logo

longyangzz / gdal2tiles Goto Github PK

View Code? Open in Web Editor NEW

This project forked from erik-yim/gdal2tiles

0.0 1.0 0.0 61.56 MB

gdal中python版gdal2tiles翻译为java版本,准备朝着MapTiler开发

Java 99.94% Batchfile 0.06%

gdal2tiles's Introduction

代码组成

有两个项目

  • gdal2tile-core(真正的java重写版本)
  • gdal2tile-utfgrid(不完整)

gdal2tiles

将gdal中python脚本gdal2tiles.py 用java重写 原来gdal2tiles.py支持gdal本身支持的栅格格式,我这边只支持GeoPDF(ArcGIS导出的),如果要支持其他格式,修改读取栅格逻辑部分。 这个版本的支持参考系统为wgs84和mercator,也可以忽略参考系统,单纯切片。通过-profile 参数来设置。

生wgs84切片:

-profile geodetic E:\date\pdf\84.pdf E:\date\tiles

生成mercator切片:

-profile mercator E:\date\pdf\mercator.pdf E:\date\tiles

生成不带参考系统的切片:

-profile raster E:\date\pdf\mercator.pdf E:\date\tiles <br>
-profile raster E:\date\pdf\84.pdf E:\date\tiles

上面注释可忽略

代码里面有两个版本的gdal

  • 其中1.x版本的,通过libs方式,增加可以直接使用
  • 其中2.x版本的,不能通过libs方式加载,只能拷贝到java工程的根目录(不知道为什么,有知道的解决一下)

效果如下

界面截图 切片截图

gdal2tiles's People

Contributors

polixiaohai avatar

Watchers

 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.