ngu / geonorge-nedlastingapi

An implementation in Java of the Geonorge Download API (https://nedlasting.geonorge.no/Help)
MIT License
4 stars 2 forks source link

DownloadService must return a list of valid areas for a given dataset #6

Closed bgrotan closed 6 years ago

bgrotan commented 7 years ago

https://nedlasting.geonorge.no/Help/Api/GET-api-v2-codelists-area-metadataUuid

bgrotan commented 7 years ago

Sample query:

SELECT DISTINCT UPPER(f.inndeling), UPPER(f.inndelingsverdi) FROM

.dataset d, .filliste f WHERE d.id='' AND d.id=f.dataset
halset commented 7 years ago

Er det inndeling/inndelingsverdi som så blir til dette?

       "type": "fylke",
        "name": "Akershus",
        "code": "02",

Kanskje jeg kan endre i databasen til f.eks. area_type, area_name og area_code eller noe sånt? Eller er det noe annet? Hva tror du, @bgrotan ?

halset commented 7 years ago

Eller en egen areal-tabell med de tre feltene og en areal-id. Mer normalform, men også mer stress.

bgrotan commented 7 years ago

foreslår å utvide med en inndelingstype i filliste-tabellen

halset commented 7 years ago

12 legger til area_type, area_name og area_code.

halset commented 7 years ago

Denne er på plass https://test.geonorge.ecc.no/api/v2/codelists/area/18777cf4-1f06-4cb0-803d-d6382b76681f . Projeksjons-saken bør kanskje ha to felt til.

halset commented 7 years ago

Fiksa