Re: [gdal-dev] Using VRT images with derived bands (pixel function) with MapServer

2012-02-16 Thread Armin Burger
Hello Yves I succeeded to get it running with Mapserver, after some testing and additional settings also with PHP MapScript. For others who might be interested in the various steps, I added a short how-to to the Mapserver Wiki, see http://trac.osgeo.org/mapserver/wiki/RasterVrtDerivedBands

Re: [gdal-dev] Loading a scaled rawfile via VRT

2012-02-16 Thread Solomon Gibbs
Sure. Here is what I am trying to do. The raw data has some junk on the front end of the file that needs to be skipped: xxx 9587 2 2952 MSB Then, apply the scaling factor: xxx.vrt 1 0 0.707 So, I'm not clear if the SourceProperties tag can be used

Re: [gdal-dev] OGR SQL CAST and field name alias selects incorrect fields in some cases

2012-02-16 Thread Even Rouault
Le mercredi 15 février 2012 16:51:28, Eli Adam a écrit : > Hi all, > > I'm trying to use OGR SQL to CAST and field name aliasing together and > getting incorrect results (or issuing incorrect commands) when > combined with two LEFT JOINs on MDB (both ODBC and MDB drivers). The > results are incor

Re: [gdal-dev] Loading a scaled rawfile via VRT

2012-02-16 Thread anton . korosov
Hi Solomon, I believe you can just specify the following tag within the ComplexSource: (of course setting the correct values) In this tag you can explicitly indicate the type of the source. For a more definite answer can you please give an example of the two VRT files that you create. Anton >

[gdal-dev] Loading a scaled rawfile via VRT

2012-02-16 Thread Solomon Gibbs
I have raw data stored as UInt16 that needs to be scaled by a (floating point) calibration factor and presented as Float32. I can successfully load the UInt data using VRTRawRasterBand and scale it using VRT ComplexSource. However, this seems to mean creating two separate VRT datasets and files. I

Re: [gdal-dev] Using VRT images with derived bands (pixel function) with MapServer

2012-02-16 Thread Yves Jacolin (free)
Hello, I used the Makefile file in an archive I found in a GDAL ticket. So I guess I am using a .so file. Y. Le jeudi 16 février 2012 10:15:58, Armin Burger a écrit : > Yves > > thanks a lot for the help. > > So it is sufficient to add SetEnv GDAL_DRIVER_PATH ..., place the file with > the pi

Re: [gdal-dev] Using VRT images with derived bands (pixel function) with MapServer

2012-02-16 Thread Yves Jacolin
Armin, I am using such application stack: netcdf > vrt and pixel functions > GDAL > MapServer We have a tiled layer inside PostGIS and we juste configure the layer like all other tiled datasource: LAYER STATUS ON NAME "layer_idx" TYPE POLYGON CONNECTION "dbname=mydb host=localhost user=myU

Re: [gdal-dev] Using VRT images with derived bands (pixel function) with MapServer

2012-02-16 Thread Armin Burger
Yves thanks a lot for the help. So it is sufficient to add SetEnv GDAL_DRIVER_PATH ..., place the file with the pixel function there, and Mapserver can find pixel function referenced in the VRT file? What kind of compilation did you use? Create a shared library *.so or is the *.o object file