com.ontimize.util.gis.extension.ovc
Class WMSCatastroDataProvider

java.lang.Object
  extended by com.ontimize.util.gis.server.dataproviders.WMSDataProvider
      extended by com.ontimize.util.gis.extension.ovc.WMSCatastroDataProvider
All Implemented Interfaces:
ICatastroUtils, IWMSDataProvider, IDataProvider

public class WMSCatastroDataProvider
extends WMSDataProvider
implements ICatastroUtils


Field Summary
 
Fields inherited from class com.ontimize.util.gis.server.dataproviders.WMSDataProvider
entityName, exceptions, factory, firstTime, layers, transparent, wms, WMS_LAYER_NAME, WMS_SRS, WMS_URL, wmsLayersNames, wmsLayersString, wmsSRS, wmsURL
 
Fields inherited from interface com.ontimize.util.gis.extension.ovc.ICatastroUtils
CAD_NODE_BI, CAD_NODE_BI_DATA, CAD_NODE_BI_ID, CAD_NODE_BI_LIST, CAD_NODE_BI_TYPE, CAD_NODE_BICO, CAD_NODE_BQ, CAD_NODE_CADASTRAL_REFERENCE, CAD_NODE_CADREF_CAR, CAD_NODE_CADREF_CC1, CAD_NODE_CADREF_CC2, CAD_NODE_CADREF_PC1, CAD_NODE_CADREF_PC2, CAD_NODE_CCC, CAD_NODE_CMA, CAD_NODE_CONS, CAD_NODE_CONTROL, CAD_NODE_CPA, CAD_NODE_CPAJ, CAD_NODE_CPO, CAD_NODE_CPP, CAD_NODE_CSPR, CAD_NODE_CZC, CAD_NODE_DCC, CAD_NODE_DFCONS, CAD_NODE_DM, CAD_NODE_DOMICILIO_TRIBUTARIO, CAD_NODE_DP, CAD_NODE_DSPR, CAD_NODE_DT, CAD_NODE_ECO_ANTIGUEDAD, CAD_NODE_ECO_COEF_PARTICIPACION, CAD_NODE_ECO_SUPERFICIE, CAD_NODE_ECO_USO, CAD_NODE_ECONOMIC_DATA, CAD_NODE_ES, CAD_NODE_IP, CAD_NODE_KM, CAD_NODE_LCD, CAD_NODE_LCONS, CAD_NODE_LOCS, CAD_NODE_LOINT, CAD_NODE_LORS, CAD_NODE_LORUS, CAD_NODE_LOURB, CAD_NODE_LOUS, CAD_NODE_LSPR, CAD_NODE_MUN, CAD_NODE_MUN_CARTO, CAD_NODE_MUN_LIST, CAD_NODE_MUN_LOCAT, CAD_NODE_MUN_LOINE, CAD_NODE_MUN_MCODE, CAD_NODE_MUN_MEH_CODE, CAD_NODE_MUN_MEH_MUN_CODE, CAD_NODE_MUN_MEH_NAME, CAD_NODE_MUN_NUM, CAD_NODE_MUN_PCODE, CAD_NODE_MUN_QUERY, CAD_NODE_NB, CAD_NODE_NB_LIST, CAD_NODE_NB_NUM, CAD_NODE_NB_PARCELA, CAD_NODE_NB_QUERY, CAD_NODE_NB_VALUE, CAD_NODE_NPA, CAD_NODE_NUM_BI, CAD_NODE_NUM_CONSTRUCTIVE, CAD_NODE_NUM_CULTIVATION, CAD_NODE_PLP, CAD_NODE_PROV, CAD_NODE_PROV_CODE, CAD_NODE_PROV_LIST, CAD_NODE_PROV_NAME, CAD_NODE_PROV_NUM, CAD_NODE_PROV_QUERY, CAD_NODE_PT, CAD_NODE_PU, CAD_NODE_QUERY, CAD_NODE_SLP, CAD_NODE_SNP, CAD_NODE_SPR, CAD_NODE_SSP, CAD_NODE_ST, CAD_NODE_ST_DGC_CODE, CAD_NODE_ST_DGC_NAME, CAD_NODE_ST_ID, CAD_NODE_ST_LIST, CAD_NODE_ST_NUM, CAD_NODE_ST_QUERY, CAD_NODE_ST_TYPE, CAD_NODE_STL, CAD_NODE_TD, OPERATION_CR_FROM_LOCATION, OPERATION_DATA_FROM_CR, OPERATION_LOCATION_FROM_CR, OPERATION_MUNICIPALITIES_LIST, OPERATION_NUMBERS_LIST, OPERATION_PROVINCES_LIST, OPERATION_STREETS_LIST, RESULT_ADDRESS, RESULT_CADASTRAL_REFERENCE, RESULT_MUNICIPALITY, RESULT_PROVINCE, RESULT_SRS, RESULT_SURFACE, RESULT_TYPE, RESULT_X_COORD, RESULT_Y_COORD, URL_LOCATIONS, URL_PARAMETER_CADASTRAL_REFERENCE, URL_PARAMETER_MUNICIPALITY, URL_PARAMETER_NUMBER, URL_PARAMETER_PROVINCE, URL_PARAMETER_SRS, URL_PARAMETER_ST_NAME, URL_PARAMETER_ST_NOMVIA, URL_PARAMETER_ST_TYPE, URL_PARAMETER_X_COORD, URL_PARAMETER_Y_COORD, URL_STREETS
 
Fields inherited from interface com.ontimize.util.gis.server.dataproviders.IWMSDataProvider
WMS_DESCRIPTION, WMS_KEYWORDS, WMS_LAYERS, WMS_TITLE, WMS_TRANSPARENT_OPTION
 
