Giter Site home page Giter Site logo

jmap-tool's Introduction

jmap-tool

A very simple tool that uses JMapProjLib to create map of a chosen projection given an equirectangular map as input.

Usage:

JMapTool [-tv] projection-name in-eqrect-image out-image
    -t Test each point by projecting it and comparing.
    -v Verbose. Show exterme map points and statistics.

Examples:

Use the Equal Earth projection to create "/tmp/equalearth.jpg" based on "images/Equirectangular_projection_SW-cropped.jpg" (adjust the classpath as need be):

java -cp bin:JMapProjLib/dist/JMapProjLib.jar org.selliott.jmaptool.JMapTool -tv equalearth images/Equirectangular_projection_SW-cropped.jpg /tmp/equalearth.jpg

Output:

Extreme points (lot, lat -> x, y):
-3.1415926535897930, -1.5707963267948966 -> -1.6035886482840516, -1.3173627591574133
 0.0000000000000000, -1.5707963267948966 ->  0.0000000000000000, -1.3173627591574133
 3.1415926535897930, -1.5707963267948966 ->  1.6035886482840516, -1.3173627591574133
-3.1415926535897930,  0.0000000000000000 -> -2.7066299836960748,  0.0000000000000000
 0.0000000000000000,  0.0000000000000000 ->  0.0000000000000000,  0.0000000000000000
 3.1415926535897930,  0.0000000000000000 ->  2.7066299836960748,  0.0000000000000000
-3.1415926535897930,  1.5707963267948966 -> -1.6035886482840516,  1.3173627591574133
 0.0000000000000000,  1.5707963267948966 ->  0.0000000000000000,  1.3173627591574133
 3.1415926535897930,  1.5707963267948966 ->  1.6035886482840516,  1.3173627591574133

Width     :  5.4132599673921495
Height    :  2.6347255183148266
Ratio     :  2.0545821300028537
Pole/Eq   :  0.5924668898015567
Asymmetry :  0.0000000000000000

Converted "images/Equirectangular_projection_SW-cropped.jpg" to "/tmp/equalearth.jpg" in 1940 millis.

The "patches" directory contains patches for "JMapProjLib" that may be helpful.

Image "images/Equirectangular_projection_SW-cropped.jpg" is based on the image from Wikipedia page "Equirectangular projection". The image was uploaded on 22:26, 15 August 2011 by Daniel R. Strebe. The license is CC BY-SA 3.0, which can be found here: https://creativecommons.org/licenses/by-sa/3.0/ The original image was cropped slightly to remove a border, and resized slightly to make it so that it has precisely a 2 (width) to 1 (height) ratio.

jmap-tool's People

Contributors

selliott512 avatar

Watchers

 avatar  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.