Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zapsat parcely do DB #6

Open
landam opened this issue Nov 13, 2017 · 3 comments
Open

zapsat parcely do DB #6

landam opened this issue Nov 13, 2017 · 3 comments
Assignees
Labels
Milestone

Comments

@landam
Copy link
Contributor

landam commented Nov 13, 2017

Implementovat writeDB:

Verze 1:

https://pcjericks.github.io/py-gdalogr-cookbook/vector_layers.html#create-a-postgis-table-from-wkt

    1. otevrit DB (GDAL) -> ds = ogr.Open(db)
    1. vytvorit novou vrstvu -> ds.CreateLayer...
    1. definovat atributy (todo)
    1. zacatek transakce
    1. (for) pro kazdou parcelu vytvorit prvek
    1. zapisete do vystupni vrstvy (CreateFeature) (forend)
    1. ukoncit transakci

Verze 2:

pridat atributy, viz https://pcjericks.github.io/py-gdalogr-cookbook/vector_layers.html#create-a-new-layer-from-the-extent-of-an-existing-layer

Vysledek:

  • konstruktor (1-3)
  • build_all (4-7)
  • vytvorit atribut (Field)
  • atribut zapsat (CreateField)
  • zmenit tvorbu prvku (5.) tak by se atributy zapsaly
@landam landam added the task label Nov 13, 2017
@landam landam added this to the Meeting 2 milestone Nov 13, 2017
@landam
Copy link
Contributor Author

landam commented Nov 27, 2017

  • opravit geometrii
  • pridat par_id, kmenove_cislo, podlomeni a pod
  • pridat spatial_ref_sys + geometry_columns (viz poznamka vyse)

@landam landam modified the milestones: Meeting 2, Meeting 3 Nov 27, 2017
@landam
Copy link
Contributor Author

landam commented Dec 4, 2017

  1. otevrit soubor jako vfk (nactou data do DB)
  2. zavrit vfk
  3. otevrit db
  4. nahrat tabulky(gc: par, hp, ...)
  5. vytvorit par
    ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants