Proj4js Coordinate transformations in the browser

Slides:



Advertisements
Similar presentations
Polar Image Mapping - Lessons Learned Shinobu Kawahito Remote Sensing Technology Center of Japan (RESTEC) in support of Japan Aero-exploration Agency (JAXA)
Advertisements

1 Spatial Data What is Geographic Spatial Data? What are its Properties TWiST.
Portraying Earth Data types File types
Introducing Mapbuilder Michael Adair Natural Resources Canada.
Map Projections & Coordinate Systems
Applied Cartography and Introduction to GIS GEOG 2017 EL
Waldo Tobler’s Classic Paper, 1979
What is GIS A geographic information system (GIS) is a system designed to capture, store, manipulate, analyze, manage, and present all types of geographical.
Modern Navigation Thomas Herring
Coordinate systems.
Spatial Analysis University of Maryland, College Park 2013.
Introduction to GIS.
Map Projection & Coordinate Systems
Geographic Information Systems (GIS) Data Marcel Fortin Geographic Information Systems (GIS) and Map Librarian Map and Data Library December 7, 2009.
Welcome to Mapping Tom Sellsted – City of Yakima, Washington Vladimir Strinski – Hitech Systems.
GPS for Patrollers by Monica Spicker Mt. Spokane Ski Patrol All figures are copyrighted and used with the kind permission of Dr. Peter H. Dana, The Geographer’s.
The graticule is made up of vertical lines, called lines of longitude, and horizontal lines, called lines of latitude. Because the earth is spherical,
Basic Coordinate Systems Grid Systems RG 620 May 09, 2013 Institute of Space Technology, Karachi RG 620 May 09, 2013 Institute of Space Technology, Karachi.
GIS technologies and Web Mapping Services
September 18-19, 2006 – Denver, Colorado Sponsored by the U.S. Department of Housing and Urban Development Using Geographic Information Systems (GIS) as.
Spatial data can be described according to: entity distinct object (river) attribute characteristic of entity (discharge) relationship linkages amongst.
Amanda Henley GIS Librarian Davis Library Reference September 2006
Karl Hennermann School of Environment and Development Session 2: What you absolutely need to know about spatial data Geographic Information Systems.
Mapping and Projections Web resources: Geographer’s Craft, Department of Geography, University of Colorado at Boulder - particularly Peter H. Dana’s part.
Spatial Data Integration Deana D. Pennington, PhD University of New Mexico.
GEOREFERENCING By Okan Fıstıkoğlu. GEOGRAPHIC COORDINATE SYSTEMS Geographic Coordinate System (GCS) uses a three dimensional spherical surface to define.
The OpenGIS Consortium Geog 516 Presentation #2 Rueben Schulz March 2004.
Shortest Path Navigation Application on GIS Supervisor: Dr. Damitha Karunaratne Thilani Imalka 2007/MCS/023.
GEOG 2007A An Introduction to Geographic Information SystemsFall, 2004 C. Earl A model is a ‘synthesis of data’ + information about how the data interact.
Map Projections RG 620 Week 5 May 08, 2013 Institute of Space Technology, Karachi RG 620 Week 5 May 08, 2013 Institute of Space Technology, Karachi.
Map Basics, partII GEOG 370 Christine Erlien, Instructor.
Map Basics Lecture #3, Intro to GIS spring Topics Map definitions Types of maps Map projections Geodetic Datums Coordinate Systems.
John Pickford IBM H11 Wednesday, October 4, :30. – 14:30. Platform: Informix Practical Applications of IDS Extensibility (Part 2 of 2)
A Quick Introduction to GIS
INTRO TO SPATIAL DATA ANALYSIS JOU-1526 Computer Assisted Reporting.
Copyright © 2000–2004 ESRI. All rights reserved. Introduction to ArcGIS I Working with georeferenced data.
1 Practical Vector GIS Globe to map 2 The where is it… How do we locate Syracuse in space on the earth’s surface? On a FLAT surface?
Map projections and datums
Introduction to Geographic Information Systems
Map Projections Goal: translate places on the Earth (3D) to Cartesian coordinates (2D)
Map Projections.
Datum and Projections.
The Earth is Round: Mapping GPS Data with a GIS Carla McAuliffe, Ph. D. DataTools 2008 Program.
Topic 10- GIS layers to web
ST236 Site Calibrations with Trimble GNSS
Basic Coordinate Systems Grid System RG 620 May 23, 2014 Institute of Space Technology, Karachi Grid System RG 620 May 23, 2014 Institute of Space Technology,
Deconstructing Spatial Reference: What Every GIS User Needs to Know Paul Trevillion, Esri.
What is GIS? “A powerful set of tools for collecting, storing, retrieving, transforming and displaying spatial data”
CARTOGRAPHY  The creation of maps including projection and design.
Coordinate Reference Systems Jim Graham & Alex Daniels Colorado State University Warner College of Natural Resources.
Chapter 3- Coordinate systems A coordinate system is a grid used to identify locations on a page or screen that are equivalent to grid locations on the.
Today: Cartographic Basics –Map scale, datums, projections, coordinate systems Goals of Map Use Raster and Vector Lab Two – Google Earth / El Paso County.
Review of Projections and Coordinate Systems
GIS Data Shape files, Rasters, Coordinate Systems, ArcGIS.
Map Projections RG 620 May 16, 2014 Institute of Space Technology, Karachi RG 620 May 16, 2014 Institute of Space Technology, Karachi.
Spatial Data 1-Introduction to GIS 5/9/2018 © J.M. Piwowar
Spatial Referencing.
What is GIS? a system of hardware, software, and procedures designed to support the capture, management, manipulation, analysis, modeling, and display.
Georeferencing Ming-Chun Lee.
COORDINATE SYSTEMS AND MAP PROJECTIONS
Today: Cartographic Basics Virtual Globes Google Earth demo (at PCs)
Intro to Virtual and Web Mapping
A guide to coordinate systems, datums, projections, and geoids.
Coordinate Reference Systems
Geography 413/613 Lecturer: John Masich
Understanding Coordinates Ellipsoids, Geoids, Datums and Projections
ECU103 Geography for Schools
A guide to coordinate systems, datums, projections, and geoids.
Map Projections Displaying the earth on 2 dimensional maps
A brief introduction to map projections By Mark VanderVen
Presentation transcript:

