12
votes
Accepted
What does the U mean in UTM=(32, 'U')?
UTM 32U is one tile of the UTM 32N zone. This image from Wikipedia (here the link to the following image) should explain it clearly:
11
votes
How is geolocation by buildings or landmarks in a picture done?
Logan Williams of Bellingcat gave a talk at FOSS4G 2023 called "Investigating war crimes, animal trafficking, and more with open source geospatial data" where he described how they ...
9
votes
Checking if a geocoordinate point is land or ocean?
Basemap should fit your need. Its default projection is the raw use of (long, lat) for plotting/processing. In this case, it also takes projection='cyl' to conform with general uses. Here is the code ...
9
votes
QGIS - row numbers by location
You can create a Virtual Layer and use row_number function, ordered by for example each features centroid y coordinate:
select *, row_number() over(order by st_y(centroid(geometry))) as newid
from ...
8
votes
Removing duplicate point features using QGIS
You can use the QGIS built-in tool named "Delete duplicate geometries" under Processing Toolbox" > Vector general in the Processing Toolbox (Ctrl+Alt+T).
8
votes
Summing on multiple attribute value on same coordinate in QGIS
Load your CSV
Run "Aggregate" from QGIS's Processing Toolbox (Ctrl+Alt+T)
As a group by expression use, geom_to_wkt($geometry)
Note: only $geometry may not work and as aggregate function on ...
8
votes
Accepted
Aggregating features values based on name attribute and geometry in QGIS
Instead of using logical operator AND, try the ||-joint:
geom_to_wkt($geometry) || "name"
7
votes
Accepted
Set Metadata domain with GDAL (python bindings)
You can do this by passing a dict:
ds.SetMetadata({"X_BAND": "1" }, "GEOLOCATION")
7
votes
Figuring out the most probable country out of a string?
Getting a location from a string is called Geocoding and there are a number of services offering that.
The geocoder from the OpenStreetMap project is called Nominatim and is freely available, you ...
7
votes
Accepted
Latitude and longitude values in Google Takeout location history data sometimes out of range
They seem to have an integer overflow error in preparing the data for the takeout (downloading the kml directly from google maps for a specific day works correct).
If the number is greater than ...
7
votes
QGIS - row numbers by location
To order the features (e.g.) west to east, you can use this expression on a new field in the layer:
array_find( -- find the position of the current feature in the array (this ...
7
votes
Accepted
QGIS - row numbers by location
You can use this Field Calculator expression for numbering north to south for instance:
array_find(
array_agg(y($geometry), -- list the Y coordinates
order_by:=-1*y($geometry)), -...
6
votes
Accepted
Changing the geolocation of a point in the map
If the layer is editable all you need to do is right click on the layer and select Toggle Editing and then in the Digitizing Toolbar select the Move Feature(s) button. Then you can click and drag the ...
6
votes
Generating random locations nearby?
Accepted answer and derivatives didn't work for me. Results were very inaccurate.
Correct implementation in javascript:
function pointAtDistance(inputCoords, distance) {
const result = {}
...
6
votes
Leaflet How To Update User Position Marker Real Time
For continous watch add option
watch: true
Here http://leafletjs.com/reference-1.2.0.html#locate-options is the list of all locate options.
This is the code I tested (Android 7.0) and that works ...
6
votes
Accepted
Converting Australian coordinates (EPSG:3112) for mapping in R
PROJECTION LAMBERT
UNITS METERS
DATUM GDA94 SEVEN /* GDA94 SPHEROID GRS80 PARAMETERS
-28 00 00 /* 1st standard parallel
-36 00 00 /* 2nd standard parallel
135 00 00 /* Central meridian
-32 00 00 /* ...
5
votes
Removing duplicate point features using QGIS
Another solution is the SAGA's "Remove Duplicate Points" tool can be found under SAGA > Features - Points in the Processing Toolbox (Ctrl+Alt+T).
5
votes
Accepted
Python function to get the co-ordinate pair of a point
The geolocator.reverse() method is expecting a Point obejct or a tuple with two coordinates. However, you are passing redshape, which is a fiona.collection.Collection object with all the features in ...
5
votes
Moving two layers with different geometry at once with snapped vertices in QGIS
You can use Geometry by expression to create the new lines, based on the old ones. Use this expression and adapt it to your use case - here, the line goes to the centroid of the shifted polygon:
...
5
votes
Accepted
Moving two layers with different geometry at once with snapped vertices in QGIS
One option is to use an endpoint point layer, the existing pole polygon layer and to compute a virtual lines layer, that is updated each time the map is moved.
The endpoint must have a poleID ...
5
votes
Accepted
QGIS - expression join attrributes by location
your expression should be as follows:
aggregate( layer:='Aanplant_punt_v01', aggregate:='sum',
expression:="amount", filter:= within($geometry, geometry(@parent)))
the expression is a field ...
4
votes
Accepted
ST_Within and ST_Contains not working for Latitude and Longitude in PostGIS
Are you using the correct spatial reference ID? The vs14_housing data you referenced is 102685.
If you use your query using the UTM(26913), no results.
But if you change it to 102685, it works. ...
4
votes
Changing the geolocation of a point in the map
The solution by @TJ Rockfeller leads to manually move the points.
Instead, if you need to move the point to a specific location (i.e. using specific coordinates), you may use the Numerical Vertex ...
4
votes
Accepted
Adding a control for geolocation in Leaflet
It turns out that the cdn's for the Leaflet.locate given in the https://github.com/domoritz/leaflet-locatecontrol example are incorrect. I replaced them using cdn's from https://www.jsdelivr.com/...
4
votes
Improve leaflet location interval
Leaflet relies on the browser's Geolocation.watchPosition and other bits of the Geolocation API. The code for L.Map.locate does not add any extra timeouts or delays.
Let me quote from the specs of ...
4
votes
How to map fence post holes to reality?
Google Earth not accurate enough (you are looking for cm accuracy here) especially if you are taking your points from the rubber-sheeted aerial images. When you combine this with the inaccuracy of ...
4
votes
Why are geolocations on Twitter "rounded"?
I have looked at tweets to some extent. But not in your area.
But I suspect this is down to two types of tweets.
Actual tweets that fall into two categories. The correct geolocation with specific ...
4
votes
Accepted
Opening and Using .tif and .twf files in QGIS
Yes, it's enough. .twf is the world file for .tif files.
QGIS will read it when you open your .tif raster file.
Use a basemap like OpenStreetMap or other vector files that describe lands, countries, ...
4
votes
Accepted
Getting phone number of store from Google Maps
StackOverflow has a good answer to this question. Basically it involves these steps:
Get an API key for the Google Places API
Use Place Search request
Use returned token in a Place Details request
...
4
votes
Get the begin and end coordinates of city municipality
changeset data from osm data for administrative municipality of porto shows min_lat="41.1383507" min_lon="-8.6912941" max_lat="41.1859353" max_lon="-8.5520090". ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
geolocation × 292gps × 31
qgis × 27
python × 20
coordinate-system × 20
leaflet × 19
javascript × 18
coordinates × 16
latitude-longitude × 16
openlayers × 14
geocoding × 14
android × 14
google-maps × 13
mobile × 12
distance × 11
arcgis-desktop × 10
openstreetmap × 10
data × 9
r × 8
geometry × 7
address × 7
google-maps-api × 6
wifi × 6
postgis × 5
shapefile × 5