Re: [gdal-dev] gdal_grid - cannot get interpolation to work

2011-01-27 Thread Chaitanya kumar CH
Werner, You swapped the X and Y extents in the command. On Thu, Jan 27, 2011 at 11:14 PM, Werner Reiche wrote: > > I'm trying to use gdal_grid to generate a .tiff file from a .csv file. > > The problem I am encountering is that output file always contains 'no-data' > values. > > The command I am

Re: [gdal-dev] Can I use ogr2ogr to postgresql with security?

2011-01-27 Thread Chaitanya kumar CH
Mike, To use SSL mode with OGR, your pqlib should be built with SSL support. On Fri, Jan 28, 2011 at 2:09 AM, Mike Axelrod wrote: > So it seems the build I’m using may not support ssl, I run ogrinfo with > sslmode=prefer I connect ok, but when I set sslmode=require I get this > error: > > > > -

RE: [gdal-dev] Can I use ogr2ogr to postgresql with security?

2011-01-27 Thread Mike Axelrod
So it seems the build I’m using may not support ssl, I run ogrinfo with sslmode=prefer I connect ok, but when I set sslmode=require I get this error: --- Details... --- call to ogrinfo failed: ERROR 1: PQconnectdb failed. sslmode value "require" inv

RE: [gdal-dev] Can I use ogr2ogr to postgresql with security?

2011-01-27 Thread Mike Axelrod
Thank you, I’ll be trying that out as soon as I get our postgresql server configured with ssl. Do you know if the postgresql public key is required on the client side? I see references to a ~/.postgresql/postgresql.key being available to the client. But I’m not clear if this is required or an

Re: [gdal-dev] Can I use ogr2ogr to postgresql with security?

2011-01-27 Thread Chaitanya kumar CH
Mike, OGR's postgresql/postgis driver makes the connection using PQconnectdb() method from the libpq library. You can set the option 'sslmode' to 'require', 'verify-ca' or 'verify-full' for a secure connection. Look for the documentation of PQconnectdb() for further details. On Fri, Jan 28, 2011

[gdal-dev] Can I use ogr2ogr to postgresql with security?

2011-01-27 Thread Mike Axelrod
Does ogr2ogr (and ogrinfo) natively support secure connections to postgresql? I need to run ogrinfo and ogr2ogr where the target is a postgresql server elsewhere on the network (in a different domain) and secure the communication. Mike Mike Axelrod, Software Engineer Pictometry International Co

[gdal-dev] gdal_grid - cannot get interpolation to work

2011-01-27 Thread Werner Reiche
I'm trying to use gdal_grid to generate a .tiff file from a .csv file. The problem I am encountering is that output file always contains 'no-data' values. The command I am using is: gdal_grid -txe -51.428009 -43.153992 -tye 46.112598 51.347198 -outsize 1024 796 \ -a nearest:rad

Re: [gdal-dev] to make black areas transparent

2011-01-27 Thread Frank Warmerdam
On 11-01-27 04:06 AM, ahmet temiz wrote: I want to make black areas transparent, and used: gdalwarp -overwrite -dstnodata 0 -dstalpha geobk_jeo.tif geobk_jeo2.png it didn't make them transparent. Ahmet, Try -srcnodata 0 instead of -dstnodata 0. Best regards, --

Fwd: [gdal-dev] Create a shape file with polygons

2011-01-27 Thread Jorge Martin
Hello, I've tried to develope the program that create a shape file with polygons. But the GIS open the shp but there is nothing inside only the attributes, not the polygons. I have the code from Python but I do not know the problem. Here I paste the code: int write_shapefilePolygon() { const c

[gdal-dev] Re: General geotiff question

2011-01-27 Thread Fernando Cacciola
On 1/27/2011 2:12 AM, Fernando Cacciola wrote: Hi, I have a general question (and I don't know where else to ask, sorry if this is off-topic) Can I assume that in practice the transformations from PCS to raster space are lineal? Never mind me... while this is true for, say, a normal mercator p

Re: [gdal-dev] copy features to empty shp file: extent problem

2011-01-27 Thread Emmiolla Emmiolla
Hey, Peter! Thank you for the hint. Actually no much reason, i can remake my code to create a new shp file in ogr. Thank you! emmiolla. On Thu, Jan 27, 2011 at 11:16 AM, Peter J Halls wrote: > Emmiolla, > > the problem is that OGR does not rewrite the extents when updating a > dataset; it o

Re: [gdal-dev] copy features to empty shp file: extent problem

2011-01-27 Thread Peter J Halls
Emmiolla, the problem is that OGR does not rewrite the extents when updating a dataset; it only calculates and writes the extents when creating a new dataset. This is documented behaviour. You are creating the dataset in ArcCatalog and then updating it with OGR, hence your problem. I

[gdal-dev] copy features to empty shp file: extent problem

2011-01-27 Thread Emmiolla Emmiolla
Hello, all! I need to copy features to the empty shp file. The code is really simple: const char *pszDriverName = "ESRI Shapefile"; OGRSFDriver *poDriver; OGRRegisterAll(); poDriver = OGRSFDriverRegistrar::GetRegistrar()->GetDriverByName( pszDriverName ); if

[gdal-dev] to make black areas transparent

2011-01-27 Thread ahmet temiz
I want to make black areas transparent, and used: gdalwarp -overwrite -dstnodata 0 -dstalpha geobk_jeo.tif geobk_jeo2.png it didn't make them transparent. regards -- Ahmet Temiz Jeoloji Müh. Planlama ve Zarar Azaltma Dairesi Başkanlığı Bilgi ve CBS grubu Eskişehir Yolu 10. km. Lodumlu / Ankar