Re: [gdal-dev] Heuristics to classify raster data ?

2014-03-06 Thread Ivan Price
if it really is trying to tell the difference between a map and a photograph could you make a decision based on the presence of text, and therefore use an OCR mechanism to judge if there are more than x words found in the image -i De : gdal-dev-boun...@lists.osgeo.org [mailto:gdal-dev-boun...@

Re: [gdal-dev] Heuristics to classify raster data ?

2014-03-06 Thread Dmitriy Baryshnikov
Hi Even, most of all depends what kind of imagery and maps you wish to classify. If the maps are classical scanned paper maps, and you want fast algorithm - the crosses of meter or degree grid can be the good pattern. But if we have areal images this will not work, as such images have crosses

Re: [gdal-dev] Heuristics to classify raster data ?

2014-03-06 Thread Joaquim Luis
Even, Did not get it all. You want a method that allows you to tell between a map and aerial/satellite image? I believe the k-means algorithm would produce quite good results on maps as is expectable that individual clusters would have low variance. Joaquim Hi, I'd be interested in an algo

[gdal-dev] Heuristics to classify raster data ?

2014-03-06 Thread Even Rouault
Hi, I'd be interested in an algorithm to automate the classification of raster data between maps (let's say rendering of OpenStreetMap data, or other digital maps) one one side and aerial/satellite imagery on the other side, without looking at metadata (bare geotiff typically). This is to help

Re: [gdal-dev] CartoDB driver fail because drop sequence sentence fails

2014-03-06 Thread Even Rouault
Le jeudi 06 mars 2014 18:45:50, Jorge Arevalo a écrit : > Hello, > > I'm trying to create a new table in CartoDB using the GDAL CartoDB > driver and Python bindings. I'm getting a HTTP 400 error. > > This is the source code: > > from osgeo import ogr > from osgeo import gdal > > gdal.SetConfigO

[gdal-dev] CartoDB driver fail because drop sequence sentence fails

2014-03-06 Thread Jorge Arevalo
Hello, I'm trying to create a new table in CartoDB using the GDAL CartoDB driver and Python bindings. I'm getting a HTTP 400 error. This is the source code: from osgeo import ogr from osgeo import gdal gdal.SetConfigOption("CARTODB_API_KEY", MY_API_KEY) drv = ogr.GetDriverByName("CartoDB") cart

Re: [gdal-dev] WAsP map output for ogr

2014-03-06 Thread Vincent Mora
A write-only driver if I understand well ? There are not so many instances of such drivers. I can think to the PGDump driver. I have a write-only driver here: https://github.com/Oslandia/gdal_wasp It's working but not complete, what I'll add in the next two weeks: - unit tests. - a line