-
-
Notifications
You must be signed in to change notification settings - Fork 368
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,571 changed files
with
39,761 additions
and
2,419 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Test bilinear resampling(over-sampling) with source that is | ||
# opaque red on the left and transparent on the right | ||
|
||
MAP | ||
|
||
NAME TEST | ||
STATUS ON | ||
SIZE 400 40 | ||
EXTENT 0.5 0.5 39.5 1.5 | ||
IMAGECOLOR 0 0 0 | ||
|
||
OUTPUTFORMAT | ||
NAME "png" | ||
DRIVER AGG/PNG | ||
MIMETYPE "image/png" | ||
IMAGEMODE RGBA | ||
EXTENSION "png" | ||
END | ||
|
||
OUTPUTFORMAT | ||
NAME "tif" | ||
DRIVER GDAL/GTiff | ||
MIMETYPE "image/tif" | ||
IMAGEMODE RGBA | ||
EXTENSION "tif" | ||
END | ||
|
||
LAYER | ||
NAME test | ||
TYPE RASTER | ||
STATUS default | ||
DATA data/leftredrighttransp.tif | ||
PROCESSING "RESAMPLE=BILINEAR" | ||
END | ||
|
||
END # of map file |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Test bilinear resampling(over-sampling) with source that has alpha | ||
# gradient from red opaque on the left to transparent on the right | ||
|
||
MAP | ||
|
||
NAME TEST | ||
STATUS ON | ||
SIZE 400 40 | ||
EXTENT 0.5 0.5 39.5 1.5 | ||
IMAGECOLOR 0 0 0 | ||
|
||
OUTPUTFORMAT | ||
NAME "png" | ||
DRIVER AGG/PNG | ||
MIMETYPE "image/png" | ||
IMAGEMODE RGBA | ||
EXTENSION "png" | ||
END | ||
|
||
OUTPUTFORMAT | ||
NAME "tif" | ||
DRIVER GDAL/GTiff | ||
MIMETYPE "image/tif" | ||
IMAGEMODE RGBA | ||
EXTENSION "tif" | ||
END | ||
|
||
LAYER | ||
NAME test | ||
TYPE RASTER | ||
STATUS default | ||
DATA data/redtranspgradient.tif | ||
PROCESSING "RESAMPLE=BILINEAR" | ||
END | ||
|
||
END # of map file |
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
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]] |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+10.5 KB
msautotest/gdal/expected/heatmap-r20-noborder-fixednorm-rgb-expression.png
Oops, something went wrong.
Binary file added
BIN
+2.54 KB
msautotest/gdal/expected/heatmap-r20-noborder-fixednorm-rgb-fixed.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
-15.5 KB
(14%)
msautotest/gdal/expected/rgb_overlay_res_to8bit_dithered.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
#RUN_PARMS: heatmap-r15-border-autonorm-hsl-attr.png [MAPSERV] QUERY_STRING="map=[MAPFILE]&LAYERS=heatmap&BBOX=-79.369542201052,-39.684771100526,79.369542201052,39.684771100526&WIDTH=200&HEIGHT=100&VERSION=1.1.1&FORMAT=image%2Fpng&SERVICE=WMS&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326" > [RESULT_DEMIME] | ||
#RUN_PARMS: heatmap-r20-noborder-fixednorm-rgb-fixed.png [MAPSERV] QUERY_STRING="map=[MAPFILE]&LAYERS=heatmap&BBOX=-82.544323889094,-41.272161944547,82.544323889094,41.272161944547&WIDTH=200&HEIGHT=100&VERSION=1.1.1&FORMAT=image%2Fpng&SERVICE=WMS&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326" > [RESULT_DEMIME] | ||
#RUN_PARMS: heatmap-r20-noborder-fixednorm-rgb-expression.png [MAPSERV] QUERY_STRING="map=[MAPFILE]&LAYERS=heatmap&BBOX=-85.719105577136,-42.859552788568,85.719105577136,42.859552788568&WIDTH=200&HEIGHT=100&VERSION=1.1.1&FORMAT=image%2Fpng&SERVICE=WMS&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326" > [RESULT_DEMIME] | ||
#RUN_PARMS: heatmap-reproj.png [MAPSERV] QUERY_STRING="map=[MAPFILE]&LAYERS=heatmap&BBOX=-7760000,-600000,240000,3400000&WIDTH=200&HEIGHT=100&VERSION=1.1.1&FORMAT=image%2Fpng&SERVICE=WMS&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A3857" > [RESULT_DEMIME] | ||
|
||
#no overlap because outside of shape extents | ||
#RUN_PARMS: heatmap-no-overlap.png [MAPSERV] QUERY_STRING="map=[MAPFILE]&LAYERS=heatmap&BBOX=200,200,201,201&WIDTH=10&HEIGHT=10&VERSION=1.1.1&FORMAT=image%2Fpng&SERVICE=WMS&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326" > [RESULT_DEMIME] | ||
|
||
#no features intersected search rect | ||
#RUN_PARMS: heatmap-no-overlap.png [MAPSERV] QUERY_STRING="map=[MAPFILE]&LAYERS=heatmap&BBOX=0,0,0.01,0.01&WIDTH=10&HEIGHT=10&VERSION=1.1.1&FORMAT=image%2Fpng&SERVICE=WMS&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326" > [RESULT_DEMIME] | ||
|
||
map | ||
|
||
size 1000 500 | ||
extent -180 -90 180 90 | ||
name "test heat" | ||
imagetype "png" | ||
units dd | ||
|
||
web | ||
metadata | ||
"ows_srs" "epsg:4326 epsg:3857 epsg:900913" | ||
"ows_enable_request" "*" | ||
end | ||
end | ||
|
||
projection | ||
"+init=epsg:4326" | ||
end | ||
CONFIG "MS_ERRORFILE" "stderr" | ||
|
||
layer | ||
name "heatmap" | ||
type raster | ||
connectiontype kerneldensity | ||
connection "points" | ||
status on | ||
processing "RANGE_COLORSPACE=%color%" | ||
processing "KERNELDENSITY_RADIUS=%radius%" | ||
processing "KERNELDENSITY_COMPUTE_BORDERS=%border%" | ||
processing "KERNELDENSITY_NORMALIZATION=%norm%" | ||
offsite 0 0 0 | ||
SCALETOKEN | ||
NAME "%radius%" | ||
VALUES | ||
"0" "15" | ||
"255000000" "20" | ||
END | ||
END | ||
SCALETOKEN | ||
NAME "%border%" | ||
VALUES | ||
"0" "ON" | ||
"255000000" "OFF" | ||
END | ||
END | ||
SCALETOKEN | ||
NAME "%norm%" | ||
VALUES | ||
"0" "AUTO" | ||
"255000000" "30" | ||
END | ||
END | ||
SCALETOKEN | ||
NAME "%color%" | ||
VALUES | ||
"0" "HSL" | ||
"255000000" "RGB" | ||
END | ||
END | ||
class | ||
style | ||
COLORRANGE "#0000ff00" "#0000ffff" | ||
DATARANGE 0 32 | ||
end | ||
style | ||
COLORRANGE "#0000ffff" "#ff0000ff" | ||
DATARANGE 32 255 | ||
end | ||
end | ||
end | ||
|
||
symbol | ||
name "circle" | ||
type ellipse | ||
points 1 1 end | ||
end | ||
|
||
layer | ||
name "points" | ||
status on | ||
type POINT | ||
data "data/pnts.shp" | ||
CLASS | ||
MAXSCALE 255000000 | ||
STYLE | ||
SIZE [VAL] | ||
END | ||
END | ||
CLASS | ||
MAXSCALE 265000000 | ||
STYLE | ||
SIZE 0.1 | ||
END | ||
END | ||
CLASS | ||
MAXSCALE 275000000 | ||
EXPRESSION ([VAL]>1) | ||
STYLE | ||
SIZE 1 | ||
END | ||
END | ||
CLASS | ||
MAXSCALE 275000000 | ||
STYLE | ||
SIZE 2 | ||
END | ||
END | ||
end | ||
|
||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ END | |
SCALEBAR | ||
STATUS EMBED | ||
# POSTLABELCACHE TRUE | ||
SIZE 200 10 | ||
SIZE 205 10 | ||
UNITS METERS | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# | ||
# Test optimization where we request exactly at the raster resolution and | ||
# on pixel boundaries (#5032) | ||
# | ||
# REQUIRES: SUPPORTS=PROJ | ||
# | ||
MAP | ||
|
||
NAME TEST | ||
STATUS ON | ||
SIZE 400 300 | ||
EXTENT 0.5 0.5 399.5 299.5 | ||
IMAGECOLOR 255 255 0 | ||
|
||
PROJECTION | ||
"+proj=utm +zone=30 +datum=WGS84 +units=m +no_defs" | ||
END | ||
|
||
IMAGETYPE png24 | ||
|
||
# | ||
# Start of layer definitions | ||
# | ||
|
||
LAYER | ||
|
||
# Slightly different formulations, but identical to the MAP projection | ||
PROJECTION | ||
"+proj=utm +datum=WGS84 +zone=30 +units=m" | ||
END | ||
|
||
NAME grid1 | ||
TYPE raster | ||
STATUS default | ||
PROCESSING "RESAMPLE=AVERAGE" # will be ignored | ||
DATA data/rgb.tif | ||
END | ||
|
||
END # of map file |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# | ||
# Test optimization where we request exactly at an integral factor of the | ||
# raster resolution and pixel boundaries (#5032) | ||
# | ||
# REQUIRES: SUPPORTS=PROJ | ||
# | ||
MAP | ||
|
||
NAME TEST | ||
STATUS ON | ||
SIZE 200 150 | ||
EXTENT 1.0 1.0 399.0 299.0 | ||
IMAGECOLOR 255 255 0 | ||
|
||
IMAGETYPE png24 | ||
|
||
# | ||
# Start of layer definitions | ||
# | ||
|
||
LAYER | ||
NAME grid1 | ||
TYPE raster | ||
STATUS default | ||
PROCESSING "RESAMPLE=AVERAGE" | ||
DATA data/rgb.tif | ||
END | ||
|
||
END # of map file |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
WKT,OGR_STYLE | ||
"POLYGON((0.1 0.9,0.9 0.9,0.9 0.8,0.1 0.8,0.1 0.9))","BRUSH(fc:#0000ff,bc:#ff0000,id:""rectsymbol"",dx:0,dy:1)" | ||
"POLYGON((0.1 0.7,0.9 0.7,0.9 0.6,0.1 0.6,0.1 0.7))","BRUSH(fc:#000000,id:""rectsymbol"",a:20,dx:6,dy:6,s:2)" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
WKT,OGR_STYLE,comment | ||
"POLYGON((0.1 0.9,0.9 0.9,0.9 0.8,0.1 0.8,0.1 0.9))","BRUSH(fc:#0000ff,bc:#ff0000,id:""rectsymbol"",s:2,dx:3,dy:3);PEN(c:#00FF00,w:2px)","particular historical case: BRUSH/PEN order doesn't matter" | ||
"POLYGON((0.1 0.7,0.9 0.7,0.9 0.6,0.1 0.6,0.1 0.7))","PEN(c:#00FF00,w:2px);BRUSH(fc:#0000ff,bc:#ff0000,id:""rectsymbol"",s:2,dx:3,dy:3)","particular historical case: BRUSH/PEN order doesn't matter" | ||
"POLYGON((0.1 0.5,0.9 0.5,0.9 0.4,0.1 0.4,0.1 0.5))","PEN(c:#FF00FF,w:10px);PEN(c:#00FF00,w:2px)","second PEN drawn above first one" | ||
"POLYGON((0.1 0.3,0.9 0.3,0.9 0.2,0.1 0.2,0.1 0.3))","PEN(c:#FF00FF,w:10px,l:1);PEN(c:#00FF00,w:2px,l:1)","same explicit priority: second PEN drawn above first one" | ||
"POLYGON((0.1 0.1,0.9 0.1,0.9 0.0,0.1 0.0,0.1 0.1))","PEN(c:#FF00FF,w:10px,l:1);PEN(c:#00FF00,w:2px,l:2)","increasing explicit priority: second PEN drawn above first one" | ||
"POLYGON((0.1 -0.1,0.9 -0.1,0.9 -0.2,0.1 -0.2,0.1 -0.1))","PEN(c:#FF00FF,w:10px,l:2);PEN(c:#00FF00,w:2px,l:1)","decreasing explicit priority: first PEN drawn above second one" | ||
|
||
|
||
|
Oops, something went wrong.