Re: [gdal-dev] ReadRaster C# Incorrect values

2016-10-18 Thread Even Rouault
Le mardi 18 octobre 2016 15:23:28, mvscheers a écrit : > Thanks for the suggestion, > > I posted a wrong example (Tried everything, converting bytes to doubles > etc) I have tried reading float64 -> c# double. same problem. > > Doing this in c++ yields the same result. > > Viewing this grib file

Re: [gdal-dev] ReadRaster C# Incorrect values

2016-10-18 Thread mvscheers
Thanks for the suggestion, I posted a wrong example (Tried everything, converting bytes to doubles etc) I have tried reading float64 -> c# double. same problem. Doing this in c++ yields the same result. Viewing this grib file in panoply gives correct results. Still at a loss here -- View th

Re: [gdal-dev] using WFS in virtual format

2016-10-18 Thread Even Rouault
Le mardi 18 octobre 2016 01:11:24, jp internet a écrit : > Hello, > This is the first message I send on this list. > I want to know if it's possible to write a VRT from a WFS datasource write > with a .xml and not with WFS:http:// thank you in advance for your > help > Jérôme, not completely

Re: [gdal-dev] Get specific parameter in CRS information with Python gdal

2016-10-18 Thread Even Rouault
Le mardi 18 octobre 2016 11:38:08, Ramiro Marco Figuera a écrit : > Hi, > > I have a tif image containing its CRS. I would like to extract the > parameter "central_meridian". I have the following piece of code: > > from osgeo import gdal,osr > ds=gdal.Open(r'hrsbf5c_07_if177l_trr3_CAT_scale_t

Re: [gdal-dev] ReadRaster C# Incorrect values

2016-10-18 Thread Even Rouault
Le mardi 18 octobre 2016 15:00:01, mvscheers a écrit : > Hi, > > Trying to get data from attached grib file. > > (BAND 1) > > float[] bfr = new float[dataBand.XSize * dataBand.YSize]; > unsafe > { > fixed (float* dataPtr = bfr) > { >

[gdal-dev] ReadRaster C# Incorrect values

2016-10-18 Thread mvscheers
Hi, Trying to get data from attached grib file. (BAND 1) float[] bfr = new float[dataBand.XSize * dataBand.YSize]; unsafe { fixed (float* dataPtr = bfr) { dataBand.ReadRaster(0, 0, dataBand.XSize, dataBand.YSize

[gdal-dev] Get specific parameter in CRS information with Python gdal

2016-10-18 Thread Ramiro Marco Figuera
Hi, I have a tif image containing its CRS. I would like to extract the parameter "central_meridian". I have the following piece of code: from osgeo import gdal,osr ds=gdal.Open(r'hrsbf5c_07_if177l_trr3_CAT_scale_trial_p.img.tif') prj=ds.GetProjection() print prj srs=osr.SpatialReference(w