[gdal-dev] PG: does OGR2OGR set the SRID correctly ?

2010-11-30 Thread Sebastian E. Ovide
Hi All, I've just uploaded a shape with ogr2ogr -f PostgreSQL PG:dbname='gis' host='10.0.1.40' port='5432' user='gis' password='gis' sebas.shp -lco 27700 -lco PRECISION=NO -progress -lco OVERWRITE=yes -lco dim=2 -nln sebas -overwrite but from select ST_SRID(wkb_geometry) from sebas; I'm

Re: [gdal-dev] PG: does OGR2OGR set the SRID correctly ?

2010-11-30 Thread Jorge Arévalo
On Tue, Nov 30, 2010 at 11:30 AM, Sebastian E. Ovide sebastian.ov...@gmail.com wrote: Hi All, I've just uploaded a shape with ogr2ogr -f PostgreSQL PG:dbname='gis' host='10.0.1.40' port='5432' user='gis' password='gis'  sebas.shp -lco 27700 -lco PRECISION=NO -progress -lco OVERWRITE=yes -lco

Re: [gdal-dev] PG: does OGR2OGR set the SRID correctly ?

2010-11-30 Thread Even Rouault
Selon Sebastian E. Ovide sebastian.ov...@gmail.com: Sebastian, The option -lco 27700 has no effect. The correct syntax would be something like -lco SRID=27700, but there's no such option, so don't loose your time trying that ;-) The SRID is set automatically by comparing the SRS of the source

[gdal-dev] No Simplify function

2010-11-30 Thread Namrata
Hi, I have installed GDAL 1.7.1 with GEOS 3.0.0 on my Solaris machine. But I cannot see any function as Simplify() as given in the tutorial: virtual OGRGeometry * Simplify (double dTolerance) const -- Simplify the geometry. Please can you guide me if I am missing anything here or do I

Re: [gdal-dev] No Simplify function

2010-11-30 Thread Frank Warmerdam
Namrata wrote: Hi, I have installed GDAL 1.7.1 with GEOS 3.0.0 on my Solaris machine. But I cannot see any function as Simplify() as given in the tutorial: virtual OGRGeometry * Simplify (double dTolerance) const -- Simplify the geometry. Please can you guide me if I am missing

Re: [gdal-dev] PG: does OGR2OGR set the SRID correctly ?

2010-11-30 Thread Sebastian E. Ovide
I've replaced the -lco 27700 with -a_srs EPSG:27700 now select ST_SRID(wkb_geometry) from sebas gives 4... any ideas ? On Tue, Nov 30, 2010 at 10:59 AM, Even Rouault even.roua...@mines-paris.org wrote: Selon Sebastian E. Ovide sebastian.ov...@gmail.com: Sebastian, The option -lco 27700

Re: [gdal-dev] PG: does OGR2OGR set the SRID correctly ?

2010-11-30 Thread Even Rouault
Sebastian, I'd suggest checking what I wrote at the end of my previous email : Make sure you've filled the spatial_ref_sys table with the appropriate PostGIS .sql script. The '3' you get sounds like the spatial_ref_sys table of this database was empty and that the PG driver added new entries in

Re: [gdal-dev] PG: does OGR2OGR set the SRID correctly ?

2010-11-30 Thread Sebastian E. Ovide
Hi Even, I've missed that part... just to confirm that with *psql -d [yourdatabase] -f spatial_ref_sys.sql and deleting those extra lines created automatically, now I can upload shapes with the right SRID* **thanks ! On Tue, Nov 30, 2010 at 2:32 PM, Even Rouault

[gdal-dev] ECMWF's GRIBs and NetCDFs

