Re: [OpenLayers-Users] Can't get OpenLayers to Co-operate with TileCache resolutions

2009-07-02 Thread soatley

Getting closer yet  

I figured out that it has to do with the metaSize parameter.  I tried
setting it to the default (5,5) and the problems were corrected.  I am able
to get it up to 8,8 without a problem.  Once I hit 9,9 or above, I start
getting oddities - the higher I go, the more I get.  Wierd.

One thing I am not noticing is that OpenLayers is requesting tiles that are
way outside my bounds.  For example, on my Zoom level 0, it is asking for:
/tilecache/basewdrawing/00/000/000/028/000/000/024.png

This is way out because my zoom level 0 is only 1 tile (256X256) and the
entire map takes up about 1/10th of the tile.

Has anyone else had this happen to them?  The client doesn't get any error
messages, but there are a ton of 404's happening in the background along
with the increased traffic from the browser to the server attempting to get
all these crazy tiles.

Shawn



soatley wrote:
> 
> With a little more fooling around, I have found that it has to do with the
> MetaTiling
> 
> My WMS Server is Manifold 8.0 and it can only write out PNG images.  I am
> using .NET to  write out the binary stream to TileCache from Manifold.  I
> don't think it is an Interlacing issue because TC would complain if I sent
> it an interlaced PNG.
> 
> [snip...]
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/Can%27t-get-OpenLayers-to-Co-operate-with-TileCache-resolutions-tp3198651p3199157.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Can't get OpenLayers to Co-operate with TileCache resolutions

2009-07-02 Thread soatley

With a little more fooling around, I have found that it has to do with the
MetaTiling

My WMS Server is Manifold 8.0 and it can only write out PNG images.  I am
using .NET to  write out the binary stream to TileCache from Manifold.  I
don't think it is an Interlacing issue because TC would complain if I sent
it an interlaced PNG.

Also, if I turn MetaTile off and generate each tile individually, it works
fine (without any .NET code changing).  The problem with this is that I
don't get any speed benefit when seeding my layers and it takes days to seed
a layer.

I've  http://yfrog.com/5bexamplemqrp linked  to a screen shot of what
happens when I have metaTiling on.  On the left half of the image, you can
see that there is an issue with how the road center lines are rendered.


Still looking for some assistance from anyone who may have come across any
issues like this.



soatley wrote:
> 
> Hopefully someone can see what I must be doing wrong  
> 
> I have been trying to get TileCache (most recent from site) to work nicely
> with OL 2.8 for a week and it just doesn't seem to be working perfectly.
> 
> [snip...]
> 

-- 
View this message in context: 
http://n2.nabble.com/Can%27t-get-OpenLayers-to-Co-operate-with-TileCache-resolutions-tp3198651p3199002.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


[OpenLayers-Users] Can't get OpenLayers to Co-operate with TileCache resolutions

2009-07-02 Thread soatley

Hopefully someone can see what I must be doing wrong  

I have been trying to get TileCache (most recent from site) to work nicely
with OL 2.8 for a week and it just doesn't seem to be working perfectly.

Here is my map config:

 options = {
projection: new OpenLayers.Projection("EPSG:26917"),
/*maxExtent: new OpenLayers.Bounds(640541.774843334,
4755587.40501464, 667085.402317306, 4779623.23729788),*/
maxExtent: new OpenLayers.Bounds(640541.77, 4755587.40, 667085.40,
4779623.23),
units: "m",
tileSize: new OpenLayers.Size(256, 256),
/*resolutions: [850, 425, 212.5, 106.25, 53.125, 26.5625, 13.28125,
6.640625, 3.3203125, 1.66015625, 0.830078125, 0.4150390625, 0.20751953125,
0.103759765625, 0.0518798828125],*/
resolutions: [850, 425, 212.5, 106.25, 53.12, 26.56, 13.28, 6.64,
3.32, 1.66, 0.83, 0.41, 0.20, 0.10, 0.05],

/*numZoomLevels: 15,*/

controls: [new OpenLayers.Control.LayerSwitcher(),
new OpenLayers.Control.MouseDefaults(),
new OpenLayers.Control.PanZoomBar(),
new OpenLayers.Control.OverviewMap(),
new OpenLayers.Control.KeyboardDefaults(),
new OpenLayers.Control.Navigation(),
new OpenLayers.Control.MousePosition({ div:
$j("#position").get(0) }),
new OpenLayers.Control.LoadingPanel(),
new OpenLayers.Control.ScaleBar()
]
};



You can see I've tried different map resolutions and bounding boxes because
I read some threads that indicated we should not have a large number of
decimal places. 

My tilecache.cfg:


[basewdrawing]
type=WMS
url=http://wmsServer
layers=wmsLayers
extension=png
mime_type=image/png
#resolutions=850,425,212.5,106.25,53.125,26.5625,13.28125,6.640625,3.3203125,1.66015625,0.830078125,0.4150390625,0.20751953125,0.103759765625,0.0518798828125
resolutions=850,425,212.5,106.25,53.12,26.56,13.28,6.64,3.32,1.66,0.83,0.41,0.20,0.10,0.05
bbox=640541.77, 4755587.40, 667085.40, 4779623.23
#bbox=640541.774843334, 4755587.40501464, 667085.402317306, 4779623.23729788
metaTile=true
metaSize=11,11
srs=EPSG:26917
extent_type=loose


I've tried with extent_type and without - that didn't seem to have any
difference.

When I seed my cache with tilecache_seed.py I don't get any error messages
and it appears to work properly.  Files are created, they aren't blank, etc.

I have tried using Layer.TileCache  and Layer.WMS.  With the TileCache
layers, I get misplaced tiles and with the WMS layer I get a resolution
error:

An error occurred: can't find resolution index for 2.00. Available
resolutions are: 
[850.0, 425.0, 212.5, 106.25, 53.117, 26.559,
13.279, 6.6397, 3.3198,
1.6599, 0.82996, 0.40998,
0.20001, 0.10001, 0.050003]


I don't understand why I get this error because both the TC and OL config's
have the resolutions specified.

Finally, my layer config:

var BaseMap = new OpenLayers.Layer.WMS("Base Map",

["http://wmsServer/tilecache.py","http://wmsServer/tilecache.py";],
{ 
 layers: "basewdrawing",
 format: "image/png",
 transparent: false
},
{ 
 visibility: true
}
);



If I have the layer go straight to the WMS Server, everything works fine. 
But I love how fast TileCache can seed my layers so I really want to use it
to seed my layers.

I hope I've provided enough information for some assistance.
-- 
View this message in context: 
http://n2.nabble.com/Can%27t-get-OpenLayers-to-Co-operate-with-TileCache-resolutions-tp3198651p3198651.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users