Re: [gdal-dev] GDAL Raster Attribute Tables.

2013-05-02 Thread Sam Gillingham
Hi Even, Another alternative that will have less impact on existing code and behaviour may be to leave GetDefatultRAT and SetDefaultRAT as they are (ie returning an in-memory representation of the attribute table - GDALRasterAttributeTable). This means existing code can Clone() and Serialize() etc

Re: [gdal-dev] GDAL Raster Attribute Tables.

2013-05-02 Thread Even Rouault
Le vendredi 03 mai 2013 00:23:48, Sam Gillingham a écrit : > Hi Evan, > > Response to your points below: > > 1) Good point about bool not being available in C. How about making > this an 8 bit int instead? The idea was to be able to express > True/False values without using a whole integer, thus

Re: [gdal-dev] GDAL Raster Attribute Tables.

2013-05-02 Thread Sam Gillingham
Hi Evan, Response to your points below: 1) Good point about bool not being available in C. How about making this an 8 bit int instead? The idea was to be able to express True/False values without using a whole integer, thus saving space. We included it in case future drivers support it. 2) I was

Re: [gdal-dev] GDAL Raster Attribute Tables.

2013-05-02 Thread Sam Gillingham
Thanks Ivan, We explicitly referenced the HFA driver as this is one which is commonly used and we are familiar with the source code having submitted a number of patches for the driver. We plan to provide default implementations of the new functions which will call the existing Get/Set functions (

[gdal-dev] Unable to access GDAL_DATA directory on Android

2013-05-02 Thread Chris Lawrence
I am developing an Android-based GDAL application. I have successfully built GDAL v1.9.2 and the SWIG-based Java bindings using the instructions provided on the building GDAL page. I am able to register the drivers and load a dataset in my application, however, I am unable to initialize a Spatial

[gdal-dev] Polygonize + 8conn => self intersection?

2013-05-02 Thread CABO
Hi all. I've got a simple question. When using GDAL Polygonize with 8-connectivity on two diagonal pixels (the X's) like this: X + + X Does this lead to a single polygon with self intersection or a multipolygon with two single polygons? It seems to give me a single polygon regardless of the g

Re: [gdal-dev] [SPAM?]: Re: Adding labels / specifying styles

2013-05-02 Thread Newcomb, Doug
Benoit, The Atlas plugin for qgis 1.8.0 , http://plugins.qgis.org/plugins/atlas/ , might do what you want. It's in the offiicial repository. Doug On Thu, May 2, 2013 at 12:06 PM, Tyler Mitchell wrote: > > However, I deal with a great number of files and I would like to > accelerate the process

Re: [gdal-dev] Adding labels / specifying styles

2013-05-02 Thread Jukka Rahkonen
Alexandre Gacon gmail.com> writes: > > > Hi, > The shapefile format is not a format who supports styles and labels. It is a data only format. So you can not associate labels to your points. You can at most add a column with a text. It is true, but not the whole truth. GDAL does understand cert

Re: [gdal-dev] [SPAM?]: Re: Adding labels / specifying styles

2013-05-02 Thread Tyler Mitchell
> However, I deal with a great number of files and I would like to accelerate > the process. That is why I am asking for a script based solution. I can > already import all my shapefiles with a Python script. I would like to > indicate which column to use as label. I see... perhaps you could lo

Re: [gdal-dev] [SPAM?]: Re: Adding labels / specifying styles

2013-05-02 Thread Benoît Laurent
Thank you for your answer. On 2013-05-02, at 8:45 AM, Benoît Laurent wrote: After that, I am importing my shapefiles in QGis. Maybe, I should create my labels using a Python script based on the added text column ? You shouldn't have to use Python to draw labels, there are capabilities in th

Re: [gdal-dev] Adding labels / specifying styles

2013-05-02 Thread Tyler Mitchell
On 2013-05-02, at 8:45 AM, Benoît Laurent wrote: > After that, I am importing my shapefiles in QGis. Maybe, I should create my > labels using a Python script based on the added text column ? You shouldn't have to use Python to draw labels, there are capabilities in the properties for each laye

Re: [gdal-dev] Adding labels / specifying styles

2013-05-02 Thread Tyler Mitchell
Once you've got the data stored in the table, you can then use desktop mapping products like QGIS (http://qgis.org) to use those columns to fuel labelling on your maps. I highly recommend you checkout QGIS for your next steps. Tyler On 2013-05-02, at 8:38 AM, Alexandre Gacon wrote: > Hi, >

Re: [gdal-dev] Adding labels / specifying styles

2013-05-02 Thread Benoît Laurent
Thank you for your quick answer. Hi, The shapefile format is not a format who supports styles and labels. It is a data only format. So you can not associate labels to your points. You can at most add a column with a text. That's what I have already done indeed. After that, I am importing my

Re: [gdal-dev] Adding labels / specifying styles

2013-05-02 Thread Alexandre Gacon
Hi, The shapefile format is not a format who supports styles and labels. It is a data only format. So you can not associate labels to your points. You can at most add a column with a text. Regards Alexandre 2013/5/2 Benoît Laurent > Hello, > > I am a newbie with GDAL and OGR. > > I managed to

Re: [gdal-dev] Anyone interested in mentoring my project?

2013-05-02 Thread Jorge Arevalo
Hello Tyler, Thanks for your words! Best regards, Jorge On Thu, May 2, 2013 at 5:27 AM, Tyler Mitchell wrote: > Jorge, > > While I'm not really an ideal mentor, I really like the idea. I hope you > can find someone! > > Tyler > > On 2013-04-30, at 12:55 PM, Jorge Arévalo wrote: > > Hello, >

[gdal-dev] Adding labels / specifying styles

2013-05-02 Thread Benoît Laurent
Hello, I am a newbie with GDAL and OGR. I managed to create a shapefile following the provided sample : http://www.gdal.org/ogr/ogr_apitut.html. The shapefile contains points. Now, I would like to associate labels to my points. I also wish to specify the size, the color of my points. Is it

[gdal-dev] Polygon simplification using the borders to preserve topology

2013-05-02 Thread Roger Veciana i Rovira
Hello, I have the a shapefile full of polygons, and* *I want to simplify them, preserving the points they share. ogr2ogr -simplify simplifies each polygon independently, so the borders don't fit properly. Is there a way to do this with GDAL? TopoJSON format( https://github.com/mbostock/topojson),

Re: [gdal-dev] GoogleEarth wont read KML files created by ogr2ogr: Unknown element

2013-05-02 Thread Nikos Alexandris
Frank Warmerdam wrote: > Could you file a ticket, and attach a working and nonworking kml example? Done. > Any idea if this behavior varies across versions of google earth? Not between ver. 6 and 7 under (K)Ubuntu at least. > I wonder if libkml can read the file(s) ok. As usual, lack of time