Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vis4/as3proj
ActionScript port of Proj.4 library
https://github.com/vis4/as3proj
Last synced: 3 months ago
JSON representation
ActionScript port of Proj.4 library
- Host: GitHub
- URL: https://github.com/vis4/as3proj
- Owner: vis4
- Created: 2011-08-01T19:26:47.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-08-01T19:54:22.000Z (over 13 years ago)
- Last Synced: 2024-07-29T01:21:57.758Z (3 months ago)
- Language: ActionScript
- Homepage:
- Size: 135 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
- awesome-actionscript-sorted - as3proj - ActionScript port of Proj.4 library (Unsorted / Other API)
README
as3proj
=======![screenshot of rendered maps](http://vis4.net/blog/wp-content/uploads/2010/04/as3proj1.png)
as3proj is a collection of map projection classes which you can use to convert geographical coodinates (pairs of latitude and longitude values) into screen coordinates. It is a port from the Java Map Projection Library[1] by Jerry Huxtable, which is itself a port from the famous PROJ.4 library[2].
1 http://www.jhlabs.com/java/maps/proj/
2 http://trac.osgeo.org/proj/### Usage example
var lat:Number,
lng:Number,
proj:Projection,
p:Point;
lat = 40.2302; // degrees
lng = 24.32434; // degrees
proj = new RobinsonProjection();
proj.initialize();
p = proj.project(lat, lng, new Point());// p contains converted values in metres