Re: [mapserver-users] mapserver job

2012-01-13 Thread gabriel munteanu
Thank you all for suggestions,
indeed, the tools mentioned here are powerful, but it is not exactly
what we need.
the degree of personalization is quite high [ex: we do not need a
button that says draw polygon, we need a button that says "draw a
building" and the right layer/handler/control/style are set].
also, we lack the know-how inside the company and time to study all
this simply can't be provided.
Some of you were kind enough and contacted me, i will email all of
them with more details.

Thanks again,

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


[mapserver-users] Problem compiling with GEOS

2012-01-13 Thread Stefan W.

Hi List,

I'm trying to install Mapserver 6.0.1 with GEOS 3.2.3.

My configuration:
/./configure --with-ogr=/usr/local/bin/gdal-config 
--with-gdal=/usr/local/bin/gdal-config --with-proj=/usr/local 
--with-wmsclient --with-wmsserver 
--with-curl-config=/usr/bin/curl-config --with-php=/usr/include/php5 
--with-freetype --with-wfs --with-fastcgi=/usr 
--with-xml2-config=/usr/bin/xml2-config 
--with-geos=/usr/local/bin/geos-config/


There is no error message during compilation.
./mapserv shows me:
/./mapserv: error while loading shared libraries: libgeos_c.so.1: cannot 
open shared object file: No such file or directory/


But libgeos_c.so.1 is in /usr/local/lib and GEOS 3.2.3 is correctly 
installed.
The Path in the Makefile is also correct: /GEOS_LIB=  -L/usr/local/lib 
-lgeos_c/


Any suggestions?

Best regards,
Stefan

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


Re : [mapserver-users] Problem compiling with GEOS

2012-01-13 Thread David TECHER
as root try

ldconfig -v |grep geos

or I will have a doubt about that


export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH


try ./mapserver 




 De : Stefan W. 
À : mapserver-users@lists.osgeo.org 
Envoyé le : Vendredi 13 Janvier 2012 11h41
Objet : [mapserver-users] Problem compiling with GEOS
 

Hi List,

I'm trying to install Mapserver 6.0.1 with GEOS 3.2.3.

My configuration:
./configure --with-ogr=/usr/local/bin/gdal-config 
--with-gdal=/usr/local/bin/gdal-config --with-proj=/usr/local --with-wmsclient 
--with-wmsserver --with-curl-config=/usr/bin/curl-config 
--with-php=/usr/include/php5 --with-freetype --with-wfs --with-fastcgi=/usr 
--with-xml2-config=/usr/bin/xml2-config --with-geos=/usr/local/bin/geos-config

There is no error message during compilation.
./mapserv shows me:
./mapserv: error while loading shared libraries: libgeos_c.so.1: cannot open 
shared object file: No such file or directory

But libgeos_c.so.1 is in /usr/local/lib and GEOS 3.2.3 is correctly installed.
The Path in the Makefile is also correct: GEOS_LIB=  -L/usr/local/lib -lgeos_c

Any suggestions?

Best regards,
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] Shapefiles not rendered

2012-01-13 Thread Juan Jesús Cremades Monserrat
Hi,

I want execute the getMap method with an URL like this:

http://localhost:9000/cgi-bin/mapserv.exe?LAYERS=COMACOM.SHP&FORMAT=image/png&TRANSPARENT=true&MAP=/ms4w/apps/demo-cv/demoCV.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&SRS=EPSG:4326&BBOX=-180,-90,180,90&WIDTH=551&HEIGHT=356

But the result is always a white page. Where the error may be? My MapServer
is the MS4W. Thanks

My MapFile is this:

MAP
   NAME map_generated_by_gvsig
   EXTENT 626679.4375 4191039.75 797868.9375 4519396.0
   SYMBOLSET "demoCV.sym"
   FONTSET "fonts.txt"
   LEGEND
  IMAGECOLOR -1 -1 -1
  LABEL
 FONT "vera"
 ANGLE FOLLOW
 COLOR 0 0 0
 ENCODING "UTF-8"
 TYPE truetype
 SIZE 8
  END
  STATUS ON
  TRANSPARENT ON
   END

   SIZE 800 800
  OUTPUTFORMAT
NAME PNG24
DRIVER AGG/PNG
IMAGEMODE RGB
   END

   WEB
  METADATA
 "wms_encoding" "UTF-8"
 "wms_title" "Mapserver WMS"
 "wms_abstract" ""
 "wms_srs" " EPSG:4326"
 "wms_onlineresource" "