Proj4js Coordinate transformations in the browser Michael Adair DM Solutions Group

Proj4js A JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations

The problem to solve representing 3D information in a 2D medium Same issue for paper maps and web maps on computer screen. Mathematics defines: Coordinate Reference Systems (CRS)

Coordinate Reference Systems (CRS) consist of a map projection + datum projections define 3D surface to 2D plane transformation datums define the size and shape of the earth geographic data is collected/stored using any one CRS

Map Projections ‘project’ a 3D surface to 2D Applicable for defined geographic areas attempt to minimize distortions in area, distance, scale, etc.

Datums Datums define the size and shape of the earth The earth is not a sphere, almost an ellipsoid

Examples

Examples

Examples

Examples

Back to the problem A map can only use one CRS Need to combine data stored in different CRS’s transformation is required between coordinate systems

Solutions for web mapping Vector data consists of a series of points representing points, line and polygon geometries (along with attributes) Coordinates in various CRS On the server side: PROJ.4, CS-MAP, GeoTools Returns a raster already transformed (in general) Raster images must be processed on the server Proj4js is for points, not rasters It is desirable to manipulate individual features in the browser

Solutions for web mapping convert between CRS in the Client (web browser) with Proj4js! Allows client to maintain individual features for selection, highlighting, etc.

About Proj4js A JavaScript library Port of PROJ.4 and GCTPC (C code) ~50k compressed; less if not all projections needed Includes some datum transformations Dynamic loading of CRS parameters (or not) Dynamic loading of projection code (or not) Easy to use with OpenLayers

Project infrastructure Originally developed in MapBuilder Now part of the OSGeo MetaCRS project http://wiki.osgeo.org/wiki/MetaCRS Wiki and Trac http://trac.osgeo.org/proj4js/ SVN: http://svn.osgeo.org/metacrs/proj4js/ Mailing lists: http://lists.osgeo.org/mailman/listinfo/MetaCRS

How to use it <script src="lib/proj4js-combined.js"></script> <script src="lib/defs/EPSG42304.js"></script > … var source = new Proj4js.Proj(‘EPSG:4236’); var dest = new Proj4js.Proj(‘EPSG:42304’); var p = new Proj4js.Point(-76.0,45.0); Proj4js.transform(source, dest, p); …. p.x and p.y are now EPSG:42304 easting and northing in meters

Demo http://localhost:8080/mapbuilder/examples/projDemo/index.html http://localhost/oltrunk/examples/graticule.html http://localhost/proj4js/test

Demo (2) Equal area maps: http://www.equal-area-maps.com/mollweide.php KML: http://bbs.keyhole.com/ubb/download.php?Number=35858

Thanks for your interest! Questions? Thanks for your interest! http://trac.osgeo.org/proj4js/ http://proj4js.org/ Mike Adair madair@dmsolutions.ca with graphics from Peter H. Dana, The Geographer's Craft Project, Department of Geography, The University of Colorado at Boulder http://www.colorado.edu/geography/gcraft/notes/mapproj/mapproj.html