Skip to content
/ as3proj Public
forked from vis4/as3proj

ActionScript port of Proj.4 library

Notifications You must be signed in to change notification settings

omoa/as3proj

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

as3proj

screenshot of rendered maps

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

About

ActionScript port of Proj.4 library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • ActionScript 100.0%