http://localhost:9000/cgi-bin/mapserv.exe?map=E%3A%5Cms4w%5Capps%5Cdemo-cv%5CdemoCV.map
"
 "ows_enable_request" "*"
 "wms_feature_info_mime_type" "text/html"
  END
   END
   PROJECTION
  "init=epsg:4326"
   END
   LAYER
  NAME "COMACOM.SHP"
  STATUS ON
  DUMP true
  TEMPLATE "templates/provincias.html"
  TYPE POLYGON
  DATA "E:\COMACOM.SHP"
  MAXSCALE -1.0
  MINSCALE -1.0
  TRANSPARENCY 100
  SIZEUNITS pixels
  PROJECTION
 "init=epsg:4326"
  END
  CLASS
 STYLE
COLOR 104 108 2
OUTLINECOLOR 72 75 1
WIDTH 1
 END
 NAME "default"
  END
  METADATA
 "wms_title" "COMACOM.SHP"
 "wms_abstract" "generated by gvSIG"
 "wms_extent" "626679.4375 4191039.75 797868.9375 4519379.0"
 "gml_include_items" "all"
 "ows_enable_request" "*"
  END
   END # Layer
END # Map File
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Changing the gap parameter of a style via a URL

2012-01-13 Thread Lime, Steve D (DNR)
Definitely a bug. Parameters must be configured in the lexer to be mutable via 
URL and GAP isn't set up. If you'd file a ticket I can fix quickly.  -Steve


From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] on behalf of Jean Pierre MALOBERTI 
[jp.malobe...@gmail.com]
Sent: Friday, January 13, 2012 12:40 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Changing the gap parameter of a style via a URL

Hi all,

I'm working on an administration tool for our Flex/PHP/Mapserver application. 
The goal is to render the styles and change parameters dynamically on the clien 
application by using a URL like this :

http://my_server/fcgi-bin/mapserv?map=my_mapfile.map&map.layer[couche_s].class[0].style[0]=ANGLE+30+COLOR+200+100+50+SYMBOL+hachure+SIZE+5&icon=couche_s,0&mode=legendicon

It works for parameters like COLOR, OUTLINECOLOR, SYMBOL, WIDTH, SIZE but with 
parameter GAP it throws an error : loadStyle(): Unknown identifier. Parsing 
error near (GAP):(line 1)

If the style is written in the mapfile, the legend icon renders using this URL 
: 
http://my_server/fcgi-bin/mapserv?map=my_mapfile.map&&icon=couche_s,0&mode=legendicon

  STYLE
ANGLE 30
COLOR 200 100 50
GAP 3
SIZE 5
SYMBOL "hachure"
 END

Where is the problem ?

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


Re: [mapserver-users] Mapserver Layer Filter

2012-01-13 Thread Hawk AA
Hi all,

 

Thank you for splendid support.

 

I solved the problem by coincidence.

 

By using the OGR driver to view the shape-file and using FILTER, the WFS
would not be able to fetch the hidden data.

 

CONNECTIONTYPE OGR

CONNECTION "TM_Nett/TM_Points.shp"

FILTER('[Type]' != "SKAP")

 

Thanks anyway,

Hawk

 

 

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


RE: [mapserver-users] Shapefiles not rendered

2012-01-13 Thread Fawcett, David (MPCA)
Juan,

The projection block at the map level specifies 4326 as the spatial reference 
system, but the units of your extent look like they are in meters, not decimal 
degrees.  This may be involved in the issue, or maybe not, but it would screw 
up a regular MapServer CGI request if you don't specify a bbox.

The use of a '.' Character in a layer name may be valid in MapServer and the 
OGC WMS spec, but it looks funky to me.  Again, probably not the problem.

I would simplify your map file by commenting out the MINSCALE, MAXSCALE, and 
TRANSPARENCY lines.  I am guessing that one of these is causing your problem.

David.

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Juan Jesús 
Cremades Monserrat
Sent: Friday, January 13, 2012 5:50 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Shapefiles not rendered

Hi,

I want execute the getMap method with an URL like this:

http://localhost:9000/cgi-bin/mapserv.exe?LAYERS=COMACOM.SHP&FORMAT=image/png&TRANSPARENT=true&MAP=/ms4w/apps/demo-cv/demoCV.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&SRS=EPSG:4326&BBOX=-180,-90,180,90&WIDTH=551&HEIGHT=356

But the result is always a white page. Where the error may be? My MapServer is 
the MS4W. Thanks

My MapFile is this:

MAP
   NAME map_generated_by_gvsig
   EXTENT 626679.4375 4191039.75 797868.9375 4519396.0
   SYMBOLSET "demoCV.sym"
   FONTSET "fonts.txt"
   LEGEND
  IMAGECOLOR -1 -1 -1
  LABEL
 FONT "vera"
 ANGLE FOLLOW
 COLOR 0 0 0
 ENCODING "UTF-8"
 TYPE truetype
 SIZE 8
  END
  STATUS ON
  TRANSPARENT ON
   END

   SIZE 800 800
  OUTPUTFORMAT
NAME PNG24
DRIVER AGG/PNG
IMAGEMODE RGB
   END

   WEB
  METADATA
 "wms_encoding" "UTF-8"
 "wms_title" "Mapserver WMS"
 "wms_abstract" ""
 "wms_srs" " EPSG:4326"
 "wms_onlineresource" 
