GeoServer Frequently Asked Questions summary

Source: Internet
Author: User

GeoServer Installation Environment

GeoServer often encounter the following issues when deploying a publishing service, which is summarized as follows:

1. forgot the login user name and password of geoserver Web Admin Page ?

Storage location: C:\Program files\geoserver 2.2.2\data_dir\security\users.properties.old
File content: Admin=geoserver,role_administrator, where admin is the user name, GeoServer is the password.

2.GeoServer of the 8080 What if the port is occupied? How do I modify The port of GeoServer?

The login address of the GeoServer management page is normally: Http://localhost:8080/geoserver/web
If port 8080 is occupied, access to GeoServer WebAdmin page is displayed: Bad Request (Invalid Hostname)
Workaround:
Locate startup file for Start GeoServer (ms-doc batch file): C:\ProgramFiles\GeoServer 2.2.2\bin\startup.bat
Open with Notepad, find-dstop.key=geoserver-djetty.port=8080, change 8080 to another port, restart GeoServer, Access http://localhost: Other ports/geoserver/ The Web is normal.

3. How do i modify The default data path for GeoServer?

The GeoServer data path is determined by the system environment variable geoserver_data_dir , which defaults to C:\Program Files\geoserver 2.2.2\data_dir.

To change the data path, first rename the C:\ProgramFiles\GeoServer 2.2.2\data_dir folder, let GeoServer not find it, and then set the value of the system variable Geoserver_data_dir to a different path.

4. When you publish a map service using SHP file, what happens if Chinese characters are garbled, blocks, question marks, etc. not appearing properly?

When the Shp file field content is Chinese, the dbfcharset should be set to GBK or GB2312.
Note that the CharacterSet of the WORKSPACE needs to be set to UTF-8, and if the same is set to GBK or GB2312, it will not display properly for an unknown reason.

5.GeoServer in Styles How to solve the Chinese display garbled?

The Style file XML encoding property and the label font name must be in support of the Chinese encoding.
If the XML encoding set GBK or GB2312,SLD in the font-family must be a Chinese font (Arial or other), if the font such as the text is displayed as garbled, block or question mark, and so on. Examples such as the following

<?xml version= "1.0" encoding= "GBK"?>

<sld:styledlayerdescriptorxmlns= "HTTP://WWW.OPENGIS.NET/SLD"

Xmlns:sld= "HTTP://WWW.OPENGIS.NET/SLD"

Xmlns:ogc= "HTTP://WWW.OPENGIS.NET/OGC"

Xmlns:gml= "HTTP://WWW.OPENGIS.NET/GML" version= "1.0.0" >

<!--......-->

<sld:Font>

<sld:cssparameter name= "font-family" > Song body </sld:CssParameter>

<sld:cssparametername= "Font-size" >12.0</sld:CssParameter>

<sld:cssparameter name= "Font-style" >normal</sld:CssParameter>

<sld:cssparametername= "Font-weight" >normal</sld:CssParameter>

</sld:Font>

<!--......-->

</sld:StyledLayerDescriptor>

6. How to use uDig to load geoserver WMS and WFS service?

Select Layer >> Add ... from the Udig menu. Select the service type, and then enter the service address HTTP://LOCALHOST:8080/GEOSERVER/WMS or Http://localhost:8080/geoserver/wfs next.

Effects for loading WFS services:

7. in uDig , how do I make a layer appear only in a certain scale range?

Contrary to the scale of the map, the size of the scale in the udig is determined by the size of the denominator of the scale, that is, the maximum display scale is set to a large denominator.

<sld:MinScaleDenominator>1.0E6</sld:MinScaleDenominator>

<sld:MaxScaleDenominator>2.0E7</sld:MaxScaleDenominator>

Citation Link: http://blog.csdn.net/mygisforum/article/details/8249093?utm_source=tuicool

GeoServer Frequently Asked Questions summary

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.