[Gvsig_english] tilerastercache utility program

Alberto Romeu aromeu at prodevelop.es
Thu Nov 24 11:51:22 CET 2011


El 24/11/11 10:56, Ioan Ferencik escribió:
> Alberto,
>
>
> I have done some changes (really minor) to the WMS renderer mainly added
> EXCEPTIONS parameter to the layers config file and populate WMSStatus and
> WMSRenderer. I could post it or just send you the files, whatever you think
> is best. It should work because in WMS 1.X.X the EXCPETIONS is OPTIONAL
> whereas in 1.3.0 is NOT.

Great, if you are using Eclipse you can send me a patch of the files 
you've modified so I can apply it to the main trunk.

>
> I have one more issue ...the Main.java uses the WorkQueue class to manage
> the threads.
> But at one point it does just wait() instead of interrupting.
> while (queue.isEmpty()) {
> 							try {
> 								queue.wait();
> 							} catch (InterruptedException ignored) {
> 								System.out
> 										.println("One of the worker threads was interrupted while it was
> waiting.");
> 							}
> 						}
>
> is there a specific reason for this?
>
> the result is the program literally waits:))) which is awkward for a command
> line utility
> I guess it comes from the fact that it runs inside GVSIG so the control is
> transferred to another thread (GVSIGMN)
>
>
> What do you recommend? I was thinking to use some default ThrealPool instead
> of yours. I suppose java 6 must have one or perhaps use Future?

Yes, you are right, in fact the Main.java is only a test class. I guess 
there's some ThreadPoolExecutor in Java standard, try it if you want.




>
> Cheers
>
>
> --
> View this message in context: http://osgeo-org.1803224.n2.nabble.com/tilerastercache-utility-program-tp6987786p7027566.html
> Sent from the gvSIG users mailing list archive at Nabble.com.
> _______________________________________________
> Gvsig_internacional mailing list
> Gvsig_internacional at listserv.gva.es
>
> To see the archives, edit your preferences or unsubscribe from this mailing list, please access this url:
>
> http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional



Regards.

-- 

Alberto Romeu
---

Prodevelop SL, Valencia (España)
Tlf.: 96.351.06.12 -- Fax: 96.351.09.68
http://www.prodevelop.es
---




More information about the Gvsig_internacional mailing list