GeoServer Frequently Asked Questions summary

Source: Internet
Author: User

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.

What if the 8080 port of 2.GeoServer 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 8080 ports are occupied, access to the GeoServer Web Admin page is displayed: Bad Request (Invalid Hostname)
Workaround:
Locate startup file for Start GeoServer (ms-doc batch file): C:\Program files\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 variableGeoserver_data_dir, the default is C:\Program files\geoserver 2.2.2\data_dir.
To change the data path, first rename the C:\Program files\geoserver 2.2.2\data_dir folder so that GeoServer cannot 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 contents of the Shp file field are in Chinese, theDBF CharSetSet to GBK or GB2312.
Note the location of the WORKSPACECharacter SetNeed to be set to UTF-8, if the same set to GBK or GB2312 will not display properly for unknown reason.

How to solve the Chinese display of styles in 5.GeoServer? 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

[HTML] View PlainCopyPrint?

  • <?xml version= "1.0" encoding= "GBK"?>
  • <sld:styledlayerdescriptor xmlns= "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:cssparameter name= "Font-size" >12.0</sld:CssParameter>
  • <sld:cssparameter name= "Font-style" >normal</sld:CssParameter>
  • <sld:cssparameter name= "Font-weight" >normal</sld:CssParameter>
  • </sld:Font>
  • <!--......-->
  • </sld:StyledLayerDescriptor>


<?xml version= "1.0" encoding= "GBK"? ><sld:styledlayerdescriptor xmlns= "HTTP://WWW.OPENGIS.NET/SLD" xmlns:s Ld= "HTTP://WWW.OPENGIS.NET/SLD" xmlns:ogc= "HTTP://WWW.OPENGIS.NET/OGC" xmlns:gml= "http://www.opengis.net/g ML "version=" 1.0.0 "><!--......--><sld:Font> <sld:cssparameter name=" font-family "> Arial &LT;/SLD: cssparameter> <sld:cssparameter name= "font-size" >12.0</sld:CssParameter> <sld:cssparameter name= "Font-style" >normal</sld:CssParameter> <sld:cssparameter name= "Font-weight" &GT;NORMAL&LT;/SLD: cssparameter></sld:font><!--......--></sld:StyledLayerDescriptor>6. How do I use Udig to load geoserver wms and WFS Services?
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.
[HTML] View PlainCopyPrint?

    • <sld:MinScaleDenominator>1.0E6</sld:MinScaleDenominator>
    • <sld:MaxScaleDenominator>2.0E7</sld:MaxScaleDenominator>


<sld:minscaledenominator>1.0e6</sld:minscaledenominator><sld:maxscaledenominator>2.0e7</ Sld:maxscaledenominator> to Be Continued ...
This post is from: http://blog.csdn.net/mygisforum/article/details/8249093

GeoServer Frequently Asked Questions summary (GO)

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.