On 31/12/12 19:01, Andrea Aime wrote: > > It is an extension to SLD 1.0, not an extension to SE 1.1, where it's > part of the standard oh, I see. than it really makes sense to have a naming convention that reflect the extension nature of this feature > Wondering if we should just create a custom Unit implementation > targeting > device space, something like "DeviceUnit implements Unit<Length>" and have > it be a delegate to an underlying Unit<Length>, such as SI.METER (that > would be configurable, so that people can express the screen sizes > in inches if they want to). > > The code above would check for DeviceUnit and do a different conversion > from the target value to the equivalent number of pixels. yes, this is also an approach > > Hum... and to do that, I guess UomRescaleStyleVisitor would have to > receive > not only the scale denominator, but also the current DPI? > yes, but that's easy to do (I've already done it actually on my workstation)
ok, so I'll try to implement this with the above approach, hopefully this week ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 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_122412 _______________________________________________ GeoTools-Devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
