Geoserver+mysql Installation and configuration process

Source: Internet
Author: User

GeoServer installation configuration please refer to http://simen-net.iteye.com/blog/609078

Since most of the Webgis is not just a map display, but also needs some business processing, will be useful to the database place, so I want to put the map into the database, so that the performance, security and other aspects have a great improvement, especially when modifying the map can be directly to the database operation. This tests the installation configuration in MySQL background.

1. Download and install MySQL5

2. Convert Map to Database

Download http://code.google.com/p/qogr2ogr/, this is a very good open source gadget, in fact, is Ogr2ogr GUI program, we should encourage more encouragement AH!!! This gadget can directly support MySQL input import, is the aspect, we refer to the following image to operate on it. The database name here is map

3. Download and install geoserver MySQL plugin

MySQL plugin (http://downloads.sourceforge.net/geoserver/geoserver-2.0.1-mysql-plugin.zip), Unzip the Geoserver-2.0.1-mysql-plugin.zip and copy the Gt-jdbc-mysql-2.6.1.jar and Mysql-connector-java-5.1.5.jar to the Webapps/geoserver Please restart Tomcat after/web-inf/lib

4. New MySQL Store


Here choose MySQL as the store, fill in the content should not have too much to be, everyone reference


After saving the following interface appears, this shows found in the database of three tables, but only useful bount_line, so we only publish him


The following need attention!!! Here are two menu [Data] and [publishing],data section reference http://simen-net.iteye.com/blog/609078 in the method of SHP configuration, here also need to set the following [Publishing] section

[Publishing] To set the default style for line, why? Because I'm using the Bount_line map, he's actually a line type, in http://simen-net.iteye.com/blog/609078 Does not need to set [publishing] feeling is because geoserver through the SHP file identified his type, but converted to a database after the recognition, if not set to line type, the publication can be successful, but the map is all point.

The rest is the same as http://simen-net.iteye.com/blog/609078.

Geoserver+mysql Installation and configuration process

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.