Re: [gdal-dev] Ellipsoidal length of a line

2019-06-14 Thread Nicolas Cadieux
Thanks, Could work but I think this will be too slow. I wonder how QGIS does it? I guess they use code from Proj.4. If anyone has an other idea, shoot! Cheers Nicolas > Le 14 juin 2019 à 13:20, Patrick Young a > écrit : > > Not exactly what you want, but you can do this with PostGIS by cast

Re: [gdal-dev] Ellipsoidal length of a line

2019-06-14 Thread Nicolas Cadieux
Thanks, The link brings me to some helpful packages. I thought gdal could be helpful as is has a very good OGR library that deals with this stuff. Nicolas > Le 14 juin 2019 à 12:19, Atle Frenvik Sveen a écrit : > > Hi! > > Not sure if would want to use gdal for this task*, but take a loo

[gdal-dev] Stuck with python gdal.Grid throwing an error

2019-06-14 Thread Stephen Woodbridge
Hi, I can't figure out what I'm doing wrong but gdal.Grid() keeps throwing an error and I've run out of things to try and work around the issue. On Ubuntu using these packages: gdal-bin:amd64/xenial 2.2.2+dfsg-1~xenial1 uptodate gdal-data:all/xenial 2.2.2+dfsg-1~xenial1 uptodate libgdal1i:amd6

Re: [gdal-dev] Question on python gdal.Rasterize()

2019-06-14 Thread Stephen Woodbridge
OK, After some more research, I found the rasterize.py autotest file which was a huge help and I have code working that burns the tracks into an image. But its not exactly what I hoping for so I'll give the gdal.Grid() a try. Thanks,   -Steve On 6/14/2019 1:58 PM, Stephen Woodbridge wrote: H

[gdal-dev] Question on python gdal.Rasterize()

2019-06-14 Thread Stephen Woodbridge
Hi all, My goal is to take satellite track data and create a gtiff file using Python. The satellite data is in a NetCDF file, which I can read in Python and has variables lat, lon, ssha. There are a continue stream of the NetCDF data over time so I plan to just keep loading them as they become

Re: [gdal-dev] Ellipsoidal length of a line

2019-06-14 Thread Patrick Young
Not exactly what you want, but you can do this with PostGIS by casting your geometry to the geography type: https://postgis.net/workshops/postgis-intro/geography.html On Fri, Jun 14, 2019 at 10:26 AM Atle Frenvik Sveen wrote: > Hi! > > Not sure if would want to use gdal for this task*, but take

Re: [gdal-dev] Ellipsoidal length of a line

2019-06-14 Thread Atle Frenvik Sveen
Hi! Not sure if would want to use gdal for this task*, but take a look at this blog post: https://janakiev.com/blog/gps-points-distance-python/ *or if it's doable, i guess not, since the scope of gdal is reading/writing geospatial formats -a - Atle Frenvik Sveen a...@frenviksveen.net

[gdal-dev] Ellipsoidal length of a line

2019-06-14 Thread Nicolas Cadieux
Hi, I am trying to get the length of a line in python. (Not just the straight length between the first and last nodes). Using geopandas, (therefore the Shapely lib) I am getting the euclidien distance even though the dataframe holdings the line geometries has a CRS (WGS84, zone UTM 18 S). Obv

[gdal-dev] Help with GPM Data

2019-06-14 Thread Rajesvari Parasa
Hello, This is the first time that I am dealing with Global Precipitation Measurement (GPM) datasets. I am downloading these from GES DISC. From the site, only NetCDF and HDF5 format files are available for download. When I open these in QGIS, I see that these are wrongly oriented. As if lat, long