[OSM-GIS] open source web GIS Construction

Source: Internet
Author: User
Recently, I have tried to apply open-source GIS to commercial platforms. I have tried to use the structure of geoserver + postgis + OpenStreetMap.

 

The main difficulties are data import and boundary issues, vector style sheets, etc.

 

There are many import methods. You can refer to the Wiki of OpenStreetMap.

 

The corresponding shapefile is used for the boundary. The source is also the content of OpenStreetMap.

 

It is difficult to directly use SLD as a style sheet. Here, the geoserver CSS module is used to simplify the operation, combining the content of osmarender and mapnik.

Here is an example. If you do not understand it, contact me.

 

 

 

/** @ Title highway-motorway/motorway_link */[highway = 'motorway'], [highway = 'motorway _ link'] {stroke: #809bc0; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round;}/** @ title highway-motorway label ref */[highway = 'motorway'] [strlength (REF) <= 2] {shield: URL ("PIC/mot_shield3.png"); label: [Ref]; font-size: 11; font-family: Arial; font-fill: # ffffff; font-weight: bold;-GT-label-group: true ;}

 

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.