Re: [gdal-dev] OSM Driver and World Planet file (pbf format)

2012-07-31 Thread Even Rouault
> Another set of tests with a brand new and quite powerful laptop. > Specs for the > computer: > Intel i7-2760QM @2.4 GHz processor (8 threads) > Hitachi Travelstar Z7K320 7200 rpm SATA disk > 8 GB of memory > Windows 7, 64-bit > > GDAL-version r24717, Win64 build from gisinternals.com > > Timi

Re: [gdal-dev] splitting along 180

2012-07-31 Thread Sina Bahram
I was wondering if this isn't the right list for the below question, where would you folks recommend I ask? Thanks much Take care, Sina Website: www.SinaBahram.com Twitter: @SinaBahram -Original Message- From: Sina Bahram [mailto:sbah...@nc.rr.com] Sent: Monday, July 30, 2012 12:18 AM

Re: [gdal-dev] gdalbuildvrt problem with heterogenous band characteristics

2012-07-31 Thread Chaitanya kumar CH
Casper, You can edit the vrt file in a text editor. Just make a copy of the elements of one file and change them according to the fourth file. You can refer to the VRT tutorial[1] if you have any doubts. Can you provide the full gdalinfo report of the two files? [1]: http://www.gdal.org/gdal_vrt

Re: [gdal-dev] gdalbuildvrt problem with heterogenous band characteristics

2012-07-31 Thread CABO
What do you mean by manually? I run gdalbuildvrt using the command line, so I don’t understand how it can be done more manually ☺ gdalbuildvrt myfile.vrt file1.tif file2.tif file3.tif file4.tif I have tried using an old version of gdalinfo (1.7.0) and it gives tells me that my first 3 bands in

Re: [gdal-dev] gdalbuildvrt problem with heterogenous band characteristics

2012-07-31 Thread Chaitanya kumar CH
Casper, This message should not appear unless there is a difference in the band data type, colour interpretation or the band order. Can you check if manually adding the old file works? On Mon, Jul 30, 2012 at 11:01 PM, Casper Børgesen (CABO) wrote: > Hi! > > ** ** > > I’m trying to create

Re: [gdal-dev] gdalsrsinfo "ERROR - failed to load SRS definition"

2012-07-31 Thread Piero Campalani
Even, the purpose was simply to call the utility from within a Java servlet to retrieve the WKT translation of GML definitions at runtime. In my case this would be then necessary until GeoTools will not be able to decode GML definitions, but it unluckily seems that it neither can [1]. As Etienne s

Re: [gdal-dev] How to concatenate with newlines by using OGR SQL?

2012-07-31 Thread Rahkonen Jukka
Hi, Great, it does work. I was reading an entertaining page http://stackoverflow.com/questions/245395/hidden-features-of-windows-batch-files and because of http://stackoverflow.com/a/254169 I was just experimenting with ^ I wonder if OGR SQL could have one more special field for newline for makin

[gdal-dev] reprojection of global rasters to mollweide

2012-07-31 Thread Michael Schulz
Dear GDAL'ers, I have currently some issues with reprojecting global datasets in geographic coordinates to the Mollweide projection (GDAL 1.8.0). When using gdalwarp like: gdalwarp -s_srs 'EPSG:4326' -t_srs '+proj=moll +lon_0=0 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs' LatLon.200

Re: [gdal-dev] How to concatenate with newlines by using OGR SQL?

2012-07-31 Thread Chaitanya kumar CH
Jukka, This should work: ogr2ogr -f gpx test.gpx finland.osm.pbf -sql ^ *More? *"select name,CONCAT(addr_street,'^ *More? * *More? *',addr_housenumber) as 'desc' from points where amenity='toilets'" Note that the "More? " part is given by DOS. By giving ^ at the end of line you are saying that t

Re: [gdal-dev] How to concatenate with newlines by using OGR SQL?

2012-07-31 Thread Rahkonen Jukka
Hi, Sorry, I forgot to tell that I am on Windows. “$’\n’” looks so gurutic that I feel jealous. I hope I will never need to teach anybody to use it at work, though ☺ -Jukka- Chaitanya kumar wrote: Jukka, You can try to pass the newline character directly from the command line. With bash, y

Re: [gdal-dev] How to concatenate with newlines by using OGR SQL?

2012-07-31 Thread Chaitanya kumar CH
Jukka, You can try to pass the newline character directly from the command line. With bash, you can use $'\n'. In your case it will be like this: ogr2ogr -f gpx test.gpx finland.osm.pbf -sql "select name,CONCAT(addr_street,"$'\n'",addr_housenumber) as 'desc' from points where amenity='toilets'"