This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MAP | |
# | |
# Lars Schylberg, 2021-02-26 | |
# | |
# | |
NAME "point_examples" | |
EXTENT 0 0 15 10 | |
SIZE 400 300 | |
UNITS DD | |
IMAGECOLOR 200 200 200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MAP | |
# | |
# layer_comp.map | |
# | |
# Lars Schylberg, 2022-02-23 | |
# | |
# Testing "Chainable Compositing Filters" from RFC113 | |
# | |
# Test command: map2img -m layer_comp.map -o layer_comp.png | |
# tested with: MapServer version 7.7-dev, but should work with 7.4 and 7.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# test_swedish_text.sh | |
# Lars Schylberg, 2021-01-28 | |
# | |
# test Swedish 250K texts with attributes for FONT [FONTNAME], POSITION [MSPOS], | |
# also COLOR [TXTCLR] AND OUTLINECOLOR [OLNCLR] with transparent outline in second feature | |
# | |
# TEST: place the fonts DejaVuSansCondensed.ttf and DejaVuSerif-Italic.ttf into current dir. | |
# run: ./test_swedish_text.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MAP | |
# Style test mapfile, how to set up named styles in mapserver | |
# | |
# Lars Schylberg, 2020-09-15 | |
# | |
# example: root layers access: LAYERS=ST&styles=color& | |
# individual layers: LAYERS=square,circle&styles=green,grey& | |
# default: LAYERS=ST&styles=& | |
# or LAYERS=ST&styles=default& | |
# Gives correct GetCapabilities response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# palette_reclass.sh | |
# Lars Schylberg, 2020-01-03 | |
# | |
# example how to reclass a tif palette image with gdal_calc | |
# and some glue with awk and sed | |
# | |
# land 59,89,95,255 and / or 60,89,96,255 ---> 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
## showing usage of shp2tile, to create smaller shape files and tile index files for usage in Mapserver | |
# | |
## ............. | |
# Split large shapefiles with shp2tile into quad structure | |
# Select shape files greater than 20 MB | |
if [ ! -d ${FULL_DIR_FINAL}/tindex ] ; then | |
echo "mkdir ${FULL_DIR_FINAL}/tindex" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LAYER | |
MAXSCALEDENOM 131072 | |
MINSCALEDENOM 65536 | |
NAME 'Roads_shields_13' | |
TYPE LINE | |
DATA "fk/vl_riks_rs_13-19" | |
GROUP "roads" | |
PROJECTION | |
"init=epsg:32633" | |
END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LAYER { | |
13-19 { | |
NAME: 'Roads_shields' | |
TYPE: LINE | |
DATA: "fk/vl_riks_rs_13-19" | |
GROUP: "roads" | |
@SE_layerconfig | |
METADATA {{ | |
"ows_group_title" "roads" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LAYER { | |
13-19 { | |
NAME: 'Roads_shields' | |
TYPE: LINE | |
## CONNECTIONTYPE: ogr | |
## CONNECTION: "fk/fk_vl_riks.sqlite" | |
## PROCESSING: "CLOSE_CONNECTION=DEFER" | |
DATA: "fk/fk_vl_riks3" | |
GROUP: "roads" | |
@SE_layerconfig |
NewerOlder