Skip to content

Commit

Permalink
add hillshade
Browse files Browse the repository at this point in the history
  • Loading branch information
nobohan committed Jun 19, 2020
1 parent 3d7ef6f commit 8315e6d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
11 changes: 10 additions & 1 deletion cartoCSS/base.mss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@

Map { background-color: @background; }

/* ================================================================== */
/* HILLSHADE
/* ================================================================== */

#hillshade {
raster-scaling: bilinear;
/*raster-comp-op: grain-merge;*/
raster-opacity: 0.7;
}

/* ================================================================== */
/* CONTOUR
/* ================================================================== */
Expand All @@ -34,7 +44,6 @@ Map { background-color: @background; }
}
}


/* ================================================================== */
/* LANDUSE & LANDCOVER
/* ================================================================== */
Expand Down
11 changes: 11 additions & 0 deletions osm2pgsql/project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@
"srs-name": "900913",
"status": "on"
},
{
"Datasource": {
"file": "data/dem_be_10x10_hillshade_semi_transparent.tif",
"type": "gdal"
},
"geometry": "raster",
"id": "hillshade",
"name": "hillshade",
"srs": "+proj=lcc +lat_1=51.16666723333333 +lat_2=49.8333339 +lat_0=90 +lon_0=4.367486666666666 +x_0=150000.013 +y_0=5400088.438 +ellps=intl +towgs84=-106.869,52.2978,-103.724,0.3366,-0.457,1.8422,-1.2747 +units=m +no_defs",
"status": "off"
},
{
"Datasource": {
"extent": "-20037508.34 -20037508.34 20037508.34 20037508.34",
Expand Down

0 comments on commit 8315e6d

Please sign in to comment.