I have a map-file for UMN, that displays a layer of vectors, each geometry with different colors depending on their attributes. That works fine. I also want to add borders around each geometry. That's no problem, but on the view showing the complete area, the borders dominate the image, because each geometry has only a few pixels. So I want to show the borders only at an specified zoom-level. I can disable or enable the whole layer depending on the zoom, but I don't know how to realize this only for the borders.
How can I display borders for geometries with UMN-Mapserver only when zoomed in a lot?
332 Views Asked by Mnementh At
1
There are 1 best solutions below
Related Questions in GEOMETRY
- Generating a sphere in OpenGL without high level libraries - what's wrong with my code?
- Matrix (?) to Rectangle and vise versa
- Turn a button into a loading circle animation
- Find a longitude given a pair of (lat,long) and an offset latitude
- 2D perspective transform in JavaScript
- how to convert Oracle geometry to SQL GEOMETRY
- Overlapping Rectangles Javascript
- Detect hole in geometry
- Reversing RotateAxisAngle back to angles
- WPF: 2 string.format in the same TextBlock?
- Quaternion to EulerXYZ, how to differentiate the negative and positive quaternion
- How to find a point given its distance from two other points?
- Ray/Rectangle intersection in 3D space
- Pairs of points on a graph
- Android OpenCV Detecting Circles takes too much FPS
Related Questions in BORDER
- css - triangle borders 100% of screen
- JavaFX Tooltip - border color bug
- Wrong dashed outline around a <div>
- Draw lines between divs using css border
- (Java) There are white borders around all my buttons
- Browsers truncate border values to integers
- How to make a border bottom on the right side of the element?
- VBA borders error - exact code by recorder not working
- Why does the box come out like this (padding/border/margin)?
- How to reduce table border thickness?
- Do not add border first time HTML
- Border some cells in table via CSS
- CSS: How to set up border radius cross browser (only IE8 and IE9 missing ?)
- Why has my border disappeared from around my text?
- Create a border around image when active/clicked
Related Questions in ZOOMING
- Make scaled-down image on HTML page clickable to see it in full size
- D3 Bounded Panning
- fabricjs - Zoom canvas in viewport (possible?)
- Google Maps v3 fitBounds inconsistent zoom
- Crop image with settable center and scale in Python PIL
- How to zoom into a picturebox image without changing the image sharpness?
- How can I implement a Zoom Panel with Java Swing libraries
- Divs move around when i zoom in/out
- How to check if user have zoom from js?
- Protractor key-down and send keys to zoom browser
- zoom jpeg image on canvas with mousewheel event in javascript
- UICollectionVIew zoom of a single UIImageView in a cell
- Zooming the ggplot or normal plot in R
- Graphic, zoom function
- how to maintain the location of a picturebox in the panel
Related Questions in MAPSERVER
- Is this a CGI issue? MapServer error (ubuntu)
- Temporary tiles cache for Mapserver
- Create a symbol from a image in php mapsrcript
- NGINX location rewrite
- Problems using "AND" Logical Expression for defining a Mapserver class
- How to prevent WMS caching on client side with OpenLayers
- OpenLayers and MapServer
- Pass dynamic parameters from openlayers to mapsever via tilecache
- Accessing cell value of a wms raster served as ol.layer.Image from OpenLayers
- Strange error returned while trying to access raster pixel value
- How to process layer templates using mapscript to respond to a WMS GetFeatureInfo request
- Multiple rows in subquery
- I can't figure out where to start with GIS application development, or which technology to select
- Multiple tables query on postgis
- what is the best option for in house geocoding service
Related Questions in UMN
- How do you get transparent background in a layer with UMN mapserver?
- How can I display borders for geometries with UMN-Mapserver only when zoomed in a lot?
- Is the map-Parameter of the UMN-mapserver conform to the OGC WMS-specification?
- UnsatisfiedLinkError and NoClassDefFoundError : Running Java Mapscript on Ubuntu 11.10
- Why does UMN-Mapserver shows an ERDAS Image-File (.img) as white shape?
- How to reproject map with a cascading UMN-mapserver?
- How to display raster layer in umn mapserver clearly
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can do that in at least two ways.
First, you can define two layers, one with the borders and one without the borders. Then you can use MINSCALEDENOM and MAXSCALEDENOM to display either the first or the second, based on zoom level.
Or, you can define one layer with the colored geometries, without borders, to be displayed at all zoomlevels. Then you should define a layer which consists of only the borders, to be displayed on top of the first but only at specified zoomlevel (again using MINSCALE and MAXSCALE). This layer uses the same data of the regular layer, but it must be of type POLYGON but without the COLOR keyword (only the OUTLINECOLOR should be specified). This way only the border of the polygon would be displayed and, if you display this on top of the other, you can create the effect of borders.
For a detailed description of the keywords, http://www.mapserver.org/mapfile/layer.html