Files
egutierrez 47fac22230 chore: auto-commit (799 archivos)
- .claude/CLAUDE.md
- .claude/commands/subagentes.md
- .claude/rules/INDEX.md
- .mcp.json
- bash/functions/cybersecurity/analyze_dns.md
- bash/functions/cybersecurity/audit_http_headers.md
- bash/functions/cybersecurity/audit_ssh_config.md
- bash/functions/cybersecurity/check_firewall.md
- bash/functions/cybersecurity/detect_suspicious_users.md
- bash/functions/cybersecurity/encrypt_file.md
- ...

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-14 00:28:20 +02:00

1.6 KiB

name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, params, output, tested, tests, test_file_path, file_path, source_repo, source_license, source_file
name kind lang domain version purity signature description tags uses_functions uses_types returns returns_optional error_type imports params output tested tests test_file_path file_path source_repo source_license source_file
load_boundary_gdf function py geo 1.0.0 impure def load_boundary_gdf(path: str | Path, crs: str = 'EPSG:4326') -> GeoDataFrame Lee un GeoJSON con geopandas y normaliza el CRS. Si el archivo no tiene CRS lo asigna; si ya tiene CRS lo reproyecta al solicitado.
geo
geojson
geopandas
crs
boundary
io
pendiente-usar
false error_go_core
geopandas
pathlib
name desc
path Ruta al archivo GeoJSON.
name desc
crs CRS destino en formato EPSG. Default EPSG:4326 (WGS84).
GeoDataFrame con el CRS solicitado. Cada fila es una feature del GeoJSON. true
retorna GeoDataFrame con CRS EPSG:4326
archivo inexistente lanza FileNotFoundError
python/functions/geo/tests/test_load_boundary_gdf.py python/functions/geo/load_boundary_gdf.py internal:footprint_aurgi internal-aurgi ponderacion_isochronas/src/recomendador_centros.py:199

Ejemplo

from geo.load_boundary_gdf import load_boundary_gdf

gdf = load_boundary_gdf("boundary.geojson", crs="EPSG:4326")
print(gdf.crs)      # EPSG:4326
print(gdf.shape)    # (n_features, n_columns)

Notas

Requiere geopandas. Si el archivo ya tiene CRS se llama to_crs; si no tiene CRS se llama set_crs para evitar advertencias de geopandas. Lanza FileNotFoundError antes de llamar a geopandas si el archivo no existe.