[mapserver-users] Mapfile Location for WMS Server

2009-04-01 Thread Andrew Ayre
Hi! I'm setting up a WMS server with mapserver using PostGIS. The 
mapserver will be a central server providing data to multiple websites.


I have mapserv in cgi-bin and nothing in public_html because it isn't 
needed.


Where do I place the map file? I've tried putting it in cgi-bin and 
public_html and both give the same result when trying to get the WMS 
capabilities:


loadMap(): Web application error. CGI variable "map" is not set.

thanks, Andy

--
Andy
PGP Key ID: 0xDC1B5864
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapfile Location for WMS Server

2009-04-02 Thread Andrew Ayre
Thanks to everyone that replied - I have it working now. I saw that you 
can add additional parameters to tile requests, but what confused me is 
that I didn't know you could add them to the getcapabilities request.


Thanks!

Andy

Benoît Andrieu wrote:

Hi Andrew,

You can put the file wherever you want on your file system at the 
condition that MapServer has the rights to reach it and read it.


How did you get this error ?

Your request to Mapserver should include a parameter specifying the map 
to read :

http://localhost/mapserver/cgi-bin/mapserv.exe?map=c:\data\mymap.map&;...

Regards,

Benoît Andrieu
b...@ixsea.com
benoit.andr...@gmail.com

- Original Message - From: "Andrew Ayre" 
To: 
Sent: Thursday, April 02, 2009 6:44 AM
Subject: [mapserver-users] Mapfile Location for WMS Server


Hi! I'm setting up a WMS server with mapserver using PostGIS. The 
mapserver will be a central server providing data to multiple websites.


I have mapserv in cgi-bin and nothing in public_html because it isn't 
needed.


Where do I place the map file? I've tried putting it in cgi-bin and 
public_html and both give the same result when trying to get the WMS 
capabilities:


loadMap(): Web application error. CGI variable "map" is not set.

thanks, Andy

--
Andy
PGP Key ID: 0xDC1B5864
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users 


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users





--
Andy
PGP Key ID: 0xDC1B5864
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] AGG Rendering

2009-04-02 Thread Andrew Ayre
Hi! I can't seem to get AGG to work. Currently my output is not 
antialiased. Can anyone give me some hints? Thanks!


Note that I have built AGG 2.5 with freetype support. Also note that I 
needed two


./configure --with-postgis=/usr/bin/pg_config --with-wfs --with-proj 
--with-geos=/usr/bin/geos-config --with-gd=/usr/local/ --with-jpeg 
--with-ogr=/usr/bin/gdal-config --with-gdal=/usr/bin/gdal-config 
--with-agg=/usr/local/src/agg-2.5 --with-freetype


MapServer is now configured for

 -- Compiler Info -
  C compiler:gcc -O2 -fPIC -Wall
  C++ compiler:  g++ -O2 -fPIC -Wall
  Debug:
  Generic NINT:

 -- Renderer Settings -
  zlib support:  -DUSE_ZLIB
  png support:
  palette rgba png support:
  jpeg support:
  iconv support: -DUSE_ICONV
  AGG support:   -DUSE_AGG
  AGG Freetype support:  agg_font_freetype.o
  Ming(flash) support:
  PDFLib support:

 -- Support Libraries -
  Proj.4 support:-DUSE_PROJ
  Libxml2 support:
  FriBidi support:
  Curl support:
  FastCGI support:
  Threading support:
  GEOS support:  -DUSE_GEOS

 -- Data Format Drivers ---
  native tiff support:
  PostGIS support:   -DUSE_POSTGIS
  EPPL7 support: -DUSE_EPPL
  ArcSDE support:
  OGR support:   -DUSE_OGR
  GDAL support:  -DUSE_GDAL
  Oracle Spatial support:

 -- OGC Services --
  WMS Server:-DUSE_WMS_SVR
  WMS Client:
  WFS Server:-DUSE_WFS_SVR
  WFS Client:
  WCS Server:
  SOS Server:

 -- MapScript -
  PHP MapScript: no

./mapserv.cgi -v
MapServer version 5.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP 
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV 
SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER SUPPORTS=GEOS INPUT=EPPL7 
INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE


OUTPUTFORMAT
  NAME 'AGG_Q'
  DRIVER AGG/PNG
  IMAGEMODE RGB
  FORMATOPTION "QUANTIZE_FORCE=ON"
  FORMATOPTION "QUANTIZE_DITHER=OFF"
  FORMATOPTION "QUANTIZE_COLORS=256"
