[mapserver-users] AGG: Internal vs. External

2012-06-05 Thread Alberto Najera
Hello

I am using Mapserver as a WMS server and would like to improve the rendered
image quality. Currently we get jagged lines and poor text rendering as  you
can see in this link

http://www.bicimapas.com.mx/SpatiaRetail.html


Source are SHP files. We plan to use AGG to improve this and are using
Mapserver 6.01. I have not installed AGG  but when running /.configure it
shows AGG Support: Internal and with ./mapserv -v shows  SUPPORTS: AGG.

The question is whether there is a difference between internal or external
AGG support?   Is this internal AGG support provided by GD?  Finally, is
there a suggestion on how to improve the image rendering quality?


The map file has this image rendering setting:

MAP
NAME DemoFerre
UNITS dd
SIZE 640 480
IMAGECOLOR 244 244 244
IMAGETYPE png
SHAPEPATH /home/bicimapas/mapdata/
EXTENT -99.070427 17.869010 -96.723984 20.839951
FONTSET /home/bicimapas/mapdata/fontset.txt


Thanks in advance
 

Alberto Najera

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


Re: [mapserver-users] Restricted WMS access

2012-05-30 Thread Alberto Najera
Thanks for the information, I am getting the idea. I would not like to
restrict the cgi-bin as we have some maps that are not restricted.  Would it
be possible to restrict only the folder where the restricted Mapfiles are
located? 

Alberto Najera
 

-Mensaje original-
De: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] En nombre de Rahkonen Jukka
Enviado el: miércoles, 30 de mayo de 2012 03:29 a.m.
Para: 'mapserver-users@lists.osgeo.org'
Asunto: Re: [mapserver-users] Restricted WMS access

Hi,

For simple needs you can configure Apache to use http basic authentication
and make it to require https.
http://httpd.apache.org/docs/2.0/howto/auth.html 

Setting basic authentication is simple but it does not give any real
security without configuring Apache to use https instead of http. But
anyway, Mapserver project does not give you tools for access control.
Consider if https + basic authentication is enough for you. It may be if you
do not need user roles and all it should do is either to give or deny access
to Mapserver. Most simple way to do this is to put the cgi-bin directory
behind passwords somehow like

Location /cgi-bin
Options None
Order allow,deny
Allow from all
  AuthType Basic
   AuthName Please log in
# (Following line optional)
AuthBasicProvider file
AuthUserFile c:/ms4w/apache/passwd/passwords
   Require user user1 user2 user3 /Location

As a result only user1, user2 and user3 can reach cgi-bin if they give
correct password.

-Jukka Rahkonen-



Richard Suematsu
 

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


[mapserver-users] Restricted WMS access

2012-05-28 Thread Alberto Najera
Hello,

Is it possible to have a restricted (user id and password required) WMS
service through Mapserver?  If so, how can this be done?  I have searched
the documentation but had not been able to find if this is possible.

Thank you

Alberto Najera


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


RE: [mapserver-users] RE: WFS set up

2012-05-24 Thread Alberto Najera
Thanks for the response. I removed the template call in the mapfile to force
the WFS call and check what was going on. It seems to be a compilation
problem so I will start a new thread on the subject.

Greetings

Alberto Najera

De: pcr...@pcreso.com [mailto:pcr...@pcreso.com] 
Enviado el: miércoles, 23 de mayo de 2012 11:54 p.m.
Para: Alberto Najera
CC: mapserver-users@lists.osgeo.org
Asunto: Re: [mapserver-users] RE: WFS set up

Not sure about the compilation problem, I have used prebuilt packages for
years now...

Regarding the error message, see http://mapserver.org/mapfile/web.html 

You still need an HTML template file specified, even if you don't use it.
The file does not need to exist, unless you do use it.

--- On Thu, 5/24/12, Alberto Najera anaj...@bicimapas.com.mx wrote:

From: Alberto Najera anaj...@bicimapas.com.mx
Subject: [mapserver-users] RE: WFS set up
To: 'mapserver-users' mapserver-users@lists.osgeo.org
Date: Thursday, May 24, 2012, 1:07 PM
Hi all

I have checked this all over again and the problem seems to be caused by the
mapserv cgi  build. I have configured it using --with-wfs and when done,
the response shows 

WFS Server: -DUSE_WFS_SVR

