Giter Site home page Giter Site logo

coordinate-converter's Introduction

Coordinate Converter

Coordinate Converter is used to convert coordinates from a JSON http response. Specfically, this program is used at OSU with ARCGIS to convert coordinates to latitude and longitude.

Coordinate System

This program is meant to convert coordinates for locations at Oregon State University. As such, the coordinate projections we are accepting are either:

NAD_1983_HARN_StatePlane_Oregon_North_FIPS_3601_Feet_Intl WKID: 2913 Authority: EPSG

or

WGS_1984_Web_Mercator_Auxiliary_Sphere WKID: 3857 Authority: EPSG

Accepting both coordinate types is a temporary feature that will soon be deprecated after all coordinates given from ARCGIS are NAD_1983 (WKID 2913).

All coordinates are converted to the WGS84 projection.

Dependencies

Usage

Run It Locally

This program requires CS2CS and Golang to run locally.

go install
# URL of ARCGIS Json endpoint. Required
URL="www.example.com/arcgisjsonendpoint"

# Path to json output file. If no file path is provided, path will be $PWD/converted-coordinates.json
FILEPATH="/path/to/desired/output.json"
coordinate-converter -u "$URL" [-f "$FILEPATH"]

Run It in Docker

Included is a docker-compose file that starts containers for CS2CS and Golang to build the executable. A file called converted-coordinates.json will be created in $PWD when running this command:

export URL='www.example.com/arcgisjsonendpoint'
docker-compose up --build

coordinate-converter's People

Contributors

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