{"id":412,"date":"2024-10-26T20:36:54","date_gmt":"2024-10-26T20:36:54","guid":{"rendered":"https:\/\/www.acugis.com\/gis-tutorials\/?page_id=412"},"modified":"2024-10-26T20:36:54","modified_gmt":"2024-10-26T20:36:54","slug":"geoserver-imagepyramid-data-store","status":"publish","type":"page","link":"https:\/\/www.acugis.com\/gis-tutorials\/geoserver\/geoserver-imagepyramid-data-store\/","title":{"rendered":"GeoServer: ImagePyramid Data Store"},"content":{"rendered":"\n<p>This post will cover creating an ImagePyramid data store with GeoServer.<\/p>\n\n\n\n<p>If you have image files prepared, you can skip the &#8220;Prepare Files&#8221; section below.<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Prepare files<\/strong><\/p>\n\n\n\n<p>We will use the Sydney GeoTIFF image from\u00a0<a href=\"https:\/\/www.planetobserver.com\/geospatial-data-samples\">PlanetSAT geospatial-data-samples<\/a>\u00a0to create our pyramid.<\/p>\n\n\n\n<p>Create new directory &#8216;sydney&#8217; in your GeoServer data\/data directory.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">su - tomcat\ncd \/home\/tomcat-version\/webapps\/geoserver\/data\/data\nmkdir sydney\ncd sydney\nwget https:\/\/demo.planetobserver.com\/PlanetObserver_PlanetSAT_10m_Australia_Sydney_UTM56.zip\nunzip PlanetObserver_PlanetSAT_10m_Australia_Sydney_UTM56.zip \nrm -f PlanetObserver_PlanetSAT_10m_Australia_Sydney_UTM56.zip <\/pre>\n\n\n\n<p>Now, still in our &#8216;sydney&#8217; directory, let&#8217;s use gdal to create our tiles:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">mkdir pyramid\ngdal_retile.py -v -r bilinear -levels 4 -ps 2048 2048 -co \"TILED=YES\" -co \"COMPRESS=JPEG\" -targetDir pyramid PlanetObserver_PlanetSAT_10m_Australia_Sydney_UTM56.tif\n<\/pre>\n\n\n\n<p>After this we can remove the large TIFF file.&nbsp;<\/p>\n\n\n\n<p><strong>Note:<\/strong>&nbsp;gdal_retile.sh is part of the gdal-bin package in Ubuntu.<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Create a Workspace<\/strong><\/p>\n\n\n\n<p>We&#8217;ll create a workspace, called &#8220;pyramid&#8221; as below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"443\" height=\"363\" src=\"https:\/\/www.acugis.com\/gis-tutorials\/wp-content\/uploads\/2024\/10\/workspace_save-1.png\" alt=\"\" class=\"wp-image-415\" srcset=\"https:\/\/www.acugis.com\/gis-tutorials\/wp-content\/uploads\/2024\/10\/workspace_save-1.png 443w, https:\/\/www.acugis.com\/gis-tutorials\/wp-content\/uploads\/2024\/10\/workspace_save-1-300x246.png 300w\" sizes=\"auto, (max-width: 443px) 100vw, 443px\" \/><\/figure>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Create the Data Store<\/strong><\/p>\n\n\n\n<p>Go to&nbsp;Data \/ Stores\/ Add New<\/p>\n\n\n\n<p>Click on ImageMosaic in Raster Data Sources<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"402\" height=\"200\" src=\"https:\/\/www.acugis.com\/gis-tutorials\/wp-content\/uploads\/2024\/10\/imagepyramid.png\" alt=\"\" class=\"wp-image-416\" srcset=\"https:\/\/www.acugis.com\/gis-tutorials\/wp-content\/uploads\/2024\/10\/imagepyramid.png 402w, https:\/\/www.acugis.com\/gis-tutorials\/wp-content\/uploads\/2024\/10\/imagepyramid-300x149.png 300w\" sizes=\"auto, (max-width: 402px) 100vw, 402px\" \/><\/figure>\n\n\n\n<p>Select our workspace (pyramid) and enter &#8220;<strong>sydney<\/strong>&#8221; as store name<\/p>\n\n\n\n<p>Enter file:\/data\/sydney\/pyramid as URL.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"329\" height=\"539\" src=\"https:\/\/www.acugis.com\/gis-tutorials\/wp-content\/uploads\/2024\/10\/pyramid_store.png\" alt=\"\" class=\"wp-image-417\" srcset=\"https:\/\/www.acugis.com\/gis-tutorials\/wp-content\/uploads\/2024\/10\/pyramid_store.png 329w, https:\/\/www.acugis.com\/gis-tutorials\/wp-content\/uploads\/2024\/10\/pyramid_store-183x300.png 183w\" sizes=\"auto, (max-width: 329px) 100vw, 329px\" \/><\/figure>\n\n\n\n<p>Click OK and then click Save<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Create a New Layer<\/strong><\/p>\n\n\n\n<p>Go to&nbsp;Data \/ Layers \/ Add a new layer<\/p>\n\n\n\n<p>Select the pyramid:<strong>sydney<\/strong>\u00a0entry<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"268\" height=\"353\" src=\"https:\/\/www.acugis.com\/gis-tutorials\/wp-content\/uploads\/2024\/10\/store_select-1.png\" alt=\"\" class=\"wp-image-418\" srcset=\"https:\/\/www.acugis.com\/gis-tutorials\/wp-content\/uploads\/2024\/10\/store_select-1.png 268w, https:\/\/www.acugis.com\/gis-tutorials\/wp-content\/uploads\/2024\/10\/store_select-1-228x300.png 228w\" sizes=\"auto, (max-width: 268px) 100vw, 268px\" \/><\/figure>\n\n\n\n<p>Click on Publish. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"919\" height=\"262\" src=\"https:\/\/www.acugis.com\/gis-tutorials\/wp-content\/uploads\/2024\/10\/layer_publish-1.png\" alt=\"\" class=\"wp-image-421\" srcset=\"https:\/\/www.acugis.com\/gis-tutorials\/wp-content\/uploads\/2024\/10\/layer_publish-1.png 919w, https:\/\/www.acugis.com\/gis-tutorials\/wp-content\/uploads\/2024\/10\/layer_publish-1-300x86.png 300w, https:\/\/www.acugis.com\/gis-tutorials\/wp-content\/uploads\/2024\/10\/layer_publish-1-768x219.png 768w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/figure>\n\n\n\n<p>You will be taken to the &#8220;Edit Layer&#8221; menu, where you can change some parameters.<\/p>\n\n\n\n<p>You can edit various layer properties, as title, abstract, etc. In &#8220;Coverage Parameters&#8221; you can set &#8216;Multithreaded granule loading&#8217;, if you have multi-core CPU.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"508\" height=\"609\" src=\"https:\/\/www.acugis.com\/gis-tutorials\/wp-content\/uploads\/2024\/10\/edit_layer-2.png\" alt=\"\" class=\"wp-image-423\" srcset=\"https:\/\/www.acugis.com\/gis-tutorials\/wp-content\/uploads\/2024\/10\/edit_layer-2.png 508w, https:\/\/www.acugis.com\/gis-tutorials\/wp-content\/uploads\/2024\/10\/edit_layer-2-250x300.png 250w\" sizes=\"auto, (max-width: 508px) 100vw, 508px\" \/><\/figure>\n\n\n\n<p>When ready, click the Save button.<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>View the Pyramid<\/strong><\/p>\n\n\n\n<p>Go to&nbsp;Data \/ Layer Preview<\/p>\n\n\n\n<p>Find the &#8220;pyramid:<strong>sydney<\/strong>&#8221; in Name column. You can use the search box on top<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"932\" height=\"223\" src=\"https:\/\/www.acugis.com\/gis-tutorials\/wp-content\/uploads\/2024\/10\/layer_preview-1.png\" alt=\"\" class=\"wp-image-424\" srcset=\"https:\/\/www.acugis.com\/gis-tutorials\/wp-content\/uploads\/2024\/10\/layer_preview-1.png 932w, https:\/\/www.acugis.com\/gis-tutorials\/wp-content\/uploads\/2024\/10\/layer_preview-1-300x72.png 300w, https:\/\/www.acugis.com\/gis-tutorials\/wp-content\/uploads\/2024\/10\/layer_preview-1-768x184.png 768w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Click on OpenLayers to view it. You can zoom in\/out and move around the map.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"779\" height=\"680\" src=\"https:\/\/www.acugis.com\/gis-tutorials\/wp-content\/uploads\/2024\/10\/layer_map-1.png\" alt=\"\" class=\"wp-image-425\" srcset=\"https:\/\/www.acugis.com\/gis-tutorials\/wp-content\/uploads\/2024\/10\/layer_map-1.png 779w, https:\/\/www.acugis.com\/gis-tutorials\/wp-content\/uploads\/2024\/10\/layer_map-1-300x262.png 300w, https:\/\/www.acugis.com\/gis-tutorials\/wp-content\/uploads\/2024\/10\/layer_map-1-768x670.png 768w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/figure>\n\n\n\n<p>You can learn more about the ImagePyramid Data Store at:<\/p>\n\n\n\n<p><a href=\"https:\/\/docs.geoserver.org\/main\/en\/user\/data\/raster\/imagepyramid.html\">https:\/\/docs.geoserver.org\/main\/en\/user\/data\/raster\/imagepyramid.html<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post will cover creating an ImagePyramid data store with GeoServer. If you have image files prepared, you can skip the &#8220;Prepare Files&#8221; section below. Prepare files We will use the Sydney GeoTIFF image from\u00a0PlanetSAT geospatial-data-samples\u00a0to create our pyramid. Create new directory &#8216;sydney&#8217; in your GeoServer data\/data directory. Now, still in our &#8216;sydney&#8217; directory, let&#8217;s &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.acugis.com\/gis-tutorials\/geoserver\/geoserver-imagepyramid-data-store\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;GeoServer: ImagePyramid Data Store&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":48,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-412","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.acugis.com\/gis-tutorials\/wp-json\/wp\/v2\/pages\/412","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.acugis.com\/gis-tutorials\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.acugis.com\/gis-tutorials\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.acugis.com\/gis-tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.acugis.com\/gis-tutorials\/wp-json\/wp\/v2\/comments?post=412"}],"version-history":[{"count":2,"href":"https:\/\/www.acugis.com\/gis-tutorials\/wp-json\/wp\/v2\/pages\/412\/revisions"}],"predecessor-version":[{"id":426,"href":"https:\/\/www.acugis.com\/gis-tutorials\/wp-json\/wp\/v2\/pages\/412\/revisions\/426"}],"up":[{"embeddable":true,"href":"https:\/\/www.acugis.com\/gis-tutorials\/wp-json\/wp\/v2\/pages\/48"}],"wp:attachment":[{"href":"https:\/\/www.acugis.com\/gis-tutorials\/wp-json\/wp\/v2\/media?parent=412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}