I have a linestring which I need to buffer but the problem is that I am not able to understand the unit metric in which the buffer function accepts the linestring.
Asked
Active
Viewed 1,755 times
-1
-
2Possible duplicate of geopandas/shapely: what units it uses/calculates for area and distance functions? – Hornbydd May 17 '18 at 15:23
2 Answers
0
If the coordinates are in degrees, I believe the buffer unit will be as well. If you want to specify meters or feet, you need to first reproject your geometry into a CRS that uses meters or feet.
Jon
- 2,894
- 2
- 19
- 35
0
From Shapely's project page:
Shapely is not concerned with data formats or coordinate systems, but can be readily integrated with packages that are.
so @Jon's answer is correct. The unit depends on the unit of your input data. You can use geopandas, pyproj or GDAL to convert your lineString to another crs.
RutgerH
- 3,285
- 3
- 27
- 55