Skip to content

ebrelsford/projestions

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

projestions

Map projection suggestions. projestions = projections + suggestions. Demo.

Provides a simple API for finding map projections appropriate for a particular area.

Data

The results of the API based on the EPSG's CRS data (v9.4) and its "area of use" data (v9.2.1). Both datasets are available to download on the EPSG site. You might be interested in their terms of use.

Prior art

Similar things have been done before:

API

Check out the demo to see it in action.

Endpoint

GET or POST to https://projest.io/ns/api/

Parameters

name value description
geom GeoJSON feature or feature collection (required) the feature(s) you want to find an appropriate projection for
geojson boolean (optional) true to return GeoJSON of areas of use, else JSON is returned, default false
max number (optional) maximum number of results to return, default 20
offset number (optional) number of results to skip, default 0
sort string (optional) how to sort results, hausdorff to sort by the Hausdorff distance or area to sort by the area of use's area, areadiff to sort by the absolute difference between the geometry in geojson and the area of use, default areadiff.
units string (optional) projection units to return, default all

Returns

An array of projections with areas of use overlapping with the given geom. If geojson is true, returns GeoJSON of the polygons of the areas of use.

License

GPLv3. See LICENSE.txt.

About

projection suggestions

Resources

License

Stars

Watchers

Forks

Packages

No packages published