Mapscript C # tutorial-programming mapserver in the ASP. NET Framework)

Source: Internet
Author: User
Tags postgis

Link:
Http://www.paolocorti.net/public/dokuwiki/doku.php? Id = mapserver: tutorial

This tutorial will try to guide you step by step in implementing a GIS (Geographic Information Systems) web solution, based on open source software (mapserver and postgis), within the. NET Framework.

How to download the tutorial

The tutorial's data needed to complete this tutorial are downloadable here. In any case the tutorial is made in a way that you can easily adapt to use your own data (shapefiles ).

Here you can find a complete working Visual Studio 2003 solution (ASP. NET 1.1) with the whole tutorial's solution.

Take a look at a working online demo of the tutorial

Before beginning following the tutorial's steps you can take a look at a working Online Demo of it: Try to navigate the map (zoom in, zoom out ), identify features on the active layer, add features (and attributes) to a point layer (POI), restore (clear) The point layer where you have added the features, switch on/off layers visibility.

Tutorial's audience

The tutorial is designed to work with Visual Studio 2003 and. NET 1.1, but you will easily be able to perform all the necessary steps to complete it using another version of Visual Studio (ie: Visual Studio 2005) or other IDES (like Visual Web Developer 2005 express edition or even the notepad ). it will work also using. net 2 as C # mapscript is. net 2 compatible.

The tutorial is focused to people with knowledge of C # (but can be easily implemented. net Visual Basic) and. NET framework, and with some background in GIS. if you are new to GIS, a good place to start is here: http://en.wikipedia.org/wiki/GIS.

This tutorial cocould be easily adapted for other programming ages and frameworks rather than C # (or VB) and Microsoft. net framewok. in fact the Open Source component we are going to use (mapserver) is also available for PHP, Java and python, and other ages.

As we will implement a C # ASP. NET application, take care about this issue (that shocould be solved in the future): mapserver thread safety? (Http://mapserver.gis.umn.edu/docs/faq/thread_safety) and about plans to solve this issue (http://mapserver.gis.umn.edu/development/rfc/ms-rfc-15 ).

Tutorial's feedback

If you find something wrong in this tutorial, or if you wocould like to have some improvement about it write me a email or drop a comment on my blog on this web site.

I will try to give you an answer.

Tutorial Index

For completing the tutorial you will need to perform, with the suggested order, the following steps:

    • Introduction to mapserver Web GIS Development Environment
    • Installing Map Server
    • Creating the mapfile and Data configuration
    • Designing the tutorial user interface
    • Implementing the C # mapscript code
    • Migrating shapefile to postgis
    • Connecting mapfile layer to postgis
    • Adapting C # code to work indifferently with shapefile or postgis Layers

      Technical blog: http://xiexiaokui.cnblogs.com

Related Article

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.