Hello Michael,
I solved problem with Label orientation, probably i used some bad packages
for styling,
but i am not fairly sure what was problem.
However i now have another issue. I got exception in JMapPane
setMapContext(MapContext context):
Exception in thread "main" java.lang.NoSuchMethodError:
org.geotools.map.MapLayer.setSelected(Z)V
at org.geotools.demo.swing.JMapPane.setMapContext(JMapPane.java:381)
at
org.geotools.demo.mapframe.JMapFrame.setMapContext(JMapFrame.java:324)
at org.geotools.demo.mapframe.JMapFrame.showMap(JMapFrame.java:98)
I use new gt-render-2.6-SNAPSHOT and i don't know what i am doing wrong.
Best regards.
iceDice wrote:
>
> Hello Michael,
>
> I will send to you my sample code and data but maybe it is better if you
> can
> give
> me your e-mail address because dataset is little to big to be sent via
> Nabble.
>
> Best regards.
>
> 2009/9/11 mbedward (via Nabble)
> <[email protected]<ml-user%[email protected]>
>>
>
>> 2009/9/11 iceDice wrote:
>> >
>> > I use jars from 2.6-SNAPSHOT to get JMapFrame to work.
>> > Do you have any idea what is problem?
>>
>> Were you using GeoTools 2.5 when you got the correct results ?
>>
>> Label placement - in fact, rendering of everything - is the
>> responsibility of the renderer. JMapPane is just displaying the
>> results (just a dumb panel in other words :)
>>
>> What actually happens is that the renderer is asked to draw the
>> features and labels within the current map area into a BufferedImage
>> and this is then displayed by the map pane. The same basic method is
>> used in 2.5 and 2.6 versions.
>>
>> So I'm guessing that the label differences are caused by changes in
>> GeoTools rendering code between 2.5 and 2.6. For this I'll have to
>> defer to Andrea (copying this message to him) because I don't know
>> enough about the rendering and styling logic myself. Hopefully he can
>> suggest an explanation (e.g. changes in treatment of SLD).
>>
>> Meanwhile, if it's possible to send me a small sample of data and your
>> SLD that works in 2.5 but not in 2.6 I will try it here and see if I
>> can spot something.
>>
>> Michael
>>
>> ------------------------------------------------------------------------------
>>
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>> 30-Day
>>
>> trial. Simplify your report design, integration and deployment - and
>> focus
>> on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now. http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> Geotools-gt2-users mailing list
>> [hidden
>> email]<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3625053&i=0>
>> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>>
>>
>> ------------------------------
>> View message @
>> http://n2.nabble.com/Display-map-JMapPane-tp3602321p3625053.html
>> To unsubscribe from Re: Display_map_JMapPane, click here< (link removed)
>> >.
>>
>>
>>
>
>
--
View this message in context:
http://n2.nabble.com/Display-map-JMapPane-tp3602321p3654724.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users