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
    0
    votes
    1 answer

    Is it possible to use PHP with Mapserver?

    I am using Apache and Mapserver, for creating a GIS based web application. Mapserver use CGI script. But for some specific purposes I want to use PHP, is it possible to use ? What changes I have to make in Apache's and Mapserver's configuration…
    Padfoot
    • 153
    • 1
    • 7
    0
    votes
    2 answers

    Show raster from postgis via mapserver

    I would like to show raster from database. I read article How can I add a PostGIS raster layer to my MapServer map? and created mapfile according by this. I get 500 - Internal server error. When I display this raster in QGIS via PostGIS, the error…
    bagrball
    • 11
    • 4
    0
    votes
    1 answer

    NGINX location rewrite

    Given the URL below, how can I have NGINX automatically pass the last part of the URL (not the GET Params but the last chunk of the base URL - myMap) to fastcgi_param SCRIPT_FILENAME? The…
    Matt
    • 7,022
    • 16
    • 53
    • 66
    0
    votes
    1 answer

    cmake regex.c issue in cygwin with mapserver

    I try to install mapserver-6.4.1 in cygwin 32-bit, but it gives an error: CMake Error at CMakeLists.txt:233 (add_library): Cannot find source file: //regex.c Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp …
    Gery
    • 8,390
    • 3
    • 22
    • 39
    0
    votes
    1 answer

    Switching MapServer from Linux with Apache to Windows with IIS. Blank PNG Response

    I'm having a interesting problem that I've been working on for a few days now where in windows I get a blank png response back however in linux with an almost identical map file I get the expected out put. I had MapServer set up in Linux using…
    Zach Russell
    • 328
    • 3
    • 7
    0
    votes
    1 answer

    Dynamic template path in MapServer

    I'm building a PHP web-mapping application which has own mapserver. I have two templates for each layer - a template for guest and for logged user. My normal mapfile has a line like TEMPLATE "templates/template.html" But I have also a…
    user3740742
    • 51
    • 1
    • 1
    • 4
    0
    votes
    1 answer

    mapscript : adding Label to Layer with persian text

    I am having some issues using Persian text as label. I am using C# mapscript. I am setting the following at runtime:(like button click) private void addLayer(String layerName) { if (layer == null) { //create a layer …
    kamran ghiasvand
    • 836
    • 2
    • 11
    • 19
    0
    votes
    0 answers

    Mosaic of a layer in openlayer

    I'm working with mapserver and openlayers, and I have a problem when I draw a WMS layer. I get a mosaic of this layer and I don't know why. Anybody can help me? My HTML code is: map = new OpenLayers.Map('map', { controls: [] }); wms = new…
    user2898914
    • 115
    • 4
    0
    votes
    1 answer

    Connecting a Non-GeoDatabase to a GeoServer

    As you know, the architecture of a simple GIS is as follows: GeoDatabase->MapServer->Client. Between mapServer and Client, there is some amount of standardization: MapServer -> (OGC Standard adapter) -> Client. I want to know if something similar…
    user1275011
    • 1,552
    • 1
    • 16
    • 36
    0
    votes
    1 answer

    Can I Add SQL QUERY in EXPRESSION MAPFILE?

    Can I Add SQL QUERY in EXPRESSION MAPFILE ? like this .. CLASS Name '> 0' EXPRESSION (SELECT * from tb_kelurahan where id_kecamatan='[id_kecamatan]' > 0) COLOR 20 215 0 OUTLINECOLOR 0 0 0 END # Class
    0
    votes
    1 answer

    modify a mapfile Online

    how can I rename files and strings in a mapfile in real time on a web application. thanks for answers
    Ricardo Rod
    • 8,453
    • 9
    • 27
    • 39
    0
    votes
    1 answer

    Is using MapServer to merge several MapLayers on runtime to use with Leaflet a good idea?

    MY PROBLEM We´re doing a Project right now where we have to display a huge image (containing chemical compounds and elements, so not geo referenced) as a map within a Web-Application (with Leaflet). The image itself is an Adobe Illustrator-File, so…
    David Losert
    • 4,652
    • 1
    • 25
    • 31
    0
    votes
    1 answer

    I need help to build my map

    the problem I already set up my layer and my class but nothing appears, simply does not appear anything! LAYER CONNECTION "host=xxx.x.x.x user=xxxxxx password=***** port=5432 dbname=banco" CONNECTIONTYPE POSTGIS DATA "geom from (Select cnes,…
    Kaic_supra
    • 123
    • 1
    • 3
    • 8
    0
    votes
    1 answer

    Count symbols of a entire layer in MapServer

    Is there a way to count how many items/geometrys a layer received? What I want to do is to draw a diferent symbol if the query return too many items. Example: MAXFEATURES 10001 #if I get 10001 results, please zoom in CLUSTER MAXDISTANCE 20 …
    andycds
    • 15
    • 3
    0
    votes
    1 answer

    Pass dynamic parameters from openlayers to mapsever via tilecache

    I'm building a mapping application, where shapes and colours go along this path: PostGIS > Mapserver > TileChache > OpenLayers Everything works fine when all parameters are hard coded. But I need users to be able changing paramaters, for example,…
    Arseni
    • 33
    • 6