Publishing based on the GeoServer tiled map service

Source: Internet
Author: User

Then, in the previous article, how to convert the JPG format image to the nearest item mentioned in the geo-coordinate TIFF format, the data source is a high-resolution 2.5-dimensional image that has now been successfully converted into a TIFF format with geographic coordinates. Here's how GeoServer will publish this TIFF format data in the form of TMS (tiled Map Service). The author used the commercial software ArcGIS server to publish the map service is more familiar. The use of open source software release is still in the groping and learning phase.

1.GeoServer Introduction

GeoServer is a community open source project implemented by the Java OpenGIS WEB Server specification. With GeoServer, you can easily publish map data, and GeoServer can easily share spatial geographic information among users quickly. It is compatible with WMS and WFS features, supports PostGIS, Shapefiles, ArcSDE, Oracle, VPF, MySQL, MapInfo, supports hundreds of projections, and can output network maps as JPEG, GIF, PNG, SVG, KML, etc. AJAX-enabled map client openlayers;

2.GeoServer Download and Installation

: Http://geoserver.org/display/GEOS/Welcome, the latest version is GeoServer 2.3.3, about geoserver specific installation process here will not expand to introduce, installation process has a note, When setting the port number, if the machine has a Tomcat server installed by default, the port number of the geoserver should not be set to the default of 8080, avoid conflict with Tomcat's port number, causing unnecessary trouble.

3. Publishing the WMS

(1) Start the GeoServer service first, click Start GeoServer, will pop up a console program, and so on, click GeoServer Web Admin page to open the GeoServer home page, enter the user name admin, Password GeoServer, open the home page.

(2) Create a workspace, add a new space test via add workspace, and set it as the default space.

(3) Add store, click the Add new store, you can see the data source includes many, there are vector data source (vector Sources), raster data Source (Raster), and so on. Here we choose GeoTiff, the image of the conversion of the previous article in the TIFF format with the geographical coordinates of the picture loaded in.

(4) To publish the WMS, click the Publish button to publish the newly created layer s.

(5) Pop up the display box to set the release parameters. Including 4 tags, data, publish, size, tile cache, such as no need to slice the cache, you can do without any settings, directly by default save.

(6) Click Openlayers in the layer preview to view the published map.

(7) At this point, the WMS has been published successfully, in the browser can see the address of the service http://localhost:8080/geoserver/test/wms?service=wms&version=1.1.0& request=getmap&layers=test:s&styles=&bbox=-0.5,-3071.5,6143.5,0.5&width=660&height=330 &srs=epsg:404000&format=application/openlayers, we can call the WMS through Openlayers to see our published map service in our browser.

4. Release the TMS

(1) The tile caching option is not set during the release process, if you want to publish the tile service, you need to set it up, create a new gridsets before you set up the tile caching, set the name of the grid set, coordinate system, the extent of the slice, The width and height of the slices and the series of slices are set at level 6. The extent of the slices is derived from the extent of the map when the map is published.

(2) After setting gridsets, go back to the Gridset in tile caching, select the newly created Gridset, the policy for slicing. Save it.

(3) Click on the tile Layers of the function bar on the left, then find the map just published, click Seed/truncate, open the Settings page.

(4) Set Zoom start and zoom stop, click Submit, you can implement the slice, slice file saved in GeoServer 2.3.3 installation directory \DATA_DIR\GWC folder, open to see slices.

This is described in the release of the GeoServer tiled map service.

Publishing based on the GeoServer tiled map service

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.