Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 22575

PostGIS is an extension for the PostgreSQL object-relational database that adds support for geographic objects.

2 votes
Accepted

Snapping points to nearest road

I found a solution myself: SELECT DISTINCT ON(b.id) b.id as id_city, a.id as id_road, a.geom FROM roads a INNER JOIN cities b ON ST_DWithin(b.geom, a.geom, 1000) ORDER BY b.id, ST_Distance(a.geom, b. …
Mace's user avatar
  • 277
4 votes
1 answer
2k views

Snapping points to nearest road

I use postgresql 9.2 and postgis 2.0 thanks, …
Mace's user avatar
  • 277