Questions tagged [postgresql]
PostgreSQL is an open source object-relational database system.
4,294 questions
0
votes
0
answers
22
views
I’m trying to create an enterprise geodatabase in ArcGIS Pro, and it keeps telling me that it was unable to access the st_geometry library
So I’m trying to create an enterprise geodatabase in ArcGIS Pro, and it keeps telling me that it was unable to access the st_geometry library.
I already downloaded the ST_geometry.llb file and placed ...
1
vote
0
answers
30
views
Storing metadata in PostgreSQL and loading it automatically when loading layer in QGIS
Same question as Storing metadata in PostgreSQL? but for QGIS.
How could we store metadata in PostgreSQL and load it automatically when loading a layer in QGIS?
Idea is then to push it back to QGIS ...
0
votes
1
answer
126
views
Cannot add parquet file to PostgreSQL database
I am attempting to add a parquet file to a PostgreSQL/PostGIS database and I keep getting this error.
ogr2ogr -f PostgreSQL PG:"host=localhost user=docker password=docker dbname=gis port=5432&...
1
vote
0
answers
34
views
Using QField offline with a PostgreSQL DB on a distant server
I'm developing a PostgreSQL–PostGIS database on a remote server. I’ve already created all the necessary layers and their attribute forms in QGIS. I now want to use it with QField. When my Android ...
1
vote
0
answers
67
views
Running Python script before PostgreSQL authentication in QGIS
I'm working with PostgreSQL in QGIS and have a Python script that runs when the QGIS session starts.
Right now, the PostgreSQL connection requires authentication first, and only after that, the Python ...
1
vote
1
answer
85
views
SQL query to extract relations within a bounding box from PostgreSQL OSM database
I used osm2pgsql to create an OSM PostgreSQL database for my region.
Now I want to extract data of different types within smaller areas. I can extract the nodes and ways within my bounding box using ...
5
votes
0
answers
127
views
Optimizing attribute table performance for large datasets in QGIS
Currently, when opening attribute tables with a large number of features, QGIS 3.44 becomes very slow and sometimes unresponsive. This happens even on high-end hardware, which suggests the bottleneck ...
0
votes
0
answers
52
views
Erratic behavior QField Sync
I am using QGIS 3.40.11 with QField Sync 4.17.3 and QField 3.7.7.
My layers are stored in a PostgreSQL database. A few days ago everything was working fine, but today when I synchronized, I received ...
3
votes
1
answer
148
views
Getting NULL values with string_to_array function in QGIS
I work with QGIS and PostGIS. With PostGIS, I ran an SQL script that contains a section dedicated to aggregation geoprocessing: from multiple source data, each containing a unique ID, this allows to ...
1
vote
0
answers
72
views
Displaying PostgreSQL 15 table comments on browser panel exploring in QGIS 3.34.15
I would like to show the layer PostgreSQL comment (comment on table "xxxxx") when I move mouse over the layer name in the browser Panel Exploring:
3
votes
0
answers
43
views
Does PostgreSQL/PostGIS on AWS RDS use OSTN15 transformation files for 27700?
I’m running PostGIS 3.4.3 on AWS RDS (PostgreSQL 16) with PROJ 9.5.0 (postgis_full_version() output).
We used to handle UK coordinate transformations outside of PostgreSQL (with ogr2ogr and PROJ 6.x) ...
0
votes
0
answers
41
views
ArcGIS Pro doesn't recognise PostgreSQL spatial property
I have two mirroring deployments (Dev & Prod) of PostgreSQL with PostGIS extension (i.e. not Esri enterprise geodatabase) on AWS RDS servers. The database on Prod was accidently deleted and then ...
1
vote
1
answer
74
views
QGIS Form from PostgreSQL evolutive related value column
In PostgreSQL / PostGIS : I have a layer (L1) related by a list values (LV1).
I'm searching for a way to relate L1 to LV1 which :
Automatically updates LV1 in QGIS if it's updated in PostgreSQL
Does ...
0
votes
0
answers
54
views
QGIS Browse panel "Failed to load layers"
I've run into a quite tricky problem with QGIS Browse panel and maybe someone of you had a similar experience or knows how to solve it.
The situation is as follows: I have a remote PostGIS database ...
1
vote
1
answer
183
views
PostgreSQL/PostGIS : Error No space left on device SQL state: 53100
I want to compare a geoprocessing done in QGIS and PostGIS. It involves a union of two large polygonal vector layers.The processing in QGIS tooks 1.5 hours on a well-equipped workstation (32 GB of RAM)...
0
votes
2
answers
59
views
QGIS, PostGIS. Table layers_styles missing
I'd like to have style(symbology) definitions per layer(geometry) saved in the database. As I understand it I can the just drag in a layer from the PostgreSQL in Browser section. And then I can apply ...
0
votes
0
answers
52
views
MapServer PostgreSQL WHERE clause with UUID column fails
I'm using MapServer with PostgreSQL and I need to be able to limit the query using a UUID field. This column type is not mentioned in the documentation.
I can happily use other field types in the ...
0
votes
0
answers
208
views
Seeking PostGIS docker image for Mac
I need the PostGIS extension to my PostgreSQL database but I cannot find one that will be compatible to my Mac M1,
I also need the vector extension for the PostgreSQL database.
Can you help me?
3
votes
0
answers
53
views
How can I intersect perfectly Graphhopper response with my PostGIS route network
I am working on a GeoDjango project which is linked with the graphhopper API installed locally on my machine. The goal of my project is to offer the user the shortest route (by usins the graphhopper ...
3
votes
0
answers
88
views
Difference between GeoPandas buffer and PostGIS ST_Buffer [closed]
We needed to offload some compute from our PostgreSQL server due to CPU limitations, so I am running some intersection and buffer calculations using GeoPandas which used to be calculated using ...
0
votes
1
answer
100
views
Unable to edit PostgreSQL layers in ArcGIS Pro – Only views are added
I'm facing an issue when connecting my PostgreSQL database to ArcGIS Pro. I am using a user with superuser privileges, so I have full access to the database and its contents, including editing rights.
...
1
vote
0
answers
43
views
Pilcrow ¶ in database fields, "PropertyIsLike" filter gives incomplete results from SLD compared to QGIS
Iis it possible to filter using the SLD with pilcrows present in database fields?
I am trying to use the code below in the SLD to filter for the word "Onbekend" to turn polygons red, but ...
4
votes
2
answers
259
views
Is there any reason why `ST_AsEWKB` can't take a geography type?
ST_AsEWKB is defined like this
bytea ST_AsEWKB(geometry g1);
bytea ST_AsEWKB(geometry g1, text NDR_or_XDR);
While ST_AsEWKT is defined like this,
text ST_AsEWKT(geometry g1);
text ST_AsEWKT(geometry ...
8
votes
1
answer
132
views
Associating original points with Voronoi output in PostGIS
Using PostGIS, what would best associate the source points fed into a ST_VoronoiPolygons call with the returned GEOMETRYCOLLECTION polygons?
I assume using something like ST_Within would work; I'm ...
5
votes
1
answer
159
views
ST_LineSubstring returns incorrect lengths in geography in PostGIS [closed]
I am encountering an issue with the ST_LineSubstring function in PostGIS. Despite the reported fixes in this version, the results remain inconsistent when applying ST_LineSubstring on a geography type....
2
votes
1
answer
63
views
Join parking with charging_station amenity based on distance threshold
I am importing 4 staates from OSM into a PostgreSQL database like this
osm2pgsql -d $DB_NAME -U $DB_USER -C 4000 -r pbf -O pgsql -S ${GIT_DIR}/style/style_osm_20250326.style ${WORK_DIR}/bremen-latest....
1
vote
0
answers
37
views
Call osm2pgsql to get all charging_station and parking amenities
I am importing 4 staates from OSM into a PostgreSQL database like this.
osm2pgsql -d $DB_NAME -U $DB_USER -C 4000 -r pbf -O pgsql -S ${GIT_DIR}/style/style_osm_20250326.style ${WORK_DIR}/bremen-latest....
1
vote
1
answer
109
views
GDAL ogr2ogr OGC Features API (GeoJSON) to PostGIS - Only 300k Features Loading
When trying get data from an OGC Features API into PostGIS, using GDAL ogr2ogr, it seems to be capping out at 300,000 features being loaded.
The endpoint is https://environment.data.gov.uk/geoservices/...
0
votes
1
answer
51
views
ArcGIS API for Javascript 3 QueryTask execute returns no private properties in featureSet.features object
I have a web application based on ArcGIS API for Javascript 3. In the web application a QueryTask is executed on a MapServer feature layer. The result feature set is used to create a Feature Layer and ...
1
vote
1
answer
56
views
Update more than one Geofabrik geographic region OSM download in a single PostgreSQL database
I use the osm2pgsql-replication script to maintain a set of PostgreSQL tables from a single Geofabrik download .osm.pbf file, containing OSM data for a single geographic region in NW England. These ...
0
votes
0
answers
62
views
Insert layer from QGIS to PostgreSQL database, on creation make view in other schema
I would like to make it as easy as possible for a QGIS user to insert a geopackage in a PostgreSQL connected database. But I also want to trigger a function to make a clone of the inserted table to ...
1
vote
1
answer
416
views
PostGIS error by upgrading with PostGIS_Extensions_Upgrade()
I have a PostgreSQL database with PostGIS installed version 2.5.5
We use RDS and our PostgreSQL version will soon be deprecated, to upgrade our PostgreSQL version it's necessary to upgrade PostGIS.
...
1
vote
1
answer
56
views
geopandas.read_postgis return empty records during Django unittest although Django ORM can read them
geopandas.read_postgis return empty records while Django unittest, although Django ORM can read them.
Plus, when I connect to db running as a container,
there are no records when selecting in db for ...
1
vote
0
answers
47
views
Problem with QGIS - Layer Actual Extracts, Layer Statistics
I am creating new projects in QGIS using a plugin called PlotCut. This plugin helps to clip specific polygons out of a layer image. It also performs some calculations to provide the number of pixels ...
0
votes
0
answers
26
views
schema_reference.4: Failed to read schema document 'http://shapechange.net/resources/schema/ShapeChangeConfiguration.xsd'
After passing the syntax check, and correcting all errors in the configuration file named ETL.xml, these problems occurred. The UML model was created in Enterprise Architect 15 (.eap extension) and I ...
0
votes
1
answer
406
views
cvc-complex-type.2.3: Element 'Target' cannot have character [children], because the type's content type is element-only
Syntax validation has processed all the way to the target itself. There was a problem that if I fix it I get the product, the configuration validator says:
cvc-complex-type.2.3: Element 'Target' ...
1
vote
2
answers
113
views
ShapeChange - cvc-elt.1.a: Cannot find the declaration of element 'ShapeChangeConfiguration'
I am doing a transformation from UML model to DDL SQL (databaseSystem is PostgreSQL). I configured the configuration xml file. I believe that it is not necessary to state what is in it, but I will ...
2
votes
2
answers
190
views
PostGIS: Correct way of using ST_Union/ST_Difference with or without gridsize
I'm designing a system where there is a set of polygons representing different postal codes (not overlapping with each other). An user can either draw his own polygon OR fully select/deselect ...
0
votes
0
answers
81
views
Data source repair not working
Out of the blue, two table in my PostGIS are being flagged for multiple users as needing the data source repaired.
The permissions, schema and database have not changed. Navigating to the table in the ...
4
votes
1
answer
130
views
ST_DWithin rows underestimated
I use ST_DWithin in a WHERE clause.
The row estimate is always 1. Independent of center point and radius. This causes problems in more complex queries because the query planner uses nested loops ...
1
vote
1
answer
74
views
Batch uploading rasters to PostGIS, slows way down
Problem (or at least I think it is a problem): If I set the raster folder to include 3 or 4 GeoTIFFs of ~ the same size and the 1st one uploads in 30 minutes, why would the next one take 90 minutes?
*...
0
votes
0
answers
95
views
Dealing with QGIS freezing when executing PyQGIS script
I want to create a tool that allows me to use a source layer to retrieve the parcels contained in the selected commune from my PostgreSQL database.
When I use layer actions, everything works fine. But ...
2
votes
0
answers
55
views
PostGIS Clustering Issue
I am attempting to write a function which will use PostGIS to group geometric points based off the bounding box passed to the function.
I created the following table:
CREATE TABLE items (
id ...
0
votes
1
answer
294
views
Migrating an existing geodatabase to an existing empty database in PostgreSQL using PostGIS extension. (Schema and Procedure error)
I am attempting to migrate/export an existing geodatabase into an existing database that I created in pgAdmin. When I attempt to transfer tables inside my existing geodatabase into my PostgreSQL ...
2
votes
0
answers
2k
views
PostGIS installation in PostgreSQL 17
I want to install PostGIS with the Stack Builder 4.2.1 for PostgreSQL 17. However, I dont have the option of choosing PostGIS. The category "spatial extension" is simply missing. A ...
2
votes
1
answer
92
views
Get position in meters of POI on a polyline
I have a table of POIs which are simple Points
I would like to know each time a POI is close to the polyline. I would like to get the number of meters from the start of the polyline each time a POI is ...
0
votes
0
answers
121
views
Using UNION ALL with view table
I have table in multiple schemas, the table in all schemas have the same columns number and type so i'm trying to combine all table data into view table using UNION ALL as shown
CREATE VIEW "...
1
vote
0
answers
108
views
How do you add a custom grid transformation to Proj's proj.db?
When migrating from PostGIS 2 to PostGIS 3.4, I found out that my old solution for overwriting the proj4text column in the spatial_ref_sys table did not work anymore.
The reason for this is that ...
0
votes
1
answer
110
views
Connecting ArcGIS Pro to PostgreSQL Databases with Mixed Case Naming Conventions
We’re working with QGIS connected to PostgreSQL, and the data is huge—more than 5 million features. We decided to use ArcGIS Enterprise Pro, and we need it to connect to these QGIS (PostgreSQL) ...
2
votes
1
answer
80
views
Multiple number values input for pgr_drivingdistance gives an error in QGIS Model designer
I'm building a QGIS model for calculating isochrones with PostGIS. I can input multiple time values in the model by typing something like '5,10,15' (these are minutes for calculating) into a string ...