On 31/12/12 19:31, Andrea Aime wrote:
> The reason I'm proposing it is that it avoids breaking the public API for
> symbolizers, which may result in a lot of changes both in the current
> code base and client code.
> This also avoids the need for a formal proposal, which is automatically
> required the moment you break the API.
makes sense.

I've started to implement this feature, and I bumped into an issue that
is related to default values in SLD & uoms. this is related to all uom
units, not just target-device-size uom units.

it seems the default values, for example stroke-width, etc. are sensible
pixel values. but if a different uom is specified, the default value
might not necessarily make sense in the specified uom. for example, the
default for stroke-width is 1 pixel, which is stored as a constant
expression in ConstantStroke.DEFAULT. but the default is the same for
all uoms. thus, the constant value of 1 is correct if the uom is pixels,
but it will have a different meaning if the uom is meters (as in
real-world meters), or feet, etc. now a real-world meter might be close
to 1 pixel in some renderings, but it's surely incorrect. the
discrepancy is of course bigger if one uses a 1 meter (as in
target-device meter) as the uom.

for Stroke is see that the defaults are specified in
ConstantStroke.DEFAULT, and there is a reference there to the SLD spec,
in terms of default values. you mentioned earlier that real-world uoms
are part of SLD 1.1 - I wonder if this spec also deals with default
values in cases of non-pixel uoms? I trued to find defaults in the SLD
spec as found here: http://www.opengeospatial.org/standards/sld in
document #05-078r4, and also in the schema definitions - but, didn't
really find them. Most probably I was looking at the wrong place.


Akos

------------------------------------------------------------------------------
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to