END

This is the error message I get:

loadOutputFormat(): General error message. OUTPUTFORMAT clause 
references driver AGG/PNG, but this driver isn't configured.


Andy

--
Andy
PGP Key ID: 0xDC1B5864
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] AGG Rendering

2009-04-03 Thread Andrew Ayre

Gregor at HostGIS wrote:

Andrew Ayre wrote:
Hi! I can't seem to get AGG to work. Currently my output is not 
antialiased. Can anyone give me some hints? Thanks!


loadOutputFormat(): General error message. OUTPUTFORMAT clause 
references driver AGG/PNG, but this driver isn't configured.


That says it all: Your mapserv binary doesn't support PNG. Says so in 
your mapserv -v line too: note the lack of SUPPORTS=AGG


I'd suggest re-running your ./configure and check for the lines where it 
mentions that it's checking for AGG, cuz something's not right there.


Thanks for the reply Gregor. It seems I had to change the configure file 
to get it to add AGG support. This is on Debian Etch.


Andy

--
Andy
PGP Key ID: 0xDC1B5864
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] AGG Rendering

2009-04-03 Thread Andrew Ayre
Thanks to Håvard I now have AGG compiled in. I needed to modify the 
configure file:


AGG_LIB="-L$AGG_LIBDIR -lagg_pic -laggfontfreetype_pic"

Now I have SUPPORTS=AGG. Also the error has gone. But the output isn't 
anti-aliased. Is there something else that I need to add to the map file 
besides the outputformat section to get it to work?


MapServer version 5.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP 
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV 
SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER SUPPORTS=GEOS INPUT=EPPL7 
INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE


I'm using WMS and OpenLayers.

thanks, Andy

Andrew Ayre wrote:
Hi! I can't seem to get AGG to work. Currently my output is not 
antialiased. Can anyone give me some hints? Thanks!


OUTPUTFORMAT
  NAME 'AGG_Q'
  DRIVER AGG/PNG
  IMAGEMODE RGB
  FORMATOPTION "QUANTIZE_FORCE=ON"
  FORMATOPTION "QUANTIZE_DITHER=OFF"
  FORMATOPTION "QUANTIZE_COLORS=256"
END


--
Andy
PGP Key ID: 0xDC1B5864
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] PIXMAP Positioning

2009-04-03 Thread Andrew Ayre
Are PIXMAP symbols for points always centered on the point? I want to 
add thumb tack style markers, like Google Maps, where the entire image 
should be located above the point. Is this possible?


thanks, Andy

--
Andy
PGP Key ID: 0xDC1B5864
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] AGG Rendering

2009-04-03 Thread Andrew Ayre

Gregor at HostGIS wrote:

Andrew Ayre wrote:
Now I have SUPPORTS=AGG. Also the error has gone. But the output isn't 
anti-aliased. Is there something else that I need to add



OUTPUTFORMAT
  NAME 'AGG_Q'
  DRIVER AGG/PNG
  IMAGEMODE RGB
  FORMATOPTION "QUANTIZE_FORCE=ON"
  FORMATOPTION "QUANTIZE_DITHER=OFF"
  FORMATOPTION "QUANTIZE_COLORS=256"
END


Have you tried removing those formatoption lines? Seems to me that 
forcing it to a 256-color palette will mess with AGG's very careful 
subpixel shading alpha-channel stuff.


The paragraph I use is this.

OUTPUTFORMAT
  NAME "png"
  MIMETYPE "image/png"
  DRIVER "AGG/PNG"
  EXTENSION "png"
  IMAGEMODE RGBA
  TRANSPARENT OFF
END


Thanks Gregor, that worked!

Andy

--
Andy
PGP Key ID: 0xDC1B5864
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] PIXMAP Positioning

2009-04-03 Thread Andrew Ayre

Stephen Woodbridge wrote:

Andrew Ayre wrote:
Are PIXMAP symbols for points always centered on the point? I want to 
add thumb tack style markers, like Google Maps, where the entire image 
should be located above the point. Is this possible?


thanks, Andy


Type OFFSET x y
where x and y are in pixels.


Thanks Steve!

Andy

--
Andy
PGP Key ID: 0xDC1B5864
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users