GithubHelp home page GithubHelp logo

ekw_to_pg's Introduction

EKW processing

Przetwarzanie XML z Ksiąg dla LP

Przygotowanie

Python3

  1. Zainstaluj pakiet OSGeo4W - https://qgis.org/en/site/forusers/download.html
  2. Wybierz tryb instalacji Advanced, a następnie wskaż do instalacji co najmniej pakiet python3-pip z zakładki Libs
  3. Po zainstalowaniu, uruchom OSGeo4W Shell
  4. Wywołaj komendę pip3 install xmltodict psycopg2

Postgresql

W skrypcie ustaw dane dostępowe do bazy (w linii zaczynającej się od conn = psycopg2.connect), a następnie ścieżkę dostępu do katalogu z plikami EKW (for filepath in glob.iglob)

Wywołaj skrypt SQL ddl.sql (np. przy pomocy dBeaver'a)

Uruchomienie

  1. Uruchom OSGeo4W shell, zmień katalog bieżący na lokalizację skryptu.
  2. Wywołaj polecenie python3 processing.py

ekw_to_pg's People

Contributors

merkato avatar

Watchers

 avatar  avatar

ekw_to_pg's Issues

TypeError: string indices must be integers

Traceback (most recent call last):
File "c:\ekw_to_pg\ekw_to_pg\processing.py", line 162, in
wlasciciel(doc['KW']['D2']['R22'])
File "c:\ekw_to_pg\ekw_to_pg\processing.py", line 105, in wlasciciel
opiswlasciciela['zarzad'] = skarb['SP']['I']['N']['@tr']
TypeError: string indices must be integers

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.