Skip to main content

Questions tagged [postgis]

PostGIS is a database extension for PostgreSQL providing additional spatial types, indexes, functions, and aggregates.

Filter by
Sorted by
Tagged with
0 votes
1 answer
22 views

I am making a query as user postgres via my current user, xyz. I am returning the results of this query as JSON. I want to save this (huge) JSON into a file owned by my current user xyz. And I do not ...
bliako's user avatar
  • 103
0 votes
1 answer
79 views

I've been tasked to migrate a bunch of postgres databases from version 10.5 to 16. Most contain the PostGIS extension (ver. 2.4.4), I've successfully migrated a few via the postgis_restore.pl script. ...
Eric Swiggum's user avatar
0 votes
1 answer
123 views

We are migrating our Postgresql Single Server to Flexible Server using Azure Migration and after a series of errors, the support engineer is telling me to remove the postgis extension for the ...
bobleujr's user avatar
  • 121
0 votes
3 answers
315 views

I have a Postgres/Postgis table with ~50M rows. I am making requests similar to this: select * from building b where ST_Intersects(b.point, some_fixed_geometry) order by id limit 20 offset X; The ...
Istopopoki's user avatar
1 vote
1 answer
104 views

This is my first dabble with Postgres and geospatial. Looking at a slow query which includes ST_Intersects(a.geography, b.geography). The optimiser estimates are 2500x out. https://explain.dalibo.com/...
Mark Storey-Smith's user avatar
1 vote
1 answer
64 views

Here's the individual activity, which is GeoJSON displayed on the map rather than doing any ST_AsMVTGeom/ST_AsMVT work: Here's the result of the ST_AsMVTGeom/ST_AsMVT query: If you compare the ...
James Chevalier's user avatar
0 votes
1 answer
34 views

I need to upgrade source: rhel7-pg-10-postgis-2.4 target: rhel8-pg-14-postgis-3.1 is my assupmtion correct, that I need to go in these steps (using pg_dump/pg_restore to jump between versions)? ...
vrms's user avatar
  • 293
0 votes
1 answer
70 views

I am looking to store latitude, longitude (both decimal) and altitude (meters) for use with flight data in PostgreSQL 15. I have decided on using the POINT data type in PostgreSQL for latitude and ...
Justin's user avatar
  • 449
0 votes
1 answer
1k views

I am creating a PostGIS database in which a lot of schemas should have the same constraints. Meaning in the future, similar tables should have the same limitations of values entered. My constraint ...
KoGIS's user avatar
  • 3
0 votes
1 answer
128 views

I have a table in postgis as follows: CREATE TABLE public.a_meter ( smid integer NOT NULL, smgeometry public.geometry(Point,32640) NOT NULL, install_node_code text, "ID" text,...
Sajjad's user avatar
  • 13
-1 votes
1 answer
71 views

i am trying to set up a geo data base for my company using PostgreSQL with pgAdmin4. I am very new in database administration. We need a database storing the information about drilling points. Each ...
Anna's user avatar
  • 1
0 votes
0 answers
23 views

I am trying to design a environmental GIS table setup in a geospatial database. The workflow process is to create a Permit To Disturb (PTD Table) and for each PTD there will be a point, line and ...
Christian Leidersdorff's user avatar
0 votes
0 answers
296 views

I've been testing the performance of my PGSQL DB and MySQL DB with around a million entries and I've come to the conclusion that MySQL seems to execute my queries much faster, but I feel it should be ...
Romek's user avatar
  • 109
1 vote
0 answers
158 views

PostgreSQL 12.8, PostGIS 3.1.4 Running select * from pg_stat_user_indexes, there are some rows that have 0 for idx_scan, and a >0 result for idx_tup_read. The indexes that match this condition are ...
Avocado's user avatar
  • 255
0 votes
1 answer
100 views

From the PostGIS manual about Compiling and Install from source I get the general procedure to be ... Install postgres get a couple of libraries PostGIS depends on download and extract the PostGIS ...
vrms's user avatar
  • 293
0 votes
0 answers
189 views

QGIS 3.22 & PostgreSQL 14. Many colleagues insert features in a Postgres/PostGIS database using QGIS and import/export to PostgreSQL database plugin. Among many parameters, there is add to or ...
Leehan's user avatar
  • 205
1 vote
1 answer
101 views

I've been trying to figure out a way to order a row after another based on the value of a column from the previous row. In my SQL query below, I first initially want to order the dataset by distance ...
ordane87's user avatar
0 votes
1 answer
194 views

I am a beginner with PostgreSQL and have two tables A and B, both with multiple columns, including a point column (geom): TableA includes a given 'ID', geom, etc , TableB is a "DB" of ...
domiho1's user avatar
  • 25
1 vote
0 answers
313 views

Designing storage architecture for Petabyte-scale geospatial data; starting from scratch. Creating a MinIo cluster to store the objects in S3 buckets. To store the metadata, I’m considering the Apache ...
jpinelo's user avatar
  • 111
0 votes
1 answer
609 views

I have a table with three columns: two can be used to filter the table, and the last can be used to sort it: create table thing( id serial primary key, location geometry(Point, 4326) not null, ...
Cooper Wolfe's user avatar
2 votes
2 answers
356 views

i have a table addressfabric_v2_2021_12 CREATE TABLE IF NOT EXISTS public.addressfabric_v2_2021_12( country character varying(10) COLLATE pg_catalog."default", areaname1 character varying(10)...
sunny's user avatar
  • 31
0 votes
1 answer
77 views

PostgreSQL 13.5, PostGIS 3.2, Windows Server 2012. My main goal is to create an unique index on a column containing geometries. Here is the table : CREATE TABLE IF NOT EXISTS geometrie....
Leehan's user avatar
  • 205
3 votes
0 answers
311 views

I am building a procedure to label database rows if certain records meet some conditions. I am looping over rows using cursor and for every row I check for some conditions, if conditions are met I ...
DrJacoby's user avatar
  • 141
0 votes
1 answer
1k views

I am struggling trying to restore a PostgreSQL dump that has been made using pg_dump (v. 12+) out of a production database having PostGIS installed, the very first issue is this one when restoring the ...
s.k's user avatar
  • 434
1 vote
1 answer
3k views

I am trying to return the count of overlapping polygons. The problem is that it complains about my "$1" signs: Error is "SQL state: 42601", syntax error at "$1". Why is ...
Teh Swish's user avatar

1
2 3 4 5 6