getCOORD: Interface to query Consulta_CPMRC

Description Usage Arguments Value Author(s) References Examples

Description

Returns the coordinate of a state in a reference system, given the Province, Municipality and Cadastral Reference of the state.

Usage

1
getCOOR(RC, SRS='', Province='', Municipality='')

Arguments

RC

Cadastral reference of the state.

SRS

The reference system desired for the coordinates, if it is missed, the returned coordinates will be given in the system reference in which it was stored. A list of all the possible references system is given in References.

Province

Province of the state. It is not case sensitive.

Municipality

Municipality of the state. It is not case sensitive.

Value

A list consisting of two numeric values with the coordinates (latitude,longitude) and the reference system in which they are expressed.

Author(s)

Angel Delgado Panadero.

References

http://ovc.catastro.meh.es/ovcservweb/OVCSWLocalizacionRC/OVCCoordenadas.asmx?op=Consulta_CPMRC

Examples

1
2
3
4
5
6
7
# using all the arguments
coordinates <- getCOOR('13077A01800039','EPSG:4230','CIUDAD REAL', 'SANTA CRUZ DE MUDELA')
print(coordinates)    

# only the cadastral reference
coordinates <- getCOOR('9872023VH5797S')
print(coordinates) 

DelgadoPanadero/CatastRo documentation built on May 23, 2019, 10:31 p.m.