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

BAG: ProgrammingError: function public.probe_geometry_columns() does not exist #284

Closed
kduvekot opened this issue May 20, 2020 · 3 comments
Assignees
Labels
bug for bugs

Comments

@kduvekot
Copy link
Contributor

kduvekot commented May 20, 2020

Tijdens het uitvoeren van de verschillende commando's om de BAG data te extraheren liep ik tegen de volgende fout op:

-- Populeert public.geometry_columns -- Dummy voor PostGIS 2+ SELECT public.probe_geometry_columns(); met parameters None ['Traceback (most recent call last):\n', ' File "/home/ubuntu/nlextract-1.4.2/bag/src/postgresdb.py", line 108, in uitvoeren\n self.cursor.execute(sql)\n', 'ProgrammingError: function public.probe_geometry_columns() does not exist\nLINE 46: SELECT public.probe_geometry_columns();\n ^\nHINT: No function matches the given name and argument types. You might need to add explicit type casts.\n\n']

Enig idee hoe dat op te lossen?
dit gaat dus fout tijdens ../db/script/gemeente-provincie-tabel.sql draaien

Dit is met release 1.4.2

@kduvekot kduvekot changed the title BAG: BAG: ProgrammingError: function public.probe_geometry_columns() does not exist May 20, 2020
@justb4
Copy link
Contributor

justb4 commented May 20, 2020

Heb dit juist weggehaald in 1.4.2, omdat dit problemen gaf in PostGIS 2+. Was oude patch voor PostGIS 1, maar overbodig. Zie ook de file:
https://github.com/nlextract/NLExtract/blob/1.4.0/bag/db/script/bag-db.sql#L332

maar zie nu dat ie vaker aangeroepen wordt, dus in https://github.com/nlextract/NLExtract/blob/1.4.0/bag/db/script/gemeente-provincie-tabel.sql#L46 , ja is dus bug! (Denk door mij niet opgemerkt omdat bij testen die functie in public schema stond...). Je kunt die laatste regel weghalen en kijken. (Neem aan dat je PostGIS 2+ gebruikt).

@justb4 justb4 self-assigned this May 20, 2020
@justb4 justb4 added the bug for bugs label May 20, 2020
@justb4
Copy link
Contributor

justb4 commented May 20, 2020

@kduvekot
Copy link
Contributor Author

Ik heb net handmatig de wijzigingen van 68eda53 doorgevoerd in mijn versie .. en dat zorgt er idd voor dat stap 3 (gemeente-provincie-tabel.sql) uitgevoed kan worden .. ik ga nu verder met stap 4 :-)

@justb4 justb4 closed this as completed May 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug for bugs
Projects
None yet
Development

No branches or pull requests

2 participants