as expected, confirming this feature to be enabled in the build.

I then run make and when testing the supported features with ./mapserv -v,
it shows no support for WFS.  
Also when running the capabilities test, I got this response:

mapserv(): Web application error. Traditional BROWSE mode requires a
TEMPLATE in the WEB section, but none was provided. msOWSDispatch(): WFS
server error. SERVICE=WFS requested, but WFS support not configured in
MapServer.

Why is this happening?

I am using Mapserver 6.0.1 in a Centos5 environment.   Could this be a bug
in Mapserver or am I missing something here?


Your help is greatly appreciated  

Alberto Najera

-Mensaje original-
De: Alberto Najera [mailto:anaj...@bicimapas.com.mx] 
Enviado el: martes, 22 de mayo de 2012 12:06 p.m.
Para: 'mapserver-users'
Asunto: WFS set up

Hello

I am setting up a map file for WFS access but I do not get a response when
testing for capabilities, just a 404 error.  Following the guidelines in the
Mapserver documentation, the CGI was compiled using -with-wfs and  I am
using this URL to test capabilities:


___
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] Compilation error with WFS

2012-05-24 Thread Alberto Najera
Hello list,

I have compiled mapserver version 6.0.1 in a Centos5 environment and used is
successfully for a couple of months, including the WMS server option. I want
to add WFS server capability, which was not included in the initial
compilation. So I added that feature in the configure call using
--with-wfs and when done, the response shows 

WFS Server: -DUSE_WFS_SVR

confirming this feature to be enabled in the build.

I then run make and all seems to work well but when testing the supported
features with ./mapserv -v, it shows no support for WFS server.  
 
After several attempts, I decided to install the recently released Mapserver
version 6.0.3 and try it, using the same call for configure but an error
shows during Make, as follows:

mapwfs11.c.496:error conflicting types for âmsWFSGetCapabilities11â
mapows.h:421: note: previous declaration of âmsWFSGetCapabilities11â was
here
make: *** [mapwfs11.o] Error 1

What does this error mean and how should this be fixed? Am I missing
something to add WFS capability

Thanks

Alberto Najera


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


[mapserver-users] WFS set up

2012-05-22 Thread Alberto Najera
Hello

I am setting up a map file for WFS access but I do not get a response when
testing for capabilities, just a 404 error.  Following the guidelines in the
Mapserver documentation, the CGI was compiled using -with-wfs and  I am
using this URL to test capabilities:

http://173.236.45.118/cgi-bin/wfs?SERVICE=WFSVERSION=1.0.0REQUEST=GetCapab
ilities

The data file is SHP and this is the map file (named BiciMapasWFS.map):

MAP
NAME BiciMapasWFS
UNITS dd
SIZE 640 480
IMAGECOLOR 244 244 244
IMAGETYPE png
SHAPEPATH /home/bicimapas/mapdata/
EXTENT -99.269569 19.479910 -99.224060 19.524080
FONTSET /home/bicimapas/mapdata/fontset.txt

WEB
TEMPLATE /home/bicimapas/www/bcmpms.html
IMAGEPATH /home/bicimapas/www/images/
IMAGEURL /images/
MAXSCALEDENOM 15000
METADATA
wfs_title BiciMapasMS
wfs_onlineresource
http://173.236.45.118/cgi-bin/mapserv?map=/home/bicimapas/mapdata/BiciMapas
WFS.map
wfs_srs EPSG:4326
wfs_enable_request *
END
END

PROJECTION
init=epsg:4326
END

LAYER
NAME caminos
DATA CaminosMS
STATUS on
TYPE line
METADATA
wfs_title caminos
wfs_srs EPSG:4326
gml_include_items all
gml_featureid ID
wfs_enable_request *
END
PROJECTION
init=epsg:4326
END
   CLASS
NAME Caminos
STYLE
WIDTH 2
COLOR 0 0 0
END
END # class Calles
END # layer roads
END # mapfile


What am I missing?

Thanks

Alberto Najera


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


RE: [mapserver-users] Mapfile verification tool

2012-05-15 Thread Alberto Najera
Well, we spend a few hours debugging a 900 plus lines mapfile. We missed a
few ends, had a few extra of them plus some other errors like typos in the
source file calls. So a tool like this would be extremely useful.

I use UltraEdit version 14.00a and have was not aware of such a template.
How can it be activated?



