[gdal-dev] Adding labels / specifying styles

Newcomb, Doug doug_newcomb at fws.gov
Fri May 3 04:50:54 PDT 2013


Benoit,
 You can also script plotting in GRASS ,
http://grasswiki.osgeo.org/wiki/Ps.map_scripts

Doug


On Fri, May 3, 2013 at 3:24 AM, Benoît Laurent <blaurent at heurisis.eu> wrote:

> Le 02/05/2013 18:29, Jukka Rahkonen a écrit :
>
>  Alexandre Gacon <alexandre.gacon+gdal <at> 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 certain kind of
>> attributes as drawing styles,
>>
> I had searched in that direction, more precisely in the OGR API
> documentation : http://www.gdal.org/ogr/**classOGRStyleTool.html<http://www.gdal.org/ogr/classOGRStyleTool.html>.
> However, I was stuck as I did not know to which objects the styles has to
> be applied. I was looking for some samples.
>
> At that point, I have the choice between different solutions:
> 1) using the Atlas plugin ;
> 2) coming back to my first idea of using OGR ;
> 3) trying to examine the way Qgis projects are generated ;
> 4) writing a python script.
>
> The easiest solution seems to be the first one... In the long term, I
> would prefer the second one.
>
> I shall tell you my choice.
>
> Regards,
>
> Benoît
>
>
> ______________________________**_________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/**mailman/listinfo/gdal-dev<http://lists.osgeo.org/mailman/listinfo/gdal-dev>
>



-- 
Doug Newcomb
USFWS
Raleigh, NC
919-856-4520 ext. 14 doug_newcomb at fws.gov
---------------------------------------------------------------------------------------------------------
The opinions I express are my own and are not representative of the
official policy of the U.S.Fish and Wildlife Service or Dept. of the
Interior.   Life is too short for undocumented, proprietary data formats.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130503/cc49883f/attachment.html>


More information about the gdal-dev mailing list