[general]
name=SIRI CR
qgisMinimumVersion=3.16
qgisMaximumVersion=4.99
supportsQt6=True
description=Loads the Costa Rican cadastre WMS layers (SIRI / Registro Inmobiliario) in one click -no manual connection setup- identifies each parcel by clicking on the map or finds it by its property (finca) or survey plan (plano) number, saving it with ALL its attributes into a temporary layer. Works on QGIS 3 and QGIS 4. / Carga las capas WMS del catastro del SIRI de un solo clic y consulta cada predio con un clic en el mapa o por numero de finca o plano.
version=2.5
author=Carlo Soto Castro
email=carlo.soto.castro@gmail.com

about=Costa Rica only. This plugin adds a toolbar with three buttons. "Cargar capas" (Load layers) adds the cadastre WMS layers published by the Registro Inmobiliario through the national spatial data infrastructure (SNIT) straight into the project -Zona 1, Zona 2 and public roads- without going through the Data Source Manager, and it can also add any other WMS by pasting its URL: the plugin reads the GetCapabilities, lists the layers and lets you pick them. "Consultar predio" (Identify parcel) turns on a map tool: every click runs a GetFeatureInfo against the loaded layers, shows a summary of the parcel found, and saves it -geometry reprojected from the WMS layer CRS to the project CRS, plus every single attribute the server returned, unfiltered- into a temporary memory layer, along with five provenance fields (source layer, QGIS user, timestamp and click coordinates). "Buscar predio" (Find parcel) looks a parcel up by its finca number (with province) or its plano number through the search service used by the public SNIT viewer, and adds it to the same layer. Written to support forest project registration (RPF) at SINAC. EXTERNAL DEPENDENCY: it needs an internet connection and queries a third-party public service (siri.snitcr.go.cr and www.snitcr.go.cr, Registro Nacional de Costa Rica) that is not affiliated with this project; that service is often slow or intermittent, so the plugin retries before giving up. No other external dependency: it uses only PyQGIS and the Python standard library. ESPANOL: agrega una barra con tres botones. "Cargar capas" agrega al proyecto las capas WMS del catastro del SIRI sin pasar por el Administrador de fuentes de datos, y permite agregar cualquier otro WMS pegando su URL. "Consultar predio" guarda cada predio consultado con todos los campos del servidor integros en una capa temporal. "Buscar predio" lo encuentra por numero de finca o de plano. Requiere conexion a internet.

icon=icon.png
tags=wms,catastro,costa rica,siri,snit,registro inmobiliario,predios,forestal,sinac

changelog=2.5 - Buscar predio por numero de finca o de plano con el buscador del visor del SNIT, idea y primera version del ing. Jonathan Bustillos Arias. Compatibilidad con QGIS 4: si identify() devuelve resultados que PyQt6 no logra convertir (QgsFeatureStoreList), la consulta por clic pide el GetFeatureInfo en GeoJSON, con los mismos reintentos; se declaran supportsQt6 y qgisMaximumVersion=4.99.
    2.4 - Arregla un fallo introducido en la 2.3: leer_capabilities habia quedado llamando al parser viejo, ya borrado, asi que «Agregar otro WMS» reventaba con NameError. Ahora se verifica con flake8, pyflakes y bandit, los tres sin avisos.
    2.3 - El GetCapabilities se parsea con QXmlStreamReader (Qt) en vez de xml.etree, y se descarta el DOCTYPE: cierra los ataques de XML sobre respuestas de servidores remotos (XXE y expansion de entidades) sin agregar dependencias. Ademas arregla la compatibilidad con Qt6/QGIS 4: enums calificados y exec() en vez de exec_().
    2.2 - El plugin pasa a licencia GPLv2 o posterior (antes: derechos reservados), con el texto completo en LICENSE y cabecera en cada archivo; descripcion y about en ingles, como pide el repositorio oficial de QGIS.
    2.1 - Se declara qgisMinimumVersion=3.16, que es la real (se usa QgsBlockingNetworkRequest, de QGIS 3.6+); archivo LICENSE explicito; script empaquetar.sh que arma el ZIP instalable con el nombre de carpeta correcto.
    2.0 - Carga directa de las capas WMS del catastro (SIRI / Registro Inmobiliario del SNIT) desde el propio plugin, sin crear la conexion a mano; opcion de agregar cualquier otro WMS pegando su URL; barra de herramientas e icono propios; nombre corto (SIRI CR); la consulta ahora usa el CRS real de cada capa en vez de asumir EPSG:4326.
    1.0 - Version inicial: consulta por clic sobre capas WMS del SIRI ya cargadas en el proyecto.

tracker=https://github.com/csoto666/qgis-consulta-siri/issues
repository=https://github.com/csoto666/qgis-consulta-siri
homepage=https://github.com/csoto666/qgis-consulta-siri

category=Vector
experimental=False
deprecated=False