2010-11-30 Thread António Rocha
if there is any known issue on using NetCDF data in GDAL1.5? (I didn't find anything). Thanks Antonio R. __ Information from ESET NOD32 Antivirus, version of virus signature database 5661 (20101130) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com

Re: [gdal-dev] ECMWF's GRIBs and NetCDFs

2010-11-30 Thread Joaquim Luis
://trac.osgeo.org/gdal/ticket/3575 Joaquim Thanks Antonio R. __ Information from ESET NOD32 Antivirus, version of virus signature database 5661 (20101130) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com

[gdal-dev] Creating a range from given points

2010-11-30 Thread Kevin
Dear list, Please see in attached image what I am aiming to achieve with GDAL. The tool creating it is here, but I don't have arcgis: http://resources.arcgis.com/fr/gallery/file/geoprocessing/details?entryID=1FECB539-1422-2418-7FE1-77F9D088402D The input is a set of points and a fixed grid

[gdal-dev] Re: Updating GDAL on OSGEO4w (windows)

2010-11-30 Thread Luisa Peña
Hello Jurgen But you're running gdalinfo from the same shell, that you ran gdal16/gdal17/gdaldev and your current directory is _not_ %OSGEO4W_ROOT%\bin? Uhm Maybe I wasn't clear. I run gdal16 in C:/osgeo4w/bin and then I did gdalinfo --version I attached a screenshot that exemplifies it

Re: [gdal-dev] Re: Updating GDAL on OSGEO4w (windows)

2010-11-30 Thread Frank Warmerdam
Luisa Peña wrote: Hello Jurgen But you're running gdalinfo from the same shell, that you ran gdal16/gdal17/gdaldev and your current directory is _not_ %OSGEO4W_ROOT%\bin? Uhm Maybe I wasn't clear. I run gdal16 in C:/osgeo4w/bin and then I did gdalinfo --version I attached a

Re: [gdal-dev] Re: Updating GDAL on OSGEO4w (windows)

2010-11-30 Thread Frank Warmerdam
Luisa Peña wrote: You are absolutely rightr. It worked :) But, if I close the shell and open again, GDAL15 is again the pre-defined GDAL. How can I have this as defined? Are you familiar with winGRASS on OSGEO4w? My idea is to change current gdal (15) to gdal16 Or 18. Are you aware of

Re: [gdal-dev] No Simplify function

2010-11-30 Thread Johnny
Frank Warmerdam warmer...@pobox.com writes: Namrata wrote: Hi, I have installed GDAL 1.7.1 with GEOS 3.0.0 on my Solaris machine. But I cannot see any function as Simplify() as given in the tutorial: virtual OGRGeometry * Simplify (double dTolerance) const -- Simplify the geometry.

[gdal-dev] unresolved CPLAtomicAdd

2010-11-30 Thread Clay, Bruce
I have been using GDAL 1.7.1 for a while now in debug mode without problems. I recently compiled GDAL in release mode and did not see any errors during the build process. When I build my application I get the following link error : unresolved external symbol _CPLAtomicAdd. I can see

[gdal-dev] Re: how can I compile GDAL 1.7.3 with ecw 4.1 in Virsual Studio 2010

2010-11-30 Thread GeoJoda
is nobody who can answer this issues under, or maybe I have to move this issue to the MapServer user otherwise I thank all who participate in this forum. -- View this message in context:

Re: [gdal-dev] Re: how can I compile GDAL 1.7.3 with ecw 4.1 in Virsual Studio 2010

2010-11-30 Thread Frank Warmerdam
GeoJoda wrote: is nobody who can answer this issues under, or maybe I have to move this issue to the MapServer user otherwise I thank all who participate in this forum. GeoJoda, I don't see any reason you are likely to have better luck on the MapServer list. Reviewing this thread I am left

[gdal-dev] GDAL contouring problem

2010-11-30 Thread Ole Nielsen
Thanks for explaining the reason why the numeric value of 0.00 doesn't work as a fixed level in gdal_contour while the value of 0 does. I understand now the reason for this. However I would have thought one could replace the test for 'zeroness' in (atof(argv[i+1]) != 0 || EQUAL(argv[i+1], 0))