PostGIS: how to merge contiguous features sharing same attributes values?
I have a big postgis table storing line features. I woud like to merge features that are both connected to eachother and have given attribute values identical. Here is below an example of what I’d like...
View ArticleLeveraging capabilities of PostGIS for large (ish) tables in PostgreSQL?
I am using PostgreSQL and PostGIS to do some exploratory analysis and eventually spatial analysis. I have a table with 40M+ points (geolocated tweets) in the United States that has a spatial index. I...
View ArticlePostGIS ST_Intersects GeometryCollection
If i’m not terribly mistaken, ST_Intersects does not support GeometryCollection. ERROR: Relate Operation called with a LWGEOMCOLLECTION type. This is unsupported. HINT: Change argument 2:...
View ArticleHow to replace a part of OSM data in postgres?
i want to replace the apart of osm data in postgrs database. for example ,replace the osm data of china which in planet osm data. i hava used osm2pgsql, but if use osm2pgsql import the china data ,it...
View Articlelike finding errors overlap on the same layer in postgis?
After meeting the overlay erroneous polygons in the same layer, I used the following query: select gid from limite_localidad where not ST_Overlaps(the_geom,the_geom) I have to leave 108 records error...
View ArticleInterpolating point to nearest polygons to compute street width in posgis
I am trying to calculate the width of streets (line.shp) in postgis using reference point (ref_point.shp) (yellow point features) and building polygons (building.shp). The red point features are the...
View ArticleChecking if a polygon contains multiple point geometries using PostGIS?
This is not a a duplicate of the “Count Points in Polygon with Postgis“, since in the ST_Contains(geometry geomA, geometry geomB), this case has two geometries (start_geom and end_geom) in geomB, while...
View ArticleProblem with projection in pgRouting layer in GeoServer
I followed this tutorial for creating a pgRouting layer in GeoServer. When I try to publish this layer Native Bounding Box and Lat/Lon Bounding Box are not getting generated correctly. For my road...
View ArticleArea of influence with CartoDB
I am working on a city transport map, and for fun (and practice) I try to make an area of influence of transport station. But, whatever I try, something gets wrong. So two questions. 1 – How can I fix...
View Articleogr2ogr Set Feature to Column Name?
I’m converting PostGIS data to PDF via GDAL 2.0.2 with below. ogr2ogr -f “PDF” mypdf.pdf PG:”host=domain.com user=me password=mypassword dbname=mydb” -sql “SELECT geom, state_name, sub_region,...
View ArticleMake a (copy of a) postgis database available to customer?
Our application uses a PostgreSQL database (with the PostGIS spatial extension). Now one of our customers has requested direct access to the database; because, as they claim, it’s their data. We’d...
View Article