Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
geosphere-mapserver
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cspp_geo
geosphere
geosphere-mapserver
Commits
16e5d19f
Commit
16e5d19f
authored
5 years ago
by
David Hoese
Browse files
Options
Downloads
Patches
Plain Diff
Fix consistency in tile generation file naming
parent
9603455a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
mapserver/mapfiles/g16_abi_fldk_l1b.map
+106
-0
106 additions, 0 deletions
mapserver/mapfiles/g16_abi_fldk_l1b.map
tile_gen/generate_tiles.py
+1
-1
1 addition, 1 deletion
tile_gen/generate_tiles.py
tile_gen/run.sh
+7
-3
7 additions, 3 deletions
tile_gen/run.sh
with
114 additions
and
4 deletions
mapserver/mapfiles/g
oes
16_abi_fldk_l1b.map
→
mapserver/mapfiles/g16_abi_fldk_l1b.map
+
106
−
0
View file @
16e5d19f
...
...
@@ -23,7 +23,7 @@ MAP
LAYER
NAME "true_color_index"
TYPE TILEINDEX
DATA "/data/tiles/
goes/
g16/abi/true_color/true_color"
DATA "/data/tiles/g16/abi/
radf/
true_color/true_color"
END
LAYER
...
...
@@ -33,6 +33,64 @@ MAP
TILEINDEX "true_color_index"
# Comment below to default to transparency
# OFFSITE 0 0 0
PROJECTION
"auto"
END
METADATA
"wms_title" "GOES-16 ABI True Color"
"wms_extent" "-180 -90 180 90"
"wms_timeextent" "2017-01-01/2020-12-31"
"wms_timeformat" "YYYY-MM-DDTHH:MM:SS"
"wms_timeitem" "time" # time is a metadata item
"wms_timedefault" "2019-12-12T19:20:18"
"wms_enable_request" "*"
END
FILTER (`[time]` = `2019-12-12T19:20:18`)
END # goes raster layer ends here
######################
# True Color Lat/Lon #
######################
LAYER
NAME "true_color_index_ll"
TYPE TILEINDEX
DATA "/data/tiles/g16/abi/radf_ll/true_color/true_color_LL"
END
LAYER
NAME "true_color_ll"
TYPE RASTER
TILEITEM "location"
TILEINDEX "true_color_index_ll"
# Comment below to default to transparency
# OFFSITE 0 0 0
PROJECTION
"init=epsg:4326"
END
METADATA
"wms_title" "GOES-16 ABI True Color"
"wms_extent" "-180 -90 180 90"
"wms_timeextent" "2017-01-01/2020-12-31"
"wms_timeformat" "YYYY-MM-DDTHH:MM:SS"
"wms_timeitem" "time" # time is a metadata item
"wms_timedefault" "2019-12-12T19:20:18"
"wms_enable_request" "*"
END
FILTER (`[time]` = `2019-12-12T19:20:18`)
END # goes raster layer ends here
###################
# True Color Fake #
###################
LAYER
NAME "true_color_test"
TYPE RASTER
TILEITEM "location"
TILEINDEX "true_color_index"
# Comment below to default to transparency
# OFFSITE 0 0 0
METADATA
"wms_title" "GOES-16 ABI True Color"
"wms_extent" "-180 -90 180 90"
...
...
This diff is collapsed.
Click to expand it.
tile_gen/generate_tiles.py
+
1
−
1
View file @
16e5d19f
...
...
@@ -62,7 +62,7 @@ def main():
parser
=
argparse
.
ArgumentParser
(
description
=
"
Take input geotiffs and generate mapserver compatible tiles.
"
)
parser
.
add_argument
(
'
--remap
'
,
action
=
'
store_true
'
,
help
=
"
Remap input geotiffs to EPSG:4326
"
)
parser
.
add_argument
(
'
--remap-suffix
'
,
default
=
'
_
LL
.tif
'
,
parser
.
add_argument
(
'
--remap-suffix
'
,
default
=
'
_
ll
.tif
'
,
help
=
"
Replace
'
tif
'
with provided suffix when geotiffs are remapped.
"
)
parser
.
add_argument
(
'
-p
'
,
'
--products
'
,
nargs
=
"
*
"
,
help
=
"
Product names to group together in each
"
...
...
This diff is collapsed.
Click to expand it.
tile_gen/run.sh
+
7
−
3
View file @
16e5d19f
...
...
@@ -53,10 +53,14 @@ run_tile_gen() {
if
[[
${
TILE_ARGS
}
==
*
"--remap"
*
]]
;
then
echo
"Adding '_ll' prefix to tile output directory because of remapping"
out_dir
=
"
${
out_dir
}
_ll"
mkdir
-p
${
out_dir
}
# add string formatting portion to separate add 'product' sub-directory
out_dir
=
"
${
out_dir
}
/{product}_ll"
else
mkdir
-p
${
out_dir
}
# add string formatting portion to separate add 'product' sub-directory
out_dir
=
"
${
out_dir
}
/{product}"
fi
mkdir
-p
${
out_dir
}
# add string formatting portion to separate add 'product' sub-directory
out_dir
=
"
${
out_dir
}
/{product}"
echo
"Generating tiles in directory:
${
out_dir
}
"
python3 generate_tiles.py
${
TILE_ARGS
}
-p
${
G2G_PRODUCTS
}
--
${
out_dir
}
${
path
}
# OUT/<product>/<product>.shp
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment