PROJECTION UTILITY MJ

Have you ever had the need for a tool that is able to obtain

Well, we had — That's why we built this tool to help in the described circumstances.

Feel free to use this service, but be aware that we cannot give any guarantees whatsoever.

Example Application

Explore our example application combining the functions provided by Projection Utility

Usage

Show this manual

Parameters

mode
(mandatory, fixed, case-insensitive) manpage
errorformat
(optional) the return format in case of an error. Can be either html (the default) or json.
If errorformat is json, we return a JSON-object with a member error, that has a member msg which contains the readable error message.

Example

http://webmapcenter.de/projection-utility/index.php?mode=manpage

Obtain a BoundingBox for a given SRID

Parameters

mode
(mandatory, fixed, case-insensitive) getbbox
srs_num
(mandatory) The number after "EPSG:" in an EPSG-key. Maximum length is 6 digits. Example: 31467
format
(optional) Outputformat of the response. Can be either json (the default) or jsonp. If the format is jsonp, you should include a parameter varname, see below.
varname
(optional) Only relevant if parameter format is jsonp. The name of the variable we assign the output to. Can only contain the characters from a-z and those from A-Z. Note: We know that this covers only a subset of valid JavaScript identifiers.
funcname
(optional) Only relevant if parameter format is jsonp. The name of the JavaScript method or function to call. Must start with a character from a-z or from A-Z or the underscore (_), can include characters a-z, A-Z, the underscore (_) and numbers from 0-9 for the following chars. You are allowed to call methods of objects like my_object.my_method
errorformat
(optional) the return format in case of an error. Can be either html (the default) or json.
If errorformat is json, we return a JSON-object with a member error, that has a member msg which contains the readable error message.

Output of a valid call

We return a GeoJSON (http://geojson.org) FeatureCollection either as plain object or stored in a JavaScript-variable (see parameters above).

The FeatureCollection always contains two features: The first represents an appropriate boundingbox in WGS84 (lon/lat, EPSG:4326). The second feature represents the same bounding box in the given SRID, i.e. the coordinates are projected.

Example

http://webmapcenter.de/projection-utility/index.php?mode=getbbox&srs_num=31467

Obtain an appropriate SRID for a given Lon/Lat coordinate pair

Parameters

mode
(mandatory, fixed, case-insensitive) getsrids
lon
(mandatory) The longitude of the point you search appropriate SRIDs for, e.g. 8
lat
(mandatory) The latitude of the point you search appropriate SRIDs for, e.g. 50
max_world_coverage
(optional, default 100.0) Filters the result by only including SRIDs whose BoundingBox is smaller than given percentage of the worlds area, e.g. 50.0
format
(optional) Outputformat of the response. Can be either json (the default) or jsonp. If the format is jsonp, you should include a parameter varname, see below.
varname
(optional) Only relevant if the parameter format is jsonp. The name of the variable we assign the output to. Can only contain the characters from a-z and those from A-Z. Note: We know that this covers only a subset of valid JavaScript identifiers.
funcname
(optional) Only relevant if parameter format is jsonp. The name of the JavaScript method or function to call. Must start with a character from a-z or from A-Z or the underscore (_), can include characters a-z, A-Z, the underscore (_) and numbers from 0-9 for the following chars. You are allowed to call methods of objects like my_object.my_method
errorformat
(optional) the return format in case of an error. Can be either html (the default) or json.
If errorformat is json, we return a JSON-object with a member error, that has a member msg which contains the readable error message.

Output of a valid call

We return a JSON (http://json.org) object either as plain object or stored in a JavaScript-variable (see parameters above).

The returned object has a member srids which holds an array of EPSG-codes.

Example

http://webmapcenter.de/projection-utility/index.php?mode=getsrids&lon=7&lat=50

Credits

The site http://spatialreference.org is used extensively to dynamically build up this tool's database. Thanks go to the creators of spatialreference.org for building such a wonderfull resource.

This site is provided by terrestris GmbH & Co. KG, Bonn, Germany. Idea and implementation by Christian Mayer and Marc Jansen.

If you are interested in the source of this tool, you are heavily encouraged to contact us.