[mapserver-users] Σχετ: Parsing error on click.

2013-10-23 Thread Stefanos Anastasiou
Hi Jeff!!

Thanks a lot!  Last example of the link you sent me seems to work!!   :-) 

I just seem to lose the submit button when the map appears?

Shouldn't it still be there?

Thanks

Stefanos



Στις 3:52 π.μ. Τετάρτη, 23 Οκτωβρίου 2013, ο/η Stefanos Anastasiou 
 έγραψε:
 
Hello fellows!!  

I'm quite new to mapserver and I'm still trying simple examples.  I'm having a 
.html template and a .map file.  My template is located in  
/usr/local/apache2/htdocs  folder and my .map file is located in /home/mapdata  
folder.

The template is:



MapServer attempt

 




 




and the .map file is as follows: 
MAP
Name "Attempt"
SIZE 400 300
IMAGECOLOR 249 245 186
IMAGETYPE png
EXTENT -1.00 -1.00  1.00 1.00
WEB 
    TEMPLATE "/usr/local/apache2/htdocs/hello.html"
    IMAGEPATH "/usr/local/apache2/htdocs/tmp"
    IMAGEURL "/tmp/"
END
LAYER
   STATUS default
   TYPE point
   FEATURE
       POINTS 0.0 0.0 END
       TEXT "Hello World"
   END 
   CLASS
         STYLE
            COLOR 255 0 0 
         END
         LABEL
            TYPE bitmap
         END
   END
END
END



When I load my template on the browser and I click on the button I get an error 
that says : loadWeb(): Unknown identifier. Parsing error near 
(/usr/local/apache2/htdocs/tmp):(line 1)

The mapfile seems OK simply because if I load it by itself (meaning: 
http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/hello.map&mode=map)  it 
displays what it's supposed to. 

So the problem seems to be in the cgi about not passing the parameters to 
mapserver.  I googled a lot but haven't found any answer yet applicable yet. 

Any suggestion ?

Thanks in advance!!! 


___
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

Re: [mapserver-users] Can't remove artifacts aroung polygons with Mapserver 6.0.3

2013-10-23 Thread efujioka
Thank you for a swift reply.

Unfortunately, adding OUTLINEWIDTH 1 does not seem to have any effect. The
artifacts still appear.

Here is an excerpt of the SYMBOL and STYLE for the polygons.

SYMBOL
NAME "square"
TYPE VECTOR
FILLED TRUE
POINTS
0 0
1 0
1 1
0 1
END
END

 CLASS
  NAME "level1"
  EXPRESSION ([num_records] <= 10 and [num_records] > 5)
  STYLE
ANGLE 0
COLOR 0 255 0
OFFSET 0 0
OUTLINECOLOR 0 255 0
OUTLINEWIDTH 1
SYMBOL "square"
  END # STYLE
  TITLE "5-10"
END # CLASS


