Multiple shapefiles and scale rank (zoom)

Home Forums Advice & Tutorials General Cartography Advice Multiple shapefiles and scale rank (zoom)

This topic contains 2 replies, has 1 voice, and was last updated by  Araberen 6 years, 3 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #3456

    Araberen
    Participant

    Hi,

    How can I configure my GIS server such as it uses a different layer depending on the zoom level (scale rank) ?

    For example, with the rivers shapefiles (1:110, 1:50, 1:10) with a NE_1 background. I want to have the 1:110 rivers layer when I am viewing the whole earth and when zooming, I want it to use the 1:50 and then the 1:10 layer. How to do that ?

    I am using GeoServer and OpenLayers.

    #4204

    Nathaniel
    Keymaster

    See this post for web map scale:

    http://kelsocartography.com/blog/?p=2407

    Keep in mind the normal zoom levels on the web skip 1:50 million scale, but that is included as an integer rank in Natural Earth, so offset accordingly from there on.

    Then you’ll want to use properties like:

    maxResolution {Float} Default max is 360 deg / 256 px, which corresponds to zoom level 0 on gmaps.

    minResolution {Float}

    numZoomLevels {Integer}

    minScale {Float}

    maxScale {Float}

    Which are from here:

    http://dev.openlayers.org/apidocs/files/OpenLayers/Layer-js.html

    I haven’t done it myself, good luck and please report back.

    #4205

    Araberen
    Participant

    Ok, indeed it’s on the client side that the work has to be done. I thought (hoped) that such a configuration could be done on GeoServer but apparently not.

    Thanks.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.