"http://localhost:9000/cgi-bin/mapserv.exe?map=E%3A%5Cms4w%5Capps%5Cdemo-cv%5CdemoCV.map";
 "ows_enable_request" "*"
 "wms_feature_info_mime_type" "text/html"
  END
   END
   PROJECTION
  "init=epsg:4326"
   END
   LAYER
  NAME "COMACOM.SHP"
  STATUS ON
  DUMP true
  TEMPLATE "templates/provincias.html"
  TYPE POLYGON
  DATA "E:\COMACOM.SHP"
  MAXSCALE -1.0
  MINSCALE -1.0
  TRANSPARENCY 100
  SIZEUNITS pixels
  PROJECTION
 "init=epsg:4326"
  END
  CLASS
 STYLE
COLOR 104 108 2
OUTLINECOLOR 72 75 1
WIDTH 1
 END
 NAME "default"
  END
  METADATA
 "wms_title" "COMACOM.SHP"
 "wms_abstract" "generated by gvSIG"
 "wms_extent" "626679.4375 4191039.75 797868.9375 4519379.0"
 "gml_include_items" "all"
 "ows_enable_request" "*"
  END
   END # Layer
END # Map File

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


Re: [mapserver-users] SLD filters in MS6

2012-01-13 Thread Havard Tveite

This might be related to ticket #4112.

http://trac.osgeo.org/mapserver/ticket/4112

Håvard


On 13/01/12 11:51, knut.landm...@ffi.no wrote:

Hi all,

I want to do attribute dependent rendering using SLD with filters inside
the  element, but cannot get it to work properly with MapServer
6.0.1 when the CONNECTIONTYPE is POSTGIS. However, all other things
being equal, it works well with MapServer 5.2.1. It also works well with
other data formats like GML or shape, in both versions of MapServer. Are
there any changes in MapServer that I should be aware of that might
affect how filters work?

As an example, the attached figure1 shows the correct map generated by
MS 5.2.1, while figure2 shows the MS 6.0.1 generated map in which all
polygons get the same color. MS 6.0.1 uses the same PostGIS database and
SLD file and an equivalent map file. In case it can provide any clues,
my MS 5.2.1 generates SQL like this (from the log file):

[Wed Jan 11 23:20:47 2012].319000 query_string_0_6:DECLARE mycursor
BINARY CURSOR FOR SELECT
"drval1"::text,"drval2"::text,asbinary(force_collection(force_2d(wkb_geometry)),'NDR'),ogc_fid::text
from ukcbut00.depare WHERE wkb_geometry &&
setSRID('BOX3D(-1.57769913517149 50.6363909616681,-0.843360864828487
50.8899255935367)'::BOX3D, find_srid('','ukcbut00.depare','wkb_geometry') )

The select command fetches the two attributes drval1 and drval2, on
which the filters act, as well as the geometry. However, MS 6.0.1
constructs SQL like this:

[Wed Jan 11 22:22:06 2012].26000 msPostGISLayerWhichShapes query: select
encode(ST_AsBinary(ST_Force_2D("wkb_geometry"),'NDR'),'hex') as
geom,"ogc_fid" from ukcbut00.depare where wkb_geometry &&
GeomFromText('POLYGON((-1.57514202386 50.6588672768767,-1.57514202386
50.9035127337513,-0.841117976140038 50.9035127337513,-0.841117976140038
50.6588672768767,-1.57514202386
50.6588672768767))',find_srid('','ukcbut00.depare','wkb_geometry')) and
(( ("drval1"<= 0) OR ("drval1"<= 10) OR ("drval1"<= 20) OR ("drval1">=
20) ))

(The clause ("drval1"<= 0) OR ("drval1"<= 10) OR ("drval1"<= 20) OR
("drval1">= 20) seems a bit odd and is true for all polygons.)

Below I have included the SLD code in its entirety.

Thanks,

Knut



http://www.opengis.net/sld";

xmlns="http://www.opengis.net/sld";

xmlns:ogc="http://www.opengis.net/ogc";

xmlns:xlink="http://www.w3.org/1999/xlink";

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>



depare



AML Depth Area









drval1

0









#B4EBFF















drval1

0





drval2

10











#66EBFF

0.1















drval1

10





drval2

20











#0097FF













drval1

20









#FF















=


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


[mapserver-users] display legend with WMS->Mapserver service

2012-01-13 Thread Bistrais, Bob
I have a couple map services that I can't get the legends to display on.
The services are WMS, but served up as MapServer services ( I am not
using the WMS directly, for operational reasons, kind of complicated).
Although the legends for these will display if I consume the WMS
directly, the legends don't show when consuming the WMS through
MapServer.  Is it possible to get the legend to display?  I'm guessing
that I need to put something more in the .map file?

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