Borut Lesjak wrote: > Hello! > I cannot seem to convince StyledMapRenderer to display labels properly > placed onto the streets and roads in the directions of their base > lines. Instead, all the labels are displayed horizontally. > StreamingRenderer displays the labels correctly, but we cannot use it > because of the performance problems: while StyledMapRenderer takes a > couple of seconds to render a map portion, StreamingRenderer takes a > couple of minutes with the same data, which is totally unacceptable. The JMapPane class is currently under construction, the original StyledMapPane was not able to be maintained / updated by the module maintainer as has been dropped from geotools. The author plans to make a standards compliant renderer, but that has no start time as far as I know.
You will find that JMapPane will let you use any GTRender, I just had a wack at the code today and threw out a lot of the code that was not ready (FilterModel used for selection and so on). I have no idea what (if any) of this stuff you use, dialog has not been very clear on this one ... since the existing GeoTools are focused on low level GIS problems and have traditionally left interaction up to the user community. (Note I am part of that community, and you will see uDig provides a fairly complete framework for interaction) > Apart from the above, StyledMapRenderer has some other troubles with > SLD interpretation, namely when using ScaleDenominators. > We are using GeoTools 2.2 RC2 version. So GeoTools will not have StyledMapPane any more, please evaluate the replacement ... and remember that it is only intended as a simple starting point. > Please, advise. > I've read that StyledMapRenderer is currently under construction - is > this true? Could this be the reason for our troubles? If so, when can > we expect to have a working version ready? Should we use an older > version? Or is it just that we are doing something gravely wrong? Um you should not expect a working version, this widget is basically dead for lack of funding / volunteer effort. The main reason we actually have a JMapPane is because Adrian Custer has asked to something simple to use during his documentation efforts (aka volunteer time rather then money). > Would it be better if we try to achieve faster performance with > StreamingRenderer? How? Is it normal to take so much time (a few > minutes) to render a part of a map of about 100 MB in shapefiles? (We > tried using the PostGIS database, but the performance was not much > different.) There are a couple of ways: - use shapefile renderer for shapefiles (it is way faster) - use some hints to load data into memory if you want streaming renderer to match the performance > We are also considering using the GeoServer. Is it built on one of the > above renderers? GeoServer is built with the streaming renderer. uDig is built with streaming renderer, you will at least be in the company of active development. > Thank you very much for your help, Best of luck, Jody ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
