47fac22230
- .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>
1.6 KiB
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. |
|
false | error_go_core |
|
|
GeoDataFrame con el CRS solicitado. Cada fila es una feature del GeoJSON. | true |
|
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.