Hi,
I have a PostGIS table that contains geometry, min_scale, and max_scale fields. 
The PostGIS table is published as a Geoserver layer with EPSG = 4326. I have 
created a CSS Style Doc that will show each geometry only in its scale range; 
something like:

[@sd <= max_scale] [@sd >= min_scale]{
     mark: symbol(circle);
}

My problem is how to set the min_scale and max_scale to work properly with 
Openlayers zoom levels. I tried to use the scale values from the EPSG:4326 
Gridset:
http://localhost:8080/geoserver/web/wicket/bookmarkable/org.geoserver.gwc.web.gridset.GridSetEditPage?6&gridSet=EPSG:4326

But it didn't work properly; for example if I set
min_scale = 545978  which corresponds to zoom 9
max_scale = 2183915 which corresponds to zoom 7
The feature appears only at zoom 7 and 8, and didn't appear at zoom 9.

I also tried the values at this table (Default Gridset):
https://docs.geoserver.org/latest/en/user/styling/ysld/reference/scalezoom.html#default-gridset
But the same problem occured.

My question is what is my problem? which scale values should I use to work 
properly with Openlayers zoom levels?

Thanks,
Nanaso
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to