[gdal-dev] Loading data in MSSQL using ogr2ogr

2012-01-11 Thread Jeremy Palmer
Hi, I'm trying to load a CSV file into an existing MSSQL 2008 table using ogr2ogr: ogr2ogr -preserve_fid --debug on -append -skip failures -f MSSQLSpatial "MSSQL:server=\SQL_SERVER_2008;Integrated Security=true;database=;tables=test_csv_table_1(shape)" test1.vrt -nln test_csv _table_1 -

Re: [gdal-dev] Link against spatialite

2012-01-11 Thread Even Rouault
Le mercredi 11 janvier 2012 17:43:44, prairie Last a écrit : > I am trying to using the spatialite driver. According to the driver > documentation, “creating or updating a spatialite database requires > explicit linking against SpatiaLite library”. How do I explicitly link > against the SpatiaLite

Re: [gdal-dev] Thread safe?

2012-01-11 Thread Even Rouault
Le mercredi 11 janvier 2012 22:32:45, Billy Newman a écrit : > I am using a third party lib (imageio-ext) to leverage gdal in java code. > I have noticed that the imageio-ext folks have wrapped the gdal.Open(..) > call in a synchronized method. I am assuming this is to prevent > imageio-ext users

[gdal-dev] Thread safe?

2012-01-11 Thread Billy Newman
I am using a third party lib (imageio-ext) to leverage gdal in java code. I have noticed that the imageio-ext folks have wrapped the gdal.Open(..) call in a synchronized method. I am assuming this is to prevent imageio-ext users from hanging themselves with regard to thread safety. I have looked

Re: [gdal-dev] Problem w\images with one raster band

2012-01-11 Thread Joaquim Luis
On 11-01-2012 08:11, Timur Chabayev wrote: Hi, I'd like to use GDAL in my program to open raster images (MFC), but I have one problem - when I try to open images with one raster band, these image are drawn gray (or, in few cases, almost black). I' ve looked for a solution, but haven't found any.

[gdal-dev] Link against spatialite

2012-01-11 Thread prairie Last
I am trying to using the spatialite driver. According to the driver documentation, “creating or updating a spatialite database requires explicit linking against SpatiaLite library”. How do I explicitly link against the SpatiaLite library? Do I need to manually compile GDAL from source? Wenxuan __

[gdal-dev] Re: C# bindings - CreateCopy() progress delegate fails for WMS

2012-01-11 Thread Maksim Sestic
Forgot to add - in above example there's PNG driver set using: Dim drv As Driver = Gdal.GetDriverByName("PNG") So, nothing really unusual... Regards, Maksim Sestic -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/C-bindings-CreateCopy-progress-delegate-fails-for-WMS-tp71

[gdal-dev] C# bindings - CreateCopy() progress delegate fails for WMS

2012-01-11 Thread Maksim Sestic
Hi all, I'm experiencing issues while setting a progress delegate on CreateCopy() for WMS driver. Here's the example: Dim ds_in As Dataset = Gdal.Open("1.3.0http://wms.agiv.be/inspire/wms/orthobeeldvormingCRS:84image/pngTrueRGB3.7630209598585650.99872284246213.7662919669067950.9968195506639243922

Re: [gdal-dev] Re: Problem w\images with one raster band

2012-01-11 Thread Ari Jolma
oops, I seem to have asked off-list from Timur an example file. Timur, the file you sent me has a color table, which you need to use for RGB lookup - the value in the raster is an index to the color LUT. Best regards, Ari On 01/11/2012 12:08 PM, AksakTimur wrote: http://osgeo-org.1803224.n2

[gdal-dev] Re: Problem w\images with one raster band

2012-01-11 Thread AksakTimur
http://osgeo-org.1803224.n2.nabble.com/file/n7175677/Image.cpp Image.cpp Ari, void CViewMain::OnDraw() { if (m_image.IsOpen()) { m_image.Draw(hdcMem,m_image.m_XOff,m_image.m_YOff,m_image.m_imgWidth,m_image.m_imgHeight, m_image.m_xSrc,m_ima

Re: [gdal-dev] Problem w\images with one raster band

2012-01-11 Thread Ari Jolma
On 01/11/2012 10:11 AM, Timur Chabayev wrote: Hi, I'd like to use GDAL in my program to open raster images (MFC), but I have one problem - when I try to open images with one raster band, these image are drawn gray (or, in few cases, almost black). I' ve looked for a solution, but haven't fou

[gdal-dev] Problem w\images with one raster band

2012-01-11 Thread Timur Chabayev
Hi,  I'd like to use GDAL in my program to open raster images (MFC), but I have one problem - when I try to open images with one raster band, these image are drawn gray (or, in few cases, almost black). I' ve looked for a solution, but haven't found any.   Thanks in advance. 

[gdal-dev] Problem w\ images with one raster band

2012-01-11 Thread AksakTimur
Hi, I'd like to use GDAL in my program to open raster images (MFC), but I have one problem - when I try to open images with one raster band, these image are drawn gray (or, in few cases, almost black). I' ve looked for a solution, but haven't found any. Thanks in advance. -- View this messag