Re: [gdal-dev] Can GDALCreate be Used for PNG?

2013-07-17 Thread Nik Sands
Thanks Frank. So I think I need to do something like the code below instead, ie, create a "MEM" dataset and later create-copy to a "PNG" dataset. This seems to be working (although the content of the image is all wrong - but that's another issue for me to try to figure out). Thanks again, Nik

Re: [gdal-dev] GRIB2 to NetCDF - Large areas of data missing

2013-07-17 Thread Etienne Tourigny
You probably are experiencing a known bug, when the warping operation needs more memory than the warp cache. Try setting adding the following to the gdalwarp command (if it doesn't work try a larger value). --config GDAL_CACHEMAX 1000 -wm 1000 Also please update the ticket with any new informati

[gdal-dev] GRIB2 to NetCDF - Large areas of data missing

2013-07-17 Thread Jason Greenlaw - NOAA Affiliate
I am experiencing strange behavior when reprojecting/converting a GRIB2 file to NetCDF using gdalwarp, where the resulting NetCDF file is missing lots of data (or possibly being set incorrectly to NoData) west of a certain longitude. However, if I instead reproject from GRIB2 to an intermediate fo

Re: [gdal-dev] gtiff with internal mask

2013-07-17 Thread Duarte Carreira
Well, you're right... I messed up recreating the footsteps... So, cleaning up: 1) create a rgba vrt using gdalwarp to cut the original mosaic with a shapefile gdalwarp -multi -wm 480 --config GDAL_CACHEMAX 312 -co alpha=yes -dstalpha -cutline shapes\index_diss.shp -of vrt originalmosaic.vrt test

Re: [gdal-dev] gtiff with internal mask

2013-07-17 Thread Even Rouault
Le mercredi 17 juillet 2013 14:23:29, Duarte Carreira a écrit : > Hi Even. > > Thanks so much for your tip! It works. I did have to specify I did not want > an alpha band when cutting with the shapefile: > > gdalwarp -multi -wm 480 --config GDAL_CACHEMAX 256 -co photometric=ycbcr > -co compress=j

Re: [gdal-dev] gtiff with internal mask

2013-07-17 Thread Duarte Carreira
Hi Even. Thanks so much for your tip! It works. I did have to specify I did not want an alpha band when cutting with the shapefile: gdalwarp -multi -wm 480 --config GDAL_CACHEMAX 256 -co photometric=ycbcr -co compress=jpeg -co alpha=no --config GDAL_TIFF_INTERNAL_MASK YES -cutline shapes\index

Re: [gdal-dev] MSSQLSpatial support for non-spatial tables

2013-07-17 Thread Tamas Szekeres
Jeremy, Thanks for that, I'll review the patch shortly. Best regards, Tamas 2013/7/17 Jeremy Palmer > Hi gdal devs, > > I've attached a patch to http://trac.osgeo.org/gdal/ticket/5155 to > support listing, reading and writing of non-spatial tables within the > MSSQLSpatial driver. The chan

[gdal-dev] MSSQLSpatial support for non-spatial tables

2013-07-17 Thread Jeremy Palmer
Hi gdal devs, I've attached a patch to http://trac.osgeo.org/gdal/ticket/5155 to support listing, reading and writing of non-spatial tables within the MSSQLSpatial driver. The change also allows the user to set the MSSQLSPATIAL_LIST_ALL_TABLES=YES configuration option to be able to read and li

[gdal-dev] Convert x,y to pixel,line in an OGRLinearRing

2013-07-17 Thread ??????
Hello: I've got an OGRLinearRing(or OGRPolygon and its type is wkbpolygon)and affine transformation coefficients(topx,topy,cellxsize,cellysize), now I need to get pixel/line (P,L) raster space value of all points in that OGRLinearRing object.Can anyone help? Thanks.___