REST service of coordinate transformation

This service allows you to apply different coordinate system and / or reference changes within the geographical area of Catalonia

URL: http://www.icc.cat/servGeoCalc/calculadores?

You can apply the change of reference system between ED50 and ETRS89 or WGS84, while values can be expressed in geographic coordinates, in UTM projection (zone 31 and N hemisphere) or pseudo-Mercator projection (in the case of the reference system WGS84, used by GoogleMaps).

Technical aspects of the service:

  • Access services via HTTP requests and JSON data interchange format. It is public.

  • Supported EPSG: 25831, 23031, 32631, 4258, 4230, 4326, 3857

Parameters (HTTP GET request)

  • inSR: EPSG coordinate of origin

  • outSR: EPSG coordinate of destination

  • x: UTMx or xcoordinate

  • y: UTMy or ycoordinate

  • jsonp: optional parameter to make Json calls between different domains. For requests outside www.icc.cat domain is necessary to use Jsonp to  avoid crossdomain problems between servers.

JSON Requests (inside www.icc.cat domain)

Response format (JSON): {"geometries":[{"x":"coordenada UTM X o longitud","y":"coordenada UTM Y o latitud"}]}

Request example (JSON):

http://www.icc.cat/servGeoCalc/calculadores?inSR=23031&outSR=4230&x=400000&y=4600000&format=json

Response example (JSON):

{"geometries":[{"x":"1.801101826","y":"41.544685636"}]}

JSONP Requests (outside www.icc.cat domain)

Response format (JSONP): delicious_callbacks[id]({"geometries":[{"x":"coordenada UTM X o longitud","y":"coordenada UTM Y o latitud"}]})

Request example (JSONP):

http://www.icc.cat/servGeoCalc/calculadores?inSR=23031&outSR=4230&x=400000&y=4600000&format=json&jsonp=delicious_callbacks[1387350666560]

Response example (JSONP):

delicious_callbacks[1387350666560]({"geometries":[{"x":"1.801101826","y":"41.544685636"}]})

Example of client application that uses this service with Jsonp.