With Nik available for testing, I can update the style table definition.
On 3 Aug 2014 16:39, "Even Rouault" wrote:
> Le dimanche 03 août 2014 12:55:44, Nik Sands a écrit :
> > Thanks Even,
> >
> > Yes, deleting the spaces seems to get it working correctly. Is this
> > expected? Are spaces an i
Le dimanche 03 août 2014 12:55:44, Nik Sands a écrit :
> Thanks Even,
>
> Yes, deleting the spaces seems to get it working correctly. Is this
> expected? Are spaces an illegal part of a style string?
>
> The documentation includes spaces in the example .ofs file there, so I had
> copied that fo
Le dimanche 03 août 2014 12:53:00, Chaitanya kumar CH a écrit :
> I'll add these checks to the method that reads the ofs file. Ticket #5602
You mean a check to reject those lines or to accept them and ignore the
leading spaces ?
Make sure to extend autotest/ogr/ogr_style.py that I had initiated
Thanks Even,
Yes, deleting the spaces seems to get it working correctly. Is this expected?
Are spaces an illegal part of a style string?
The documentation includes spaces in the example .ofs file there, so I had
copied that format when creating my text file.
Cheers,
Nik.
On 3 Aug 2014, at
Le dimanche 03 août 2014 12:41:56, Nik Sands a écrit :
> Sorry, my mistake... I had my logging in the wrong place. styleChars is
> actually of the form (including the leading space):
>
> ' PEN(c:#A08080,w:2pt); LABEL(c:#00,s:18pt,t:{title})'
The issue must be the leading space before P
Sorry, my mistake... I had my logging in the wrong place. styleChars is
actually of the form (including the leading space):
' PEN(c:#A08080,w:2pt); LABEL(c:#00,s:18pt,t:{title})'
On 3 Aug 2014, at 8:35 pm, Nik Sands wrote:
> On one of the iterations through this code, styleChars
On one of the iterations through this code, styleChars is:
'vegetation_low: BRUSH(fc:#A0F0A0); LABEL(c:#004000,s:18pt,t:{title})'
So perhaps the inclusion of the style name is the problem?
This was read into a style table from a text file using
'OGR_STBL_LoadStyleTable()'. I had assume
Le dimanche 03 août 2014 12:11:42, Nik Sands a écrit :
> I'm just starting out using the styles features of OGR (using the C API)
> but at struggling with a few elements of it.
>
> My code (copied below) fails to get any OGRStyleToolH. Ie, the "if ( tool
> )" block never gets run, because 'tool'
I'm just starting out using the styles features of OGR (using the C API) but at
struggling with a few elements of it.
My code (copied below) fails to get any OGRStyleToolH. Ie, the "if ( tool )"
block never gets run, because 'tool' is always NULL at the point indicated by
the comment. But the