Questions tagged [mapserver]

MapServer is an Open Source geographic data rendering engine written in C, designed for fast display of dynamic maps on the Internet. Beyond browsing GIS data, MapServer allows you create “geographic image maps”, that is, maps that can direct users to content.

MapServer is an Open Source geographic data rendering engine written in C. Beyond browsing GIS data, MapServer allows you create “geographic image maps”, that is, maps that can direct users to content. For example, the Minnesota DNR Recreation Compass provides users with more than 10,000 web pages, reports and maps via a single application. The same application serves as a “map engine” for other portions of the site, providing spatial context where needed.

MapServer was originally developed by the University of Minnesota (UMN) ForNet project in cooperation with NASA, and the Minnesota Department of Natural Resources (MNDNR). Later it was hosted by the TerraSIP project, a NASA sponsored project between the UMN and a consortium of land management interests.

MapServer is now a project of OSGeo, and is maintained by a growing number of developers (nearing 20) from around the world. It is supported by a diverse group of organizations that fund enhancements and maintenance, and administered within OSGeo by the MapServer Project Steering Committee made up of developers and other contributors.

  • Advanced cartographic output
    • Scale dependent feature drawing and application execution
    • Feature labeling including label collision mediation
    • Fully customizable, template driven output
    • TrueType fonts
    • Map element automation (scalebar, reference map, and legend)
    • Thematic mapping using logical- or regular expression-based classes
  • Support for popular scripting and development environments
    • PHP, Python, Perl, Ruby, Java, and .NET
  • Cross-platform support
    • Linux, Windows, Mac OS X, Solaris, and more
  • Support of numerous Open Geospatial Consortium
  • WMS (client/server), non-transactional WFS (client/server), WMC, WCS, Filter Encoding, SLD, GML, SOS, OM
  • A multitude of raster and vector data formats
    • TIFF/GeoTIFF, EPPL7, and many others via GDAL
    • ESRI shapfiles, PostGIS, ESRI ArcSDE, Oracle Spatial, MySQL and many others via OGR
  • Map projection support
    • On-the-fly map projection with 1000s of projections through the Proj.4 library
  • Website: http://mapserver.org/

    218 questions
    2
    votes
    2 answers

    Is it possible to display OSM data with another WMS layer of a different projection?

    I have an issue where I have a large amount of data stored in EPSG:27700 (OSGB) that needs to be mapped. I have already developed a mapper to do this using OpenLayers and for a base layer, OpenSpace from the UK Ordinance Survey…
    Ryan Amies
    • 4,902
    • 1
    • 21
    • 36
    1
    vote
    0 answers

    How to display raster layer in umn mapserver clearly

    In my example the raster layer is not displaying in the correct color. When the layer is zoom in it is displaying in the correct color. Please check my code. Please tell me if anything should be added. My map is displayed in one rectangular box. If…
    1
    vote
    1 answer

    MapServer SOS (Sensor Observation Service) Configuration

    I tried to set up MapServer SOS but I faced a problem: the SOS doesn't return anything. You may see the map file I have created below: MAP NAME "SOS_DEMO" STATUS ON SIZE 400 300 EXTENT -180 -90 180 90 UNITS METERS …
    1
    vote
    1 answer

    GeoServer and MapServer annotation feature

    I am evaluating 2 products GeoServer and MapServer at this moment for a mapping solution. One of the requirement is to enable end users to annotate map with text, lines and symbology and then save it as a file perferred image file to be embedded on…
    1
    vote
    1 answer

    How to generate .map file from from .shp files?

    I have a bunch of ESRI Shape files (.shp) bundled with .dbf and .shx files. Is there anyway to generate .map file consumable by MapServer automatically? Ideally by some command-line command in linux.
    Elvin R.
    • 852
    • 1
    • 10
    • 20
    1
    vote
    0 answers

    MapServer (WMS) OAPIF connection - disable schema establishing

    According to the Layer Schema GDAL docs GDAL Driver does the following: OGR needs a fixed schema per layer, but OGC API - Features Core doesn’t impose fixed schema. So the driver will retrieve the first page of features (10 features) and establish…
    user2151486
    • 778
    • 2
    • 13
    • 25
    1
    vote
    0 answers

    function force_2d(geometry) does not exist

    I'm using Centos 7. Have PostgreSQL & PostGIS installed, I want to display mapfile using MapServer to openlayer. I've also added the PostGIS extension to my database, but when I call the mapfile that already has a query, there's no error. Here is…
    aja9812
    • 11
    • 1
    1
    vote
    0 answers

    How to apply buffer in MapServer WMS query?

    I am trying to add a pixel buffer around a WMS query in MapServer. I noticed in MapServer/mapwms.cpp there is an option to set 'tiled=true' which should check for "tile_map_edge_buffer" "100" value in the map config file. However, when I check the…
    Oz1
    • 11
    • 2
    1
    vote
    2 answers

    How to show dwg in web page

    I have a dwg (I can change the file format to svg or other formats if needed) file that I want to show on my web page. After this file is displayed in the page, I want to be able to zoom in, zoom out, pan and put links that request the api where…
    1
    vote
    1 answer

    OpenLayers 6.5.0 not parsing GML 3.2 with multiple featuretypes

    I can't get openlayers 6.5.0 to parse a WFS 2.0.0 response in GML 3.2, when the response contains multiple featuretypes. It' works as long the response contains only one featuretype. I've put together a simple example with fake responses, as they…
    mschenk
    • 31
    • 4
    1
    vote
    0 answers

    Mapscript circular import error in Python inside Docker

    I have a simple flask app and I am trying to run in Docker import mapscript from flask import Flask import json app = Flask(__name__) port = 5000 @app.route("/hello") def geocoder(): epsg = mapscript.pointObj(1, 1) return…
    akudekar
    • 21
    • 4
    1
    vote
    1 answer

    Why doesn't MapServer recognize shp file created from ogrtindex?

    I am trying to create a MapServer layer from tif pyramid but always facing the same error : msDrawMap(): Image handling error. Failed to draw layer named 'ign_2020'.; msDrawRasterLayerLow(): Unable to access file. Corrupt, empty or missing file…
    PopHip
    • 700
    • 6
    • 23
    1
    vote
    1 answer

    The setHex method of PHP MapScript doesn't work

    I'm using PHP MapScript 6.4 to interact with my Mapfile. I try to use the setHex() colorObj method like that: $oStyle->color->setHex($color); Where $color is an hexadecimal value as we can see in my logs But regarding the MapScript…
    MaLa
    • 33
    • 4
    1
    vote
    3 answers

    Mapserver and Flex

    Anyone know how I can integrate Flex and Mapserver in much the same way Flex and ArcServer talk? Thanks!
    Joseph
    1
    vote
    1 answer

    WMS GetFeatureInfo request with buffer doesn't return any result (OpenLayers/MapServer)

    I'm using OpenLayers 4 to build a GetFeatureInfo url with a buffer parameter to a WMS layer in Mapserver in order to find the closest feature of the layer given some specific coordinates. The problem is that the request never returns any result at…
    Fran1911989
    • 51
    • 2
    • 5