Constructor Summary
WMSCatastroDataProvider()
           
WMSCatastroDataProvider(java.util.Hashtable parameters)
           
 
Method Summary
 com.ontimize.db.EntityResult getCadastralInfo(java.util.Hashtable parameters)
          Get the cadastral info obtained from the Catastro Virtual Office
 java.util.Hashtable getCadastralReference(double[] location, java.lang.String srs)
           
 com.ontimize.db.EntityResult getMunicipalities(java.util.Hashtable parameters)
          Gets the requested municipalities list from the Catastro Virtual Office
 com.ontimize.db.EntityResult getProvinceList()
          Gets the province list from the Catastro Virtual Office
 com.ontimize.db.EntityResult getReferenceLocation(java.util.Hashtable parameters)
          Get the x and y location for the given cadastral reference
 com.ontimize.db.EntityResult getRouteNumbers(java.util.Hashtable parameters)
          Gets the requested route number reference code if exists or a list of the nearest numbers obtained from the Catastro Virtual Office
 com.ontimize.db.EntityResult getRoutes(java.util.Hashtable parameters)
          Gets the requested routes list from the Catastro Virtual Office
 java.lang.String getStreetTypeCode(java.lang.String StreetTypeName)
          Get the route type code for the given route type name
 java.util.Vector getStreetTypes()
          Get a vector with the Catastro Virtual Office route type names
 
Methods inherited from class com.ontimize.util.gis.server.dataproviders.WMSDataProvider
createBuffer, getServerInfo, initProvider, parseURLWMSRequest, query
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WMSCatastroDataProvider

public WMSCatastroDataProvider()

WMSCatastroDataProvider

public WMSCatastroDataProvider(java.util.Hashtable parameters)
Method Detail

getCadastralInfo

public com.ontimize.db.EntityResult getCadastralInfo(java.util.Hashtable parameters)
Description copied from interface: ICatastroUtils
Get the cadastral info obtained from the Catastro Virtual Office

Specified by:
getCadastralInfo in interface ICatastroUtils
Parameters:
parameters - Hashtable with the required parameters:
- Provincia: province name
- Municipio: municipality name
- RC: cadastral reference
Returns:
EntityResult with the requested info

getCadastralReference

public java.util.Hashtable getCadastralReference(double[] location,
                                                 java.lang.String srs)
Specified by:
getCadastralReference in interface ICatastroUtils

getMunicipalities

public com.ontimize.db.EntityResult getMunicipalities(java.util.Hashtable parameters)
Description copied from interface: ICatastroUtils
Gets the requested municipalities list from the Catastro Virtual Office

Specified by:
getMunicipalities in interface ICatastroUtils
Parameters:
parameters - Hashtable with two required parameters:
- Provincia: province name
- Municipio: string for municipalities name search
Returns:
EntityResult with the given data:
- "nm": municipalities names
- "cp": province codes
- "cd": MEH delegation code
- "cmc": municipalities MEH code
- "carto": digital cartography type

getRouteNumbers

public com.ontimize.db.EntityResult getRouteNumbers(java.util.Hashtable parameters)
Description copied from interface: ICatastroUtils
Gets the requested route number reference code if exists or a list of the nearest numbers obtained from the Catastro Virtual Office

Specified by:
getRouteNumbers in interface ICatastroUtils
Parameters:
parameters - Hashtable with the required parameters:
- Provincia: province name
- Municipio: municipality name
- NomVia: route name
- TipoVia: route type code
- Number: requested number
Returns:
EntityResult with the given data:
- "pnp": number
- "pc1": cadastral reference first 7 digits
- "pc2": cadastral reference digits 8 to 14

getRoutes

public com.ontimize.db.EntityResult getRoutes(java.util.Hashtable parameters)
Description copied from interface: ICatastroUtils
Gets the requested routes list from the Catastro Virtual Office

Specified by:
getRoutes in interface ICatastroUtils
Parameters:
parameters - Hashtable with the required parameters:
- Provincia: province name
- Municipio: municipality name
- NombreVia: string for routes name search
- TipoVia: route type code (optional)
Returns:
EntityResult with the given data:
- "nv": route name
- "cv": route code
- "tv": route type code

getProvinceList

public com.ontimize.db.EntityResult getProvinceList()
Description copied from interface: ICatastroUtils
Gets the province list from the Catastro Virtual Office

Specified by:
getProvinceList in interface ICatastroUtils
Returns:
EntityResult with the province codes stored as "cpine" and the province names as "np"

getStreetTypeCode

public java.lang.String getStreetTypeCode(java.lang.String StreetTypeName)
Description copied from interface: ICatastroUtils
Get the route type code for the given route type name

Specified by:
getStreetTypeCode in interface ICatastroUtils
Parameters:
StreetTypeName - Route type name
Returns:
Route type code

getStreetTypes

public java.util.Vector getStreetTypes()
Description copied from interface: ICatastroUtils
Get a vector with the Catastro Virtual Office route type names

Specified by:
getStreetTypes in interface ICatastroUtils
Returns:
Route type names vector

getReferenceLocation

public com.ontimize.db.EntityResult getReferenceLocation(java.util.Hashtable parameters)
Description copied from interface: ICatastroUtils
Get the x and y location for the given cadastral reference

Specified by:
getReferenceLocation in interface ICatastroUtils
Parameters:
parameters - Hashtable with the required parameters:
- Provincia: province name
- Municipio: municipality name
- SRS: coordinate reference system EPSG code
- RC: cadastral reference
Returns:
EntityResult with the given data:
- "address": property address
- "x_coordinate": x axis coordinate
- "y_coordinate": y axis coordinate