-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathes_ar.py
More file actions
56 lines (48 loc) · 1.92 KB
/
es_ar.py
File metadata and controls
56 lines (48 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import pandas as pd
from .es import ESBaseConverter
class ARConverter(ESBaseConverter):
# https://idearagon.aragon.es/descargas
# These files can be annoying to download (web server failure, no http-range support for continuation)
# Alternative is to download the files by municipality, check the atom.xml
sources = {
"https://icearagon.aragon.es/datosdescarga/descarga.php?file=/CartoTema/sigpac/rec22_sigpac.shp.zip": "rec22_sigpac.shp.zip",
"https://icearagon.aragon.es/datosdescarga/descarga.php?file=/CartoTema/sigpac/rec44_sigpac.shp.zip": "rec44_sigpac.shp.zip",
"https://icearagon.aragon.es/datosdescarga/descarga.php?file=/CartoTema/sigpac/rec50_sigpac.shp.zip": "rec50_sigpac.shp.zip",
}
avoid_range_request = True
id = "es_ar"
short_name = "Spain Aragon"
title = "Spain Aragon Crop fields"
description = """
SIGPAC - Sistema de Información Geográfica de la Política Agrícola común (ejercicio actual)
Crop Fields of Spain province Aragon
"""
providers = [
{
"name": "Gobierno de Aragon",
"url": "https://www.aragon.es/",
"roles": ["producer", "licensor"],
}
]
# License: https://idearagon.aragon.es/portal/politica-privacidad.jsp
license = "CC-BY-4.0"
attribution = "(c) Gobierno de Aragon"
columns = {
"geometry": "geometry",
"dn_oid": "id",
"provincia": "admin_province_code",
"municipio": "admin_municipality_code",
"uso_sigpac": "crop:code",
"crop:name": "crop:name",
"crop:name_en": "crop:name_en",
"ejercicio": "determination_datetime",
}
column_migrations = {
"ejercicio": lambda col: pd.to_datetime(col, format="%Y"),
}
missing_schemas = {
"properties": {
"admin_province_code": {"type": "string"},
"admin_municipality_code": {"type": "string"},
}
}