On Fri, Jun 13, 2014 at 10:36 AM, Andrea Aime <[email protected]>
wrote:

> On Fri, Jun 13, 2014 at 6:28 PM, Ian Schneider <
> [email protected]> wrote:
>
>> The implementation I came up with renders a question mark using the ttf
>> specifier and makes a better, single log message. I'm not too happy with
>> the way the mark looks, however and I'm thinking a more 'standard' (if
>> there is such a thing) missing image icon would be better. I suppose this
>> could be included and referenced via a jar URL?
>>
>
> Hmm... the TTF font you are using would have to be part of the renderer
> jar, there is no standard java font available on all jdks.
>
>
This crossed my mind, so I used ttf://SansSerif#0x003F as I understood this
'logical font' will be guaranteed to map to some font.

Anyways, reading the spec, there are some clues of what we migth do:
>
> "If the Graphic element is omitted from the parent element, then nothing
> will be plotted"
>
> "The default if neither an ExternalGraphic nor a Mark is specified is to
> use the default
> mark of a “square” with a 50%-gray fill and a black outline, with a size
> of 6 pixels,"
>
>
Thanks for seeing that - I missed it.


> So, what if we have a Graphic, but none of the various external graphics
> in it works?
> Given that the normal behavior is to ignore the ones that are not working
> and move on,
> I'd say the behavior closest to the spec suggestions is  to act as if no
> external graphic
> nor mark was provided, and  do the 50% gray fill and black outline 6px
> square?
>

Makes sense to me and seems inline with the intentions of the spec.

-- 
Ian Schneider
Software Engineer | Boundless
[email protected]
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to