Re: [Geotools-gt2-users] Problems to rendering the map using JMapPane

2014-01-21 Thread Frank van der Hulst
Hal > > > > *From:* Frank van der Hulst [mailto:drifter.fr...@gmail.com] > *Sent:* Monday, January 20, 2014 7:31 PM > *To:* Hal Mirsky > *Cc:* geotools users > > *Subject:* Re: [Geotools-gt2-users] Problems to rendering the map using > JMapPane > > > > Hi

Re: [Geotools-gt2-users] Problems to rendering the map using JMapPane

2014-01-21 Thread Hal Mirsky
k van der Hulst [mailto:drifter.fr...@gmail.com] Sent: Monday, January 20, 2014 7:31 PM To: Hal Mirsky Cc: geotools users Subject: Re: [Geotools-gt2-users] Problems to rendering the map using JMapPane Hi Hal, I found that I needed to ensure that all 'heavy' processing is done on a s

Re: [Geotools-gt2-users] Problems to rendering the map using JMapPane

2014-01-20 Thread Frank van der Hulst
gt; > *From:* Jairo de Almeida [mailto:jairodealme...@gmail.com] > *Sent:* Monday, January 20, 2014 9:58 AM > *To:* hmirsky > *Subject:* Re: [Geotools-gt2-users] Problems to rendering the map using > JMapPane > > > > Probably a conflict with threads that are triggered

Re: [Geotools-gt2-users] Problems to rendering the map using JMapPane

2014-01-20 Thread Hal Mirsky
le(mystyle); try { Thread.sleep(100); } catch (InterruptedException e) { } Hal From: Jairo de Almeida [mailto:jairodealme...@gmail.com] Sent: Monday, January 20, 2014 9:58 AM To: hmirsky Subject: Re: [Geotools-gt2-users] P

Re: [Geotools-gt2-users] Problems to rendering the map using JMapPane

2014-01-20 Thread hmirsky
Hello, I am seeing a similar problem with my geotools application. I create a map display with several layers created from shapefiles and additional "direct layers" for a scalebar, title, and legend. The styles of two of the shapefile layers are updated based on user action. For example, the use

Re: [Geotools-gt2-users] Problems to rendering the map using JMapPane

2012-12-05 Thread Michael Bedward
PS. forgot to mention that another, simpler option for doing grid / feature layer creation on a separate thread is to use the Java SwingWorker class On 6 December 2012 16:00, Michael Bedward wrote: > Hi Jairo, > > I've had a quick look at your program. I don't have time to examine it > in detail

Re: [Geotools-gt2-users] Problems to rendering the map using JMapPane

2012-12-05 Thread Michael Bedward
Hi Jairo, I've had a quick look at your program. I don't have time to examine it in detail (MainFrame.java is 1600 lines of code) but here are some general observations which I hope will help to get it working... The code for adding grid layers and updating the MapContent (via your LayerControlle

Re: [Geotools-gt2-users] Problems to rendering the map using JMapPane

2012-12-05 Thread Jairo de Almeida
Hi Michael Sorry to reply to you directly, I separated a simple project in this link: https://dl.dropbox.com/u/18134762/demo.zip And this link have a data used: https://dl.dropbox.com/u/18134762/Campina.zip I'm creating a rectangles layer with the tool from my application I Created a grid with 200

Re: [Geotools-gt2-users] Problems to rendering the map using JMapPane

2012-12-04 Thread Michael Bedward
Hi Jairo, Please reply to the list, not to me directly > You're right, don't is correct repaint panel in paintComponent method, > But is this was a crazy tentative to solve this problem > The rendering problem persist > http://s10.postimage.org/ghj8au16x/geotools_image2.png > I don't have any ide

Re: [Geotools-gt2-users] Problems to rendering the map using JMapPane

2012-12-04 Thread Michael Bedward
Hi Jairo, You are calling repaint() from within the paintComponent method of your sub-class - I think that could result in an infinite loop in the event dispatch thread and might be the cause of the incomplete renderings. Michael On 4 December 2012 22:22, Jairo de Almeida wrote: > Hi group, I'm

[Geotools-gt2-users] Problems to rendering the map using JMapPane

2012-12-04 Thread Jairo de Almeida
Hi group, I'm making a grid layer to overlap my polygon (each block), but i have problem to rendering the map canvas, i'm using a Child of JMapPane to drawing http://pastebin.com/dxSnu8nw and not works fine, my impression is that the panel does not finish drawing the map. follows the image of the d