Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] Wmt georesource is not rendered. Why??

Hi George,

> Managed to solve this one.Here are my findings:
> InternalRenderMetricsFactory.canRender would return
> delegate.canRender(context). The problem was that delegate was of type
> RasterRenderMetricsFactory instead of BasicWMTRenderMetricsFactory.
> Upon further inspection I found that just checking the
> net.refractions.udig.catalog.wmt plugin in run configurations->plugins does
> not require for the ....render.wmt.basic plugin to be included. So if you
> check the catalog.wmt plugin and then click the “add required plugins”
> button you will not get to see any wmt layer and you will also not get any
> error message that may give you the idea that a vital plugin was not
> included. You'd think that if the catalog.wmt plugin was included the user
> would want to see some wmt layers onscreen :). Newbies (like me) beware!

sorry for not coming back on that earlier and thanks for your finding.
This might be a bug I introduced when merging together plugins and the
renderer might have been in dependency of one of the removed.

I will fix that as ASAP.

Thanks again,
Andrea


>
> Cheers
>
>
> ________________________________
> From: George Schole <georgeschole@xxxxxxxxx>
> To: User-friendly Desktop Internet GIS <udig-devel@xxxxxxxxxxxxxxxxxxxxx>
> Sent: Tuesday, June 12, 2012 1:47 PM
> Subject: [udig-devel] Wmt georesource is not rendered. Why??
>
> Hello all,
>
> I'm encountering a very frustrating problem. I am trying to render a mapnik
> layer using eclipse 3.7.2 with udig sdk 1.3.1. Using eclipse 3.6.1 with udg
> sdk 1.2.1 and executing the exact same code the mapnik layer renders
> correctly .
> So map.sendCommandASync(new AddLayersCommand(theres));
> w returns different results in what seems to be virtually identical cases;
> by the way “theres” has the following content ( in both run cases) :
> [WMTGeoResource(wmt://localhost/wmt/net.refractions.udig.catalog.internal.wmt.wmtsource.OSMMapnikSource#blank)]
> Some other observations:
> 1.
>
> in the non-rendering case the console output is
> !MESSAGE Unable to parse version from about.mappings file. Defaulting to a
> blank string.
> log4j:WARN No appenders could be found for logger (org.geotools.factory).
> log4j:WARN Please initialize the log4j system properly.
> [WMTService.createService]
> wmt://localhost/wmt/net.refractions.udig.catalog.internal.wmt.wmtsource.OSMMapnikSource
> Application Started: 3746
> [WMTSource] EPSG:900913 is not in the database, now it is created manually
> [WMTService.createService]
> wmt://localhost/wmt/net.refractions.udig.catalog.internal.wmt.wmtsource.OSMMapnikSource
>
> in the rendering case te console output is something like:
> [WMTSource] EPSG:900913 is not in the database, now it is created manually
> [WMTService.createService]
> wmt://localhost/wmt/net.refractions.udig.catalog.internal.wmt.wmtsource.OSMMapnikSource
>
> [BasicWMTRender.render] is called
> [BasicWMTRender.render] is called
> [BasicWMTRender.render] is called
> [BasicWMTRender.render] is called
> [BasicWMTRender.render] Scale: 3.572181633149704E8
> [BasicWMTRender.render] Scale: 3.572181633149704E8
> [BasicWMTRender.render] Scale: 3.572181633149704E8
> [BasicWMTRender.render] Scale: 3.572181633149704E8
> [OSMTile.getTileFromCoordinate] 18/234940/101706 lon: 142.6415091924573 lat:
> 37.358490807542694
> [OSMTile.getTileFromCoordinate] 18/234940/160437 lon: 142.6415091924573 lat:
> -37.358490807542694
> …
> …
> [WMTSource.addTileToList] Was not in cache: Mapnik_2_1_0
> [OSMTile.getTileFromCoordinate] 2/3/2 lon: 142.6415091924573 lat:
> -37.358490807542694
> [OSMTile.getTileFromCoordinate] 2/0/2 lon: -142.6415091924573 lat:
> -37.358490807542694
> [OSMTile.getTileFromCoordinate] 2/0/1 lon: -142.6415091924573 lat:
> 37.358490807542694
> [WMTSource.cutExtentIntoTiles] Adding right neighbour: Mapnik_2_1_0
> …
> …
> !ENTRY net.refractions.udig.catalog.internal.wmt 4 0 2012-06-11 19:05:19.175
> !MESSAGE WMT GetTile: http://tile.openstreetmap.org/2/2/3.png
>
> !ENTRY net.refractions.udig.catalog.internal.wmt 4 0 2012-06-11 19:05:19.176
> !MESSAGE WMT GetTile: http://tile.openstreetmap.org/2/0/0.png
>
> Please give me a few tips on how I might solve this problem. I really want
> to use an osm map in my little project. I would use the older udig sdk but I
> can't seem to render a postgis layer using the older sdk :)). It works in
> the new one. I think it has something to do with the fact I have postgis 2.0
> installed.
>
> PS @andrea antonello: I see that you have been working on the wmt plugin
> lately.
> Please tell me you encountred these rendering problems. :)
>
> Thanks
>
>
>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
>
>
>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
>


Back to the top