Here is an example of my Cartouche (
https://en.wikipedia.org/wiki/Cartouche_(cartography)) layer -
https://gitlab.com/snippets/14766 in case that helps

Ian

On 11 February 2016 at 14:43, Ian Turton <[email protected]> wrote:

> It sounds like you have a problem somewhere, I regularly use Rectangle
> size = viewport.getScreenArea(); in my directlayers and it is fine. Can you
> post some code and I can see if I can spot the problem for you,
>
> Ian
>
> On 11 February 2016 at 14:17, Thomas Wunder <[email protected]>
> wrote:
>
>> Hello,
>> I'm trying to extend the DirectLayer class but when I'm trying to use
>> getWorldToScreen() on the viewport argument inside the draw(...) method
>> it's
>> always returning null. Is this the intended behaviour of that method in
>> GeoTools 14? If so, how am I supposed to get the worldToScreen transform
>> otherwise?
>>
>> By the way viewport.getScreenArea() always returns a (0,0,0,0) rectangle,
>> whereas viewport.getBounds() seems to work properly. The getBounds() of my
>> DirectLayer subclass I have implemented in a way that it returns sensible
>> values and a valid CRS.
>>
>>
>> I would really appreciate some hints on what could be going wrong here
>> and how
>> to get things working properly.
>>
>> Thanks in advance and best regards!
>>  Thomas
>>
>>
>> ------------------------------------------------------------------------------
>> Site24x7 APM Insight: Get Deep Visibility into Application Performance
>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>> Monitor end-to-end web transactions and take corrective actions now
>> Troubleshoot faster and improve end-user experience. Signup Now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
>> _______________________________________________
>> GeoTools-GT2-Users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>>
>
>
>
> --
> Ian Turton
>



-- 
Ian Turton
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to