4 votes
Accepted

Extracting latitude and longitude pairs as list from LineString in GeoPandas

Maybe not "most efficient" but it will get you the result you want: import geopandas as gpd df = gpd.read_file(r'/home/bera/Drives/Lagring/GISdata/OpenStreetmap/sweden-latest-free.shp/...
user avatar
  • 52.2k
4 votes

Order of latitude and longitude in EPSG:4326

Note EPSG.io despite its name is not the official registry of EPSG. The official EPSG Geodetic Parameter Dataset is https://epsg.org/home.html. The CRS EPSG:4326 is (and always has been) defined as ...
user avatar
  • 11.9k
3 votes
Accepted

LidR if-loop on coords (is/isn’t inside extent)

I would have done it that way by clipping the plots outside the loop. That way the plots are extracted and saved in files for later use and 0 point file are discarded. pts_essai = sf::st_read("...
user avatar
  • 7,453
2 votes

In ArcGIS Online, can an X/Y field be auto-populated when a point is added?

Thank you J.R. The link brought me to this: This code needs to be placed into an expression in the forms configurator of the field maps: function MetersToLatLon(geometry) { if (IsEmpty(geometry)) { ...
user avatar
  • 374
2 votes
Accepted

Iterating over each pair of coordinates in Multipart geometry using Shapely

Try this piece of code: from shapely.geometry import Polygon exterior = [(2, 8), (7, 8), (7, 3), (2, 3), (2, 8)] interior = [(4, 7), (4, 5), (6, 5), (6, 7), (4, 7)] interior2 = [(3, 5), (3, 4), (4, 4)...
user avatar
  • 24k
2 votes

Convert Coordinate Notation warning, empty output

Your three lines of sample data worked for me with Input coordinate system: WGS_1984_UTM_Zone_10N Input coordinate format: UTM bands X Field (where the data is) UTM If the warning is being cause by ...
user avatar
2 votes

Reading coordinates linked/separated with underscore

Excel, LibreOffice etc. seem to have a 1,048,576 row limit, so that would not be an option here. However, setting _ as an additional separator to , when importing the file to QGIS does the job. (Didn'...
user avatar
  • 103
2 votes

Finding intervals of latitude/longitude of cities throughout the world at 0.01° precision

The answer to my question can be found in this post and the following website can be used to find a bounding box of any city in the world : https://www.mapdevelopers.com/geocode_bounding_box.php
user avatar
2 votes

Extracting latitude and longitude pairs as list from LineString in GeoPandas

You can use this one-liner if you are happy with a list of tuples instead of a list of lists: df['coords'] = df.geometry.apply(lambda geom: list(geom.coords))
user avatar
  • 82.1k
1 vote

Reading coordinates linked/separated with underscore

Using a ETL (FME) pulling your sample data: Extracted your coordinates here substring_x, substring_y and rebuilt the geometry from the coordinates given. These can be scaled-up easily for millions of ...
user avatar
  • 48.5k
1 vote

Order of latitude and longitude in EPSG:4326

I couldn't quite accept that PostGIS forces me to use (lon,lat) order when EPSG:4326 says it should be (lat,lon), so I spent way too much time thinking of a clever solution to find a suitable ...
user avatar
  • 151
1 vote

QGIS doesn't show datapoints of .csv file

Tick the box “decimal separator is comma”
user avatar
1 vote

Extracting latitude and longitude pairs as list from LineString in GeoPandas

Another option is to use the .mapping() method. import geopandas as gpd from shapely.geometry import LineString, mapping d = { 'id': [1, 2], 'geometry': [ LineString([ (...
user avatar
  • 24k
1 vote

Converting from esoteric coordinate systems to EPSG:4326 WGS 84

The EPSG:3081 NAD83 / Texas State Mapping System is supported by MyGeodata Cloud Converter so you can upload your Shapefile there, set EPSG:3081 as input coordinate system (if it is not recognized ...
user avatar
  • 515

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