New answers tagged

1 vote

How do you flip/invert/reverse the order of the coordinates of shapely geometries?

The substring operation in Shapely can be used for this. From the substring docs: If the start distance is actually past the end distance, then the reversed substring is returned such that the start ...
user avatar
  • 221
1 vote
Accepted

Transforming using ntv2 nadgrids is behaving different between GDAL 2.3.1 and GDAL 3.4.2

I got this issue figured out with help from the GDAL folks after posting a bug to the GDAL list here. The issue was that my original coordinates (4547442.8444401 5290333.4162611) were not located ...
user avatar
  • 397
0 votes

Transforming using ntv2 nadgrids is behaving different between GDAL 2.3.1 and GDAL 3.4.2

You could try setting the PROJ_LIB variable to the location of the PROJ data files on your computer if you haven't already tried that. You also need to set the GDAL_DATA and GDAL_DRIVER_PATH ...
user avatar
  • 1
0 votes

Problems with uploading point coordinate British National Grid data into QGIS as .csv file

The "NT 9791" format would be a 1km x 1km square. You can download shapefiles here: https://github.com/charlesroper/OSGB_Grids/find/master As for the 6-digit number, I don't know.
user avatar
  • 319
1 vote

Getting habitat map data into CSV file in QGIS

You can use the processing tool Sample raster values: "Extracts raster values at the point locations. "
user avatar
  • 51.4k
2 votes

Getting habitat map data into CSV file in QGIS

Use QGIS expressions with the function raster_value(). Be aware: both layers have to be in the same CRS: raster_value( 'raster', 1, $geometry) raster is the name of your raster layer. 1 is the ...
user avatar
  • 40.1k
0 votes

Convert coordinates in ArcGIS

I agree with comment above - just take out the commas - ArcGIS thinks that those columns are strings not numbers. I always double check in excel, formatting the columns specifically to be numbers, ...
user avatar
1 vote

Convert coordinates in ArcGIS

Mind the language settings of your ArcGIS and how the csv is saved. It is possible that your program does not recognise the Easting and Northing columns as numbers, but as text instead, and therefore ...
user avatar
  • 35
1 vote

Leaflet geoJSON tooltip coordinates

You can control position of the tooltip only for map tooltips (see https://leafletjs.com/reference.html#map-methods-for-layers-and-controls). So if your desired tooltip coordinates would be latlng, ...
user avatar
  • 16.7k
8 votes
Accepted

Generating x, y, coordinates within polygon/polyline with certain interval in QGIS

Grid is the correct term. If you have a line layer you need to convert it to polygon. Create a point grid using the polygons extent with 500 m x and y spacing Extract the points inside the polygon ...
user avatar
  • 51.4k
0 votes

Winkel II fails while reprojecting on the fly in QGIS 3.12

According to https://github.com/qgis/QGIS/issues/35512 this will work without issues in any modern QGIS that uses PROJ >= 7.1.
user avatar
  • 8,129
5 votes
Accepted

Rounding decimal numbers in PostGIS

Via Round ST_Distance you need to cast the values to a numeric: select name, round(ST_X(geom)::numeric, 2) as x_coordinate, round(ST_Y(geom)::numeric, 2) as y_coordinate from cities You could ...
user avatar
  • 8,129
2 votes
Accepted

Get coordinates on click without using QgsMapToolEmitPoint

One way to get the coordinates regardless of the selected tool is using an Event Filter to intercept the mouse events of the QgsMapCanvas object. Within the event filter function there is a check for ...
user avatar
  • 1,454
3 votes

Formatting decimal point for X,Y coordinates using R

The data is in latitude, longitude order, you are assigning them in the wrong order. According to the metadata on the page you linked to: Latitude = non-decimal latitude. Please use this formula to ...
user avatar
  • 51.8k
2 votes

Importing text file with coordinates with "N12.345" and "E6.789" as shapefile in QGIS

Here is another approach. Step 1. Drag&Drop your .xlsx file with all tables into QGIS, So, they all will be visible in the Layers Panel Step 2. Use a "Virtual Layer" through Layer > ...
user avatar
  • 23k

Top 50 recent answers are included