GeoServer Problem Solving

Source: Internet
Author: User

What if the 8080 port of the 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 GeoServer Web Admin pages is displayed: Bad Request ( Invalid Hostname)

Workaround:

Locate startup file for Start GeoServer (ms-doc batch file): GeoServer installation directory \bin\startup.bat with vim, find-dstop.key=geoserver-djetty.port= 8080, change 8080 to another port, restart GeoServer, Access http://localhost: Other port/geoserver/web is normal.

How do I modify the default data path for GeoServer?

The GeoServer data path is determined by the system environment variable GEOSERVERDATADIR, which defaults to the GeoServer installation directory \data_dir.

To change the data path, first rename the GeoServer installation directory \datadir folder, let GeoServer not find it, and then set the value of the system variable Geoserverdata_dir to a different path.

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

When the Shp file field content is Chinese, the DBF charset should be set to GBK or GB2312.

Note that the Character set for the WORKSPACE is set to UTF-8 and cannot be displayed properly if the same setting is GBK or GB2312, for unknown reasons.

5.GeoServer styles in Chinese display garbled how to solve?

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

?
1234567891011 <!--?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">宋体</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>
?
1234567891011 <!--?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">宋体</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>

GeoServer Problem Solving

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.