Any thoughts?




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Can-t-remove-artifacts-aroung-polygons-with-Mapserver-6-0-3-tp5085423p5085441.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] mod_fcgid.so not found (but it's there!)

2013-10-23 Thread Paul Ramsey
The google says that this error can be given for reasons other than
non-finding, including "missing dependencies". Is it possible there's a dll
that should be riding along with the so that you forgot to copy? You can
use depends.exe to check the dependency list of the so and see if anything
is missing.


On Wed, Oct 23, 2013 at 6:47 AM, Smith, Michael wrote:

>  I am using MS4W distribution v6.0.3 which includes bundled Apache
> 2.2.22, MapServer 6.0.3, and mod-fcgid 2.3.7.
>
> ** **
>
> I have a new 64-bit Win 2008 server, migrating from Win 2003 32-bit.
>
> ** **
>
> I copied everything over to the new server.  Everything works fine except
> FastCGI.
>
> ** **
>
> If I include mod_fcgid.so as a loaded module in httpd.conf, I get this
> error when starting Apache:  
>
> ** **
>
> *httpd: Syntax error on line 129 of C:/ms4w_306/Apache/conf/httpd.conf:
> Cannot load C:/ms4w_306/Apache/modules/mod_fcgid.so into server: The
> specified module could not be found.*
>
> * *
>
> And yet it is right there in C:/ms4w_306/Apache/modules:
>
> ** **
>
> *C:\ms4w_306\Apache\modules>dir *fcgid.**
>
> *Volume in drive C has no label.*
>
> *Volume Serial Number is 3495-008C*
>
> * *
>
> *Directory of C:\ms4w_306\Apache\modules*
>
> * *
>
> *04/19/2012  09:33 AM57,856 mod_fcgid.so*
>
> *   1 File(s) 57,856 bytes*
>
> *   0 Dir(s)  78,668,070,912 bytes free*
>
> ** **
>
> Same configuration works fine on my 32-bit Win2003 server.  Is this some
> 64-bit or Win2008 thing I somehow need to take care of?  My WMS will all
> work fine if I run them through ‘regular’ CGI, but when I switch on FCGI
> they break and of course I get the above error message when starting up
> Apache.
>
> ** **
>
> ===
> *Michael Smith MS GISP*
> State GIS Manager, Maine Office of GIS
> State of Maine, Office of Information Technology
> *michael.smith _at_ maine.gov* 207-215-5530
>
> Board Member, Maine GeoLibrary
> Education Chair, Maine GIS Users Group
> State Rep, National States Geographic Information Council
>
>
> State House Station 145
> 51 Commerce Drive
> Augusta, ME 04333-0145
> 69o 47' 58.9"W  44o 21' 54.8"N 
>
> ___
> 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

Re: [mapserver-users] Can't remove artifacts aroung polygons with Mapserver 6.0.3

2013-10-23 Thread Stephen Woodbridge
Add an OUTLINEWIDTH 1 to your polygons. That will fix it. This is a know 
upgrade issue because the rendering math changed.


You might also need to add OUTLINECOLOR ... the same as you polygon 
COLOR, but I think it will default to that if it is missing.


-Steve W

On 10/23/2013 2:28 PM, Ei Fujioka wrote:

Hello,

I've upgraded Mapserver from 5.2 to 6.0.3 and struggling in removing
artifacts that appear around polygons. I didn't see this problem with 5.2.

See the screen shots of the same tile with 5.2 and 6.0 followed by
OUTPUTFORMAT definition.

5.2
http://seamap-dev.env.duke.edu/cache/images/mapserver_52_gd_png_rgba.png

   OUTPUTFORMAT
 NAME "PNG"
 MIMETYPE "image/png"
 DRIVER "GD/PNG"
 EXTENSION "png"
 IMAGEMODE "RGBA"
 TRANSPARENT TRUE
   END


6.0
http://seamap-dev.env.duke.edu/cache/images/mapserver_6_agg_png_rgba.png

   OUTPUTFORMAT
 NAME "PNG"
 MIMETYPE "image/png"
 DRIVER "AGG/PNG"
 EXTENSION "png"
 IMAGEMODE RGBA
 TRANSPARENT TRUE
 FORMATOPTION "GAMMA=0.7"
   END # OUTPUTFORMAT


You can see whitish lines around the small squares in 6.0.
I changed GAMMA=xxx (e.g. 1.0, 0.5, 0.0) but it doesn't seem to have any
effects on the image.
When I set IMAGEMODE to PC256, the artifacts disappear but I need it to
be transparent. The document
(http://mapserver.org/mapfile/outputformat.html) mentions that PC256 is
only supported by GD/GIF and GD/PNG but it seems working with AGG/PNG.


Could someone give me advice how to remove the artifacts?
Do I simply need to upgrade to 6.4?
(I didn't as it's not available from RPM)


Here is the output of mapserv -v.

MapServer version 6.0.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ
SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV
SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER
SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS
INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE


Thanks,



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


[mapserver-users] Can't remove artifacts aroung polygons with Mapserver 6.0.3

2013-10-23 Thread Ei Fujioka

Hello,

I've upgraded Mapserver from 5.2 to 6.0.3 and struggling in removing 
artifacts that appear around polygons. I didn't see this problem with 5.2.


See the screen shots of the same tile with 5.2 and 6.0 followed by 
OUTPUTFORMAT definition.


5.2
http://seamap-dev.env.duke.edu/cache/images/mapserver_52_gd_png_rgba.png

  OUTPUTFORMAT
NAME "PNG"
MIMETYPE "image/png"
DRIVER "GD/PNG"
EXTENSION "png"
IMAGEMODE "RGBA"
TRANSPARENT TRUE
  END


6.0
http://seamap-dev.env.duke.edu/cache/images/mapserver_6_agg_png_rgba.png

  OUTPUTFORMAT
NAME "PNG"
MIMETYPE "image/png"
DRIVER "AGG/PNG"
EXTENSION "png"
IMAGEMODE RGBA
TRANSPARENT TRUE
FORMATOPTION "GAMMA=0.7"
  END # OUTPUTFORMAT


You can see whitish lines around the small squares in 6.0.
I changed GAMMA=xxx (e.g. 1.0, 0.5, 0.0) but it doesn't seem to have any 
effects on the image.
When I set IMAGEMODE to PC256, the artifacts disappear but I need it to 
be transparent. The document 
(http://mapserver.org/mapfile/outputformat.html) mentions that PC256 is 
only supported by GD/GIF and GD/PNG but it seems working with AGG/PNG.



Could someone give me advice how to remove the artifacts?
Do I simply need to upgrade to 6.4?
(I didn't as it's not available from RPM)


Here is the output of mapserv -v.

MapServer version 6.0.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ 
SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV 
SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT 
SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER 
SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS 
INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE



Thanks,

--

  Ei Fujioka
  Research Scientist
  Nicholas School
  Duke University

  (919) 613-8021 Ext. 2
  efuji...@duke.edu


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


[mapserver-users] mod_fcgid.so not found (but it's there!)

2013-10-23 Thread Smith, Michael
I am using MS4W distribution v6.0.3 which includes bundled Apache 2.2.22, 
MapServer 6.0.3, and mod-fcgid 2.3.7.

I have a new 64-bit Win 2008 server, migrating from Win 2003 32-bit.

I copied everything over to the new server.  Everything works fine except 
FastCGI.

If I include mod_fcgid.so as a loaded module in httpd.conf, I get this error 
when starting Apache:

httpd: Syntax error on line 129 of C:/ms4w_306/Apache/conf/httpd.conf: Cannot 
load C:/ms4w_306/Apache/modules/mod_fcgid.so into server: The specified module 
could not be found.

And yet it is right there in C:/ms4w_306/Apache/modules:

C:\ms4w_306\Apache\modules>dir *fcgid.*
Volume in drive C has no label.
Volume Serial Number is 3495-008C

Directory of C:\ms4w_306\Apache\modules

04/19/2012  09:33 AM57,856 mod_fcgid.so
   1 File(s) 57,856 bytes
   0 Dir(s)  78,668,070,912 bytes free

Same configuration works fine on my 32-bit Win2003 server.  Is this some 64-bit 
or Win2008 thing I somehow need to take care of?  My WMS will all work fine if 
I run them through 'regular' CGI, but when I switch on FCGI they break and of 
course I get the above error message when starting up Apache.

===
Michael Smith MS GISP
State GIS Manager, Maine Office of GIS
State of Maine, Office of Information Technology
michael.smith _at_ maine.gov 207-215-5530

Board Member, Maine GeoLibrary
Education Chair, Maine GIS Users Group
State Rep, National States Geographic Information Council
[cid:image001.jpg@01CECFD4.A9E24DC0]

State House Station 145
51 Commerce Drive
Augusta, ME 04333-0145
69o 47' 58.9"W  44o 21' 54.8"N
<>___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Legend gets cut off at the bottom

2013-10-23 Thread thomas bonfort
please open a bug report, and include the mapserver version you are
using and a self-contained mapfile that produces that output.

https://github.com/mapserver/mapserver/issues

cheers,
thomas

On 23 October 2013 14:49, Stefan Schwarzer  wrote:
> Hi there,
>
> I am wondering why, as I would have said I haven't touched the script in a
> while. But suddenly, the legend gets cut off at the bottom.
>
> Here is an example:
> https://www.evernote.com/shard/s341/sh/e239dc6e-17da-4b72-aa5d-207461cfeb5d/02da84ac188af5236ecd639498bd20dc
>
> Does anyone have an idea? Thanks for any hints!
>
> Stefan
>
>
> ___
> 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


[mapserver-users] Legend gets cut off at the bottom

2013-10-23 Thread Stefan Schwarzer
Hi there,

I am wondering why, as I would have said I haven't touched the script in a 
while. But suddenly, the legend gets cut off at the bottom. 

Here is an example: 
https://www.evernote.com/shard/s341/sh/e239dc6e-17da-4b72-aa5d-207461cfeb5d/02da84ac188af5236ecd639498bd20dc

Does anyone have an idea? Thanks for any hints!

Stefan

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