Re: [gdal-dev] proper way to get area of a lon/lat polygon

2020-09-18 Thread Alan Snow
EPSG 9835 is an conversion method which needs some parameters defined: https://pyproj4.github.io/pyproj/stable/api/crs/coordinate_operation.html#lambertcylindricalequalareaconversion You can use that conversion to build a projected CRS: https://pyproj4.github.io/pyproj/stable/build_crs.html#projec

Re: [gdal-dev] proper way to get area of a lon/lat polygon

2020-09-18 Thread Mikhail Kruk
Yes, you are correct, that was one of my first attempts and was wrong because I don't really understand these projection systems. I now have a better one which sort of works and produces areas in meters by setting first system to sr.SetWellKnownGeogCS("EPSG:4326") Now I am struggling with selecting

Re: [gdal-dev] proper way to get area of a lon/lat polygon

2020-09-18 Thread Michael Patrick
> > ... but basically I came to the conclusion that when people talk about an > area of something on Earth they really mean the area of a projection (am i > right about that?) and so i need to specify a projection before getting a > meaningful area. So i ended up with this code: > > wkt = "POLYGON

Re: [gdal-dev] Undefined reference to ....@PHPG_9.6

2020-09-18 Thread Matthys Kroon
Hi, I ran into some problems when trying to install some R packages and I believe the problem has something to do with my gdal configuration. The R package is trying to load the gdal libraries. I am using Fedora 32 with installed package: Installed Packages Name : gdal-devel Version

Re: [gdal-dev] proper way to get area of a lon/lat polygon

2020-09-18 Thread Javier Jimenez Shaw
The documentation of AssignSpatialReference says: "Any existing spatial reference is replaced, but under no circumstances does this result in the object being reprojected. It is just changing the interpretation of the existing geometry." You have to reproject the polygon coordinates to actually h