Skip to main content
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:
mgri's user avatar
  • 16.3k
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 ...
Ian Turton's user avatar
  • 82.7k
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 ...
swatchai's user avatar
  • 449
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 ...
Bera's user avatar
  • 76.3k
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).
Kadir Şahbaz's user avatar
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 ...
MrXsquared's user avatar
  • 35.2k
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"
Taras's user avatar
  • 33.7k
7 votes
Accepted

Set Metadata domain with GDAL (python bindings)

You can do this by passing a dict: ds.SetMetadata({"X_BAND": "1" }, "GEOLOCATION")
user2856's user avatar
  • 67.8k
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 ...
pLumo's user avatar
  • 6,549
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 ...
gepa's user avatar
  • 186
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 ...
Matt's user avatar
  • 17.7k
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)), -...
Kasper's user avatar
  • 3,402
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 ...
TJR's user avatar
  • 1,612
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 = {} ...
Julian Mann's user avatar
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 ...
TomazicM's user avatar
  • 26.5k
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 /* ...
Antonio Falciano's user avatar
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).
Taras's user avatar
  • 33.7k
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 ...
Marcelo Villa's user avatar
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: ...
Babel's user avatar
  • 73.8k
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 ...
JGH's user avatar
  • 42.5k
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 ...
eurojam's user avatar
  • 11.7k
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. ...
Jay Cummins's user avatar
  • 14.7k
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 ...
mgri's user avatar
  • 16.3k
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/...
gwydion93's user avatar
  • 1,933
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 ...
IvanSanchez's user avatar
  • 10.3k
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 ...
MappaGnosis's user avatar
  • 33.9k
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 ...
HeikkiVesanto's user avatar
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, ...
J. Monticolo's user avatar
  • 15.9k
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 ...
StefanBrand_EOX's user avatar
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". ...
neogeomat's user avatar
  • 8,380

Only top scored, non community-wiki answers of a minimum length are eligible