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

2012-07-31 Thread Jukka Rahkonen
Hi, I was playing with the new OSM driver and tried to transfer some POI features into my GPS. It goes well by using GPX format in between. However, I have a little problem. My GPS supports multiline descriptions but I do not know how to insert newlines into the output of ogr2ogr. The

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' On

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,

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

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

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

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

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) c...@niras.dkwrote: Hi! ** ** I’m trying

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, 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]:

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 Timings for