Hi all
I have a map created via Mapscript under Mapserver 6.0 but I can't find a
way to add a legend. Recent examples are hard to find but I found the
following dating from 2002 which seemed simple enough:
$legend = $map-legend;
$legend-set(width,40);
this seems to be a cairo/pdf issue, as the cairo/png works fine:
Hi,
I believe I istalled Mapserver by doing something like
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install cgi-mapserver mapserver-bin
If I can upgrade cairo, it depends on what you mean with can :) I have enough
rights for the server to do
Hi Mukesh,
your Python script wsgi-script.wsgi needs to have a method named
application() which needs to accept two parameters and has to return
the response body (see e.g. [1] for details).
Inside this method you can use MapScript like in the below incomplete
example (see [2] for details):
Bryan,
from my experience firefox does pretty good with multipart files.
Usually the first part is of type text/xml which is shown in the
browser directly and the second part is opened in an external image
viewer. Unfortunately I don't know a way how to turn multipart of with
WCS 1.1.
However, I
I compiled MapServer 6.0.1 on Windows, with threads, and removed the
components marked unsafe. I also built the Java Mapscript component,
targeting the 1.5 JVM. I can generate a map image, and save it to a file
using the Java method imageObj.save(filename, map). However, when I try
to call
Hello Steve,
Sorry for the delay. I as on holiday last couple of weeks but the
issue is still a blocker for us.
Your say « PostGIS should be returning an appropriate set of candidate
features » but with our request PostGIS returns only the 100 first
features (a subset of all features) without
Hi,
I agree that if Mapserver is doing the final filtering then passing
maxFeatures=100 value for the query selecting the candidates is not right.
But have you tested what happens if you run your WFS query without maxFeatures?
It would be good to know if the result set is OK then.
-Jukka
After quite a while thinking I could not produce a legend I have realised
that the legend is actually there, just off the edge of my map.
Now I see that although my map file specifies a map size of 640 x 480
pixels, if in single tile mode the map image being produced is actually
1110 x 660
Chris,
If you are in tile mode, I assume that you probably don't want an embedded
legend on each tile.
Have you thought about doing a separate call/request/object for the legend?
If you were doing this via CGI, I would recommend doing a separate mode=legend
request.
David.
From:
Hi Stuart,
I don't know if are related problems ... This same problem happens with me,
when I trying to build a extension for Tcl without a little patch.
After the patch, the method getBytes then works fine for me...see:
http://trac.osgeo.org/mapserver/ticket/1533
Good lucky!
Thiago Tiedtke
I have a MrSID file in NAD83 projection (EPGS 4269) which I want to display via
WMS in WGS84 projection (EPGS 4326). I cannot get this to work.
I have tried setting the entire map-file's projection to 4269, with the extent
specified in that projection (in meters), and shp2img shows the image,
I can get php MapScript to segfault drawing PDF maps when the same PNG map
works fine. I had to crank up the allowed memory and allowed time in PHP to
get my maps to work. I will submit a bug report and test case when I
understand the problem better. I am trying to develop a method of creating
Hi,
Could you give a bit more information? Your use case is the most common that
exists and all instructions should be at
http://mapserver.org/ogc/wms_server.html
It would be good to see the gdalinfo report of your image and your mapfile and
the exact WMS request you were using including the
14 matches
Mail list logo