Alberto Najera
 

De: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] En nombre de Bob Basques
Enviado el: martes, 15 de mayo de 2012 11:14 a.m.
Para: ivan.min...@gmail.com; mapserver-users; Steve D (DNR) Lime
Asunto: RE: [mapserver-users] Mapfile verification tool

All, 

I've approached this topic over the years by having a nice Syntax editor
available for MapFiles.  Both VI and UltraEdit have proven to have good
syntax templates for highlighting of edited  MAPFILEs. 

I know this is exactly what was being asked about.  But upon further
thought, I wonder if a VI script couldn't be put together to do some of this
checking, at least in pairing of quotes and END statements. 

Just a thought. 

bobb 


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


[mapserver-users] Mapfile verification tool

2012-05-14 Thread Alberto Najera
Hello all,

Is there a tool available to check the mapfile syntax?   I am working with a
file that is getting quite large and it is easy to, for example, miss or add
an END.

Thanks  

Alberto Najera

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


RE: [mapserver-users] Open Layers Problem

2012-04-27 Thread Alberto Najera
Brent,
 
Thanks for testing it. The  home/bicimapas/  path is the webserver
directory tree. As a fact this same  test map works well using the Mapserver
templates as you can test with this link
 
http://173.236.45.118/bcmpms_i.html  which is the initialization page. Press
Acceder and you will be taken to the map. The question here is why can the
Mapserver template can access the file while OpenLayers does not.
 
Is there a reference document or tutorial on how to properly set up
OpenLayers to work with Mapserver? 
 
Alberto Najera
 
De: pcr...@pcreso.com [mailto:pcr...@pcreso.com] 
Enviado el: viernes, 27 de abril de 2012 07:26 p.m.
Para: mapserver-users@lists.osgeo.org; Alberto Najera
Asunto: RE: [mapserver-users] Open Layers Problem
 

Hi Alberto, 

I can get the capabilities document,  a list of available layers, using the
WMS facility in Quantum GIS, but when I try to access/load the layers as a
map the request fails:

Response: HTML 
HEADTITLEMapServer Message/TITLE/HEAD
!-- MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ
SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER
SUPPORTS=WMS_CLIENT SUPPORTS=GEOS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE --
BODY BGCOLOR=#FF
msLoadMap(): Unable to access file.
(http://173.236.45.118/home/bicimapas/mapdata/BiciMapasMS.map)
/BODY/HTML
 
I suggest that having your mapfile in your home directory tree rather than
your webserver's directory tree might be the problem.
 
You might also try tools like uDIG or QGIS to access the WMS service  debug
it before you try to get it working with OpenLayers.
 
Cheers,
 
   Brent Wood



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


[mapserver-users] ./mapserv: error loading shared libraries:

2012-03-22 Thread Alberto Najera
I am installing Mapserver in a Centos 5 distribution. All the installation
process seems to be done correctly, but after running  make  in Mapserver
and testing with ./mapserv we are getting this error message:
./mapserv: error loading shared libraries: libjpeg.so.8: cannot open shared
object file: no such file or directory 
 
We have installed jpeg-8d to the default directories /usr/local/lib/ using
the ./configure --disable-static  to make sure all the libraries are shared.

Also, we are using gdal-1.9.0 and it is configured to use the external
jpeg-8d library.
 
I cannot understand why we are getting this error message. Furthermore, I
really do not need to use JPEG as I plan to use PNG images for rendering our
vector data.  I have attempted to configure Mapserver without JPEG by
several means including not calling for it, using   without-jpeg  and
--disable-jpeg  and nevertheless, configure always shows that JPEG support
will be used.
 
Can you provide some help on how to fix this?  I have been dealing with this
issue for over 10 days and cannot find a solution
 
 
Alberto Najera
 
 
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] ./mapserv: error loading shared libraries:

2012-03-22 Thread Alberto Najera
Hi

ls -l /usr/lib/libjpeg*  reports this after running ldconfig:

ls: cannot access /usr/lib/libjpeg*: No such file or directory

but we installed libjpeg in /usr/local/lib  and not in /usr/lib

and ls -l /usr/local/lib/libjpeg*

reports all the jpeg installed files.

Thanks

Alberto Najera

