Code Monkey home page Code Monkey logo

giswfs's Introduction

Parser za seznam zemljevidov na http://gis.arso.gov.si/wfs_web/faces/WFSLayersList.jspx

Vse podatke privzeto shranjuje na disku in zahtevke na gis.arso.gov.si dela le, če podatkov še ni. Nastavitve za cache in destinacijo prenosov datotek so v config.json.

Namestitev

git clone ...
pip install -r requirements

Uporaba

from giswfs import WfsScraper
scraper = WfsScraper()          # prenese se seznam zbirk

scraper.datasets                # list objektov Dataset(OrderedDict)
dataset = scraper.datasets[0]

dataset['name']
> Absolutna najnižja temperatura zraka s povratno dobo 50 let

gmlFilename = dataset.getFile(format='gml')   # zahtevek za prenos datoteke
> ./files/0_absolutnanajnizjatemperatura_3d7f0e38.gml

Dataset OrderedDict

Ključ Opis
dataset['name'] ime vira
dataset['description'] opis podatkov
dataset['urlDownload'] povezava za prenos
dataset['urlMetadata'] povezava do metapodatkov (ni nujno, da obstaja)
dataset['attributes'] seznam atributov (id in description) (pri zemljevidu potresnih opazovalnic so to recimo ime, inštrument, nadmorska višina...)
dataset['metadata'] drevo metapodatkov (ni nujno, da obstaja, shema je odvisna od formata - '_giswfs_parser' pove, kater parser je bil najbolj primeren)
  • dataset.getFile(format='gml', attributes=None)
    prenese in vrne ime datoteke
    format je lahko 'gml', ali 'shp' (.zip shp, shx in dst datotek)
    attributes je lahko seznam id-jev atributov (dataset['attributes']), sicer vzame vse

giswfs's People

Contributors

nejcjelovcan avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.