Changes between Initial Version and Version 1 of FAQ


Ignore:
Timestamp:
Jan 27, 2009, 10:31:11 AM (15 years ago)
Author:
jmckenna
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FAQ

    v1 v1  
     1= FAQ =
     2
     3The formal FAQS document is found at:
     4
     5  hhttp://www.mapserver.org/faq.html
     6
     7However, given the nature of the Wiki I would like this to be a dynamic FAQ for new issues. It is also reasonable to post questions here for which the answer is not yet known.
     8
     9== Where is information about MapServer error message? ==
     10
     11  * See the main [http://www.mapserver.org/errors.html Errors] page
     12  * There is also a [wiki:MapServerErrors wiki page]
     13
     14Can Mapserver be used to make something like mapquest? If not why not?
     15
     16How do I find out what developments are going on in MapServer?
     17
     18    Starting with MapServer 3.6, a HISTORY.TXT file is included in the source package and documents the changes between releases and their impact on users.
     19    Also, a complete log of CVS commit messages for MapServer is updated each morning at http://www2.dmsolutions.ca/mapserver/dl/mapserver_ChangeLog.txt
     20
     21What are the most significant changes in the last year or so? I haven't used Mapserver for about 18 months. What might I be most excited about?
     22
     23    Well, the last 18 (this was written on 7/3/02) months have seen the releases of 3.5 and 3.6. Version 3.5 was a major reworking of the MapServer internals and could have been called 4.0. Most importantly 3.5 leveled the playing field across data sources. Anything you could do with shapefiles could now be done with OGR datasources, SDE or even PostGIS. This included query support.
     24
     25    3.5 also marked the start of MapServer support for the OpenGIS WMS standard. MapServer could act as a WMS server AND could act as a WMS client (cascading MapServer). GML output also made it debut.
     26
     27    3.6 was much more of a maintenance release although there were new features added. See the above question for a reference to the change log. DM Solutions introduced their PHP MapServer management tools based on the 3.6 release.
     28
     29    3.7 is in the works and will be more of a major release with the main features being the addition of 24-bit input/output support (yeah!) and advanced symbolization options (drop shadows, multiple stacked symbols, feature offsets) using the new style object.
     30
     31Is there an easier way to edit .map/mapfiles files?
     32
     33    You could try loading and using mapEditor for mapserver available at:
     34
     35        http://software-dkplan.carlbro.dk/mapEditor/index.html
     36
     37    or the web based MapLab? suite from DM Solutions:
     38
     39        http://www2.dmsolutions.ca/webtools/maplab/
     40
     41How do I increase the number of allowed symbols/maxsymbols?
     42
     43         1. Change MS_MAXSYMBOLS in mapsymbol.h by hand
     44         2. Use the perl-oneliner:
     45
     46          perl -p -i'.orig' -e 's/#define MS_MAXSYMBOLS \d+/#define MS_MAXSYMBOLS 128/' mapsymbol.h
     47          (thanks Markus Spring)
     48
     49    Then recompile.
     50
     51Anytime I put numbers in the MaxScale? / MinScale?, the layers are not displayed at all. I have put numbers of varying ranges in, but no luck. Any ideas?
     52
     53    Try putting a [scale] tag in your template to view the range of scale values that your map produces as you zoom in and out. This will help you in figuring the numbers to use as minscale and maxscale.
     54
     55    Also, if the scale value is not in the range that you expect it may be because the UNITS at the top level of your map are not set properly. The UNITS parameter must correspond to the units used by the EXTENT in your mapfile.
     56
     57Why isn't the map file in XML format? XML is really cool...
     58
     59    This topic has surfaced a few times on the mailing list, here are some threads. My own recollection is that an XML map file would make Mapserver more complex for little benefit, and that other functionality is higher up on the wish list. But if you think you know why the map file should be XML, you can always have another try convincing people.
     60    http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0005/msg00057.html
     61    http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0010/msg00161.html
     62    http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=266
     63
     64    Comment: Many people who know enough about XML to make a convincing argument also have the skills needed to change the Mapserver code to add the feature. Instead of trying to convince others you can do it yourself, find a programmer who wants to help, or pay a programmer. Or start by breaking up the code into relevant fragments so others can code part of it while you're working in one corner. A programmer could make Mapserver recognize an XML map file in addition to the current map file format, so XML can be used by those who want it. An improvement is to allow Mapserver to write an XML version of a map file (from either format) in a way which allows use in a script to do conversion.
     65
     66How do I add a north arrow to my maps
     67
     68    Add the following to your symbols. The GIF should of course be an existing file.
     69    Disclaimer: This north arrow always points up. If you use some weird projection, where north isn't straight up (does such a projection exist?), you will have to do something else.
     70
     71    SYMBOL
     72      NAME "n_arrow"
     73      TYPE pixmap
     74      IMAGE "images/nordpil6.gif"
     75    END
     76
     77    Add this layer and adjust the feature points to your map size
     78
     79    LAYER
     80        NAME "n_arrow"
     81        STATUS DEFAULT
     82        TRANSFORM FALSE
     83        TYPE POINT
     84        FEATURE
     85          POINTS 650 80 END
     86        END
     87        CLASS
     88          STYLE
     89            SYMBOL "n_arrow"
     90          END
     91        END
     92    END
     93
     94I'm using Windows 2003 and see a Load Symbol error
     95
     96    if you get this error - " loadsymbol().Unable to access file. Parsing error near(your image path)"
     97
     98    * Check the path of your image
     99    * Check the image file permission
     100    * Change the file Permission to anonymous if to be used over the internet
     101
     102    right click on image -> security ->  Add -> (type) Anonymous ->(at least give read access)
     103
     104    NOTE: If you are unable to see any other images then follow the same above procedure for you tmp folder and ref images.
     105
     106How do I Create a clickable Reference map?
     107
     108    make sure u have changed the image tag to input tag
     109
     110    <img name="ref" src="[ref]"> TO <input type="image" name="ref" src="[ref]" border="0">
     111
     112    this subtle difference makes the image clickable, as if its a form input
     113
     114How can I improve the documentation?
     115
     116    * Extend the Wiki by adding content
     117    * Look up and answer FixMe questions or CategoryUnanswered topics.
     118    * Patch the documentation.
     119
     120Can I add a graphic to a map?
     121
     122Q: I'd like to display a time series plot near a xy location on a map. I can generate the graph externally, but would like to overlay it on the map. How would I do this? (FixMe)