-Mensaje original-
De: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] En nombre de Stephen
Woodbridge
Enviado el: jueves, 22 de marzo de 2012 12:07 p.m.
Para: mapserver-users@lists.osgeo.org
Asunto: Re: [mapserver-users] ./mapserv: error loading shared libraries:

First thing run:

sudo ldconfig

and see if that fixes things.

What does  this report:

ls -l /usr/lib/libjpeg*

-SteveW

On 3/22/2012 1:13 PM, Alberto Najera wrote:
 I am installing Mapserver in a Centos 5 distribution. All the 
 installation process seems to be done correctly, but after 
 runningmakein Mapserver and testing with ./mapserv we are getting 
 this error message:

 ./mapserv: error loading shared libraries: libjpeg.so.8: cannot open 
 shared object file: no such file or directory

 We have installed jpeg-8d to the default directories /usr/local/lib/ 
 using the ./configure --disable-staticto make sure all the libraries 
 are shared.

 Also, we are using gdal-1.9.0 and it is configured to use the external 
 jpeg-8d library.

 I cannot understand why we are getting this error message. 
 Furthermore, I really do not need to use JPEG as I plan to use PNG 
 images for rendering our vector data.I have attempted to configure 
 Mapserver without JPEG by several means including not calling for it, 
 usingwithout-jpegand--disable-jpegand nevertheless, configure always 
 shows that JPEG support will be used.

 Can you provide some help on how to fix this?I have been dealing with 
 this issue for over 10 days and cannot find a solution

 Alberto Najera



 ___
 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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] ./mapserv: error loading shared libraries:

2012-03-22 Thread Alberto Najera
Thank you. That worked very well and mapserver has been compiled.

Alberto Najera
www.bicimapas.com.mx
Plaza Bonita
Avenida Lomas Verdes No. 58, Local 17
Colonia Santa Cruz Acatlán
Naucalpan, Estado de México
México CP 53150
Tel: (55) 53 60 30 65
anaj...@bicimapas.com.mx
 
 

-Mensaje original-
De: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] En nombre de Stephen
Woodbridge
Enviado el: jueves, 22 de marzo de 2012 03:25 p.m.
Para: mapserver-users@lists.osgeo.org
Asunto: Re: [mapserver-users] ./mapserv: error loading shared libraries:

OK, then  you probably need to add /usr/local/lib to you /etc/ld.so.conf and
run ldconfig after doing that.

-SteveW

On 3/22/2012 3:29 PM, Alberto Najera wrote:
 Hi

 ls -l /usr/lib/libjpeg*  reports this after running ldconfig:

 ls: cannot access /usr/lib/libjpeg*: No such file or directory

 but we installed libjpeg in /usr/local/lib  and not in /usr/lib

 and ls -l /usr/local/lib/libjpeg*

 reports all the jpeg installed files.

 Thanks

 Alberto Najera

 -Mensaje original-
 De: mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] En nombre de Stephen 
 Woodbridge Enviado el: jueves, 22 de marzo de 2012 12:07 p.m.
 Para: mapserver-users@lists.osgeo.org
 Asunto: Re: [mapserver-users] ./mapserv: error loading shared libraries:

 First thing run:

 sudo ldconfig

 and see if that fixes things.

 What does  this report:

 ls -l /usr/lib/libjpeg*

 -SteveW

 On 3/22/2012 1:13 PM, Alberto Najera wrote:
 I am installing Mapserver in a Centos 5 distribution. All the 
 installation process seems to be done correctly, but after 
 runningmakein Mapserver and testing with ./mapserv we are getting 
 this error message:

 ./mapserv: error loading shared libraries: libjpeg.so.8: cannot open 
 shared object file: no such file or directory

 We have installed jpeg-8d to the default directories /usr/local/lib/ 
 using the ./configure --disable-staticto make sure all the libraries 
 are shared.

 Also, we are using gdal-1.9.0 and it is configured to use the 
 external jpeg-8d library.

 I cannot understand why we are getting this error message.
 Furthermore, I really do not need to use JPEG as I plan to use PNG 
 images for rendering our vector data.I have attempted to configure 
 Mapserver without JPEG by several means including not calling for it, 
 usingwithout-jpegand--disable-jpegand nevertheless, configure always 
 shows that JPEG support will be used.

 Can you provide some help on how to fix this?I have been dealing with 
 this issue for over 10 days and cannot find a solution

 Alberto Najera



 ___
 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 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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users