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

2013-07-17 Thread Frank Warmerdam
Nik, No, the PNG format does not support direct creation, only creation by copying an existing dataset (GDALCreateCopy()). You can interactively see the capabilities of a driver like this: gdalinfo --format png Format Details: Short Name: PNG Long Name: Portable Network Graphics

[gdal-dev] intersection map of two maps

2013-07-17 Thread Ahmet Temiz
hello I have two raster map which have different extents. I want to create intersection map of two maps. what expression should I use ? regards -- Ahmet Temiz Jeoloji Müh. Afet ve Acil Durum Yönetimi Başkanlığı Planlama ve Zarar Azaltma Dairesi Başkanlığı Ahmet

Re: [gdal-dev] using gdalwarp with a new projection in proj.4

2013-07-17 Thread Frank Warmerdam
Michael, Healpix is not directly supported by OGRSpatialReference - the core of the coordinate system machinery for GDAL/OGR. However, you can request GDAL to treat this as a PROJ.4 extension to WKT by adding the +wktext flag. I would add that the -E and -f flags are options to the cs2cs

[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?

[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

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 jpal...@linz.govt.nz 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

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

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

[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

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

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.