[mapserver-users] symbolunits meters doesn't work

2011-10-17 Thread knasia
Hi, 
I am trying to put symbols on the map giving their size in meters, but I
didn't manage. Here is my code. 

LAYER
NAME queue
PROJECTION init=epsg:4326
END

CONNECTIONTYPE postgis
CONNECTION 'user=  password=  dbname=  host=  port='
TRANSPARENCY 95
STATUS ON
DATA 'coor FROM nodes using unique id using srid=4326'
TYPE POINT 
SIZEUNITS meters  

#I have also tried:
#UNITS meters
#SYMBOLSCALE 35000  

CLASS
STYLE
COLOR 102 102 102
SYMBOL cross
SIZE 10  
#WIDTH 2
END
END 
END  

Could somebody please help?

KN

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/symbolunits-meters-doesn-t-work-tp6899443p6899443.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] symbolunits meters doesn't work

2011-10-17 Thread thomas bonfort
make sure your map UNIT is correctly set (meters or dd depending on
the projection).

On Mon, Oct 17, 2011 at 08:56, knasia kna...@poczta.fm wrote:
 Hi,
 I am trying to put symbols on the map giving their size in meters, but I
 didn't manage. Here is my code.

 LAYER
        NAME queue
                PROJECTION init=epsg:4326
                END

                CONNECTIONTYPE postgis
                CONNECTION 'user=  password=  dbname=  host=  port='
                TRANSPARENCY 95
                STATUS ON
                DATA 'coor FROM nodes using unique id using srid=4326'
                TYPE POINT
                SIZEUNITS meters

                #I have also tried:
                #UNITS meters
                #SYMBOLSCALE 35000

                CLASS
                        STYLE
                        COLOR 102 102 102
                        SYMBOL cross
                        SIZE 10
                        #WIDTH 2
                        END
                END
        END

 Could somebody please help?

 KN

 --
 View this message in context: 
 http://osgeo-org.1803224.n2.nabble.com/symbolunits-meters-doesn-t-work-tp6899443p6899443.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

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


[mapserver-users] Re: Re: WMS-TIME with mysql-database

2011-10-17 Thread Katharina Sambs

Good morning,

thank you, for your answer!
I set up a wms-time service with a PostGIS database, too.
It works fine, as well as the shapefile service.
Only with the mySQL database I get a *white* result.
Does anyone know if there is a general problem with wms-time and spatial mySQL 
data?

Unfortunately, the wider extent doesn´t help.

My request:
http:...SERVICE=WMSVERSION=1.3.0REQUEST=GetMapBBOX=46.556819,5.188080,55.865300,15.00CRS=EPSG:4326WIDTH=1017HEIGHT=963
LAYERS=layerSTYLES=FORMAT=image/pngDPI=96TRANSPARENT=TRUE

My mapfile:
MAP
   NAME name
   STATUS ON
   EXTENT -180 -90 180 90
   UNITS METERS
   INCLUDE debug.map
   SYMBOLSET symbols.sym
   FONTSET fonts.list
   INCLUDE encryption.map  
   INCLUDE projection_4326.map 
   WEB
   INCLUDE image_parameter.map 
   METADATA

   OWS_ENABLE_REQUEST   *
   WMS_ONLINERESOURCE...
   WMS_TITLE...
   WMS_FEATURE_INFO_MIME_TYPEtext/html
   WMS_ABSTRACT...
   INCLUDE standard_extent_europa.map  
   INCLUDE standard_proj.map
   #INCLUDE standard_metadata.map 
   END

   END
   INCLUDE outputformat_agg.map
   INCLUDE legend.map
   LAYER
   NAME layer
   TYPE POINT
   STATUS ON
   INCLUDE debug_layer.map #2 Zeilen
   DUMP TRUE
   TOLERANCE 3
   PROCESSING CLOSE_CONNECTION=DEFER
   CONNECTIONTYPE OGR
   CONNECTION 
MYSQL:test,host=host,user=user,password=passwort,port=port,tables=tabelle
	DATA SELECT column1, column2 FROM tabelle 
   CLASS

 STYLE
   OUTLINECOLOR 100 100 100
 END
   END 
   METADATA

   WMS_TITLEtitle
   WMS_TIMEEXTENT	2011-10-13T00:00:00Z/2011-10-14T00:00:00Z   
   WMS_TIMEITEM	column1 
 	WMS_TIMEDEFAULT 2011-10-13T00:00:00Z
   
   WMS_ABSTRACT...

   INCLUDE standard_extent.map
   LAYER_TITLE ... 
   LAYER_DESC_STATUS on 
   LAYER_DESC ... 
   gml_include_items all

   END
   END #LAYER
END #MAP

Hi,

my humble suggestion is inline.
I have done WMS Time successfully for PostGIS.

Den 14.10.2011 13:55, skrev Katharina Sambs:


 Hi list,

 I would like to visualize spatial *mySQL* data through a wms-time 
 service.

 *It is possible to visualize the data without the time parameters.*
 But as soon as I add the following parameters to the mapfile, my 
 result contains only a white picture:

 LAYER
 
METADATA

WMS_TIMEEXTENT   2010-01-10T00:00:00Z
WMS_TIMEITEM   column_name
WMS_TIMEDEFAULT   2010-01-10T00:00:00Z

 There is no error message.
 *The same request works fine, while I use a shapefile as data source.*

 My second question:
 Shouldn't be there a 'where'-clause in the database selection, which 
 contain the time parameter?
  

I don't think so,


 Or works the wms-time like a Filter, which always ask all data from 
 the database.

 Only in the second step, the data is filtered for the desired time?

  
This filter should be added by Mapserver automagically when you have 
WMS_TIME* in METADATA field.



 Did anyone has an idea?

  

You extent should maybe be more wide.
From http://mapserver.org/ogc/wms_time.html
/value/ - a single value. This is not directly supported in MapServer 
but there is an easy workwound by specifying the same value as min and max.


I have always used extents similar to the example in the docs:

wms_timeextent  2004-01-01/2004-02-01


If this is not helping, you should attach (important parts of) mapfile 
and URL request.


kind regards
Jørn Vegard Røsnes




 The type of the time data in the mySQL database is DATETIME.

 mysql.log
 111014 13:27:45 4 Connect  user@server on database
  4 Query DESCRIBE `table`
  4 Query SELECT type, coord_dimension FROM geometry_columns WHERE 
 f_table_name='table'
  4 Query SELECT srid FROM geometry_columns WHERE f_table_name = 
 'table'

  4 Query SELECT column1, column2 FROM table
  4 Query SELECT type FROM geometry_columns WHERE f_table_name='table'
  4 Query SELECT srid FROM geometry_columns WHERE f_table_name = 
 'table'

  4 Query SELECT column1, column2 FROM table
  4 Quit

 mapserv.log:
 [Fri Oct  7 16:05:42 2011].982953 CGI Request 1 on process 18953
 [Fri Oct  7 16:05:42 2011].983461 msWMSLoadGetMapParams(): enabling 
 non-square pixels.
 [Fri Oct  7 16:05:42 2011].990638 msDrawMap(): kicking into non-square 
 pixel preserving mode.
 [Fri Oct  7 16:05:42 2011].991160 
 msOGRFileOpen(MYSQL:tabelle,host=host,user=user,password=passwort,port=port)...
 [Fri Oct  7 16:05:42 2011].991205 
 OGROPen(MYSQL:tabelle,host=host,user=readonly,password=readonly,port=port)
 [Fri Oct  7 16:05:43 2011].20413 
 msConnPoolRegister(layer,MYSQL:tabelle,host=host,user=readonly,password=passwort,port=port,0x5417290)
 [Fri Oct  7 16:05:43 2011].67656 
 

Re: [mapserver-users] Problem compiling MapServer - error: cannot find gif lib

2011-10-17 Thread thomas bonfort
--with-gif=$HOME if you have installed it there. As a rule of thumb,
it is not a good idea to only compile the packages and not install
them (i.e. no make install) as there is no reason that the packages
respect the include/ lib/ hierarchy inside their source structure.
(i.e. you should be using  --with-gdal=/home/david/bin/gdal-config,
--with-proj=/home/david, etc... )

--
thomas


On Mon, Oct 17, 2011 at 06:48, David Quinn daithiqu...@gmail.com wrote:
 Hello List,

 I'm trying to install Mapserver on CentOS5 (specifically on a Webfaction
 shared hosting server). I'm using the following options:

 ./configure --prefix=$HOME \
 --enable-debug  \
 --with-gd \
 --with-freetype --without-tiff \
 --with-gdal=/home/david/src/gdal-1.8.1/apps/gdal-config \
 --with-ogr=/home/david/src/gdal-1.8.1/apps/gdal-config \
 --with-proj=/home/david/src/proj-4.7.0/ \
 --without-pdf \
 --with-png=/usr/ --with-threads \
 --with-postgis=/home/david/src/postgresql-8.4.6/src/bin/pg_config \
 --with-wfs --with-wcs --with-wmsclient --with-wfsclient \
 --with-php=/usr/include/php5/ --enable-debug \
 --with-geos=/home/david/bin/geos-config \
 --with-python \
 --with-gif=/home/david/src/giflib-4.1.6/lib/gif_lib.h

 However I get the following error:

 checking setjmp.h usability... yes
 checking setjmp.h presence... yes
 checking for setjmp.h... yes
 configure: checking where GIF is installed...
 configure: error: cannot find gif lib in
 /home/urbmet/src/giflib-4.1.6/lib/gif_lib.h

 After I got this error the first time, I installed giflib-4.1.6. The results
 of running $ find | grep gif_lib.h
 ./include/gif_lib.h
 ./src/giflib-4.1.6/lib/gif_lib.h
 ./src/giflib-4.1.6/doc/gif_lib.html
 ./src/gdal-1.8.1/frmts/gif/giflib/gif_lib.h

 I have tried --with-gif with all of the following arguments, either to the
 folder or to gif_lib.h without success. Am I missing any settings or
 dependencies?

 Thanks,
 David



 ___
 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] Re: Re: WMS-TIME with mysql-database

2011-10-17 Thread Stephan Holl
Hello Katharina,

Katharina Sambs ksa...@bfs.de, [20111017 - 11:03:58]

 Good morning,
 
 thank you, for your answer!
 I set up a wms-time service with a PostGIS database, too.
 It works fine, as well as the shapefile service.
 Only with the mySQL database I get a *white* result.
 Does anyone know if there is a general problem with wms-time and
 spatial mySQL data?

I would guess it has something in common with the (somewhat limited)
MySQL-support of OGR. I had problems with the MySQL-driver of OGR too
so I decided skipping it. I would digg into that area for further
investigation, enabling OGRs DEBUG-output etc...).

Best

Stephan Holl

 
 Unfortunately, the wider extent doesn´t help.
 
 My request:
 http:...SERVICE=WMSVERSION=1.3.0REQUEST=GetMapBBOX=46.556819,5.188080,55.865300,15.00CRS=EPSG:4326WIDTH=1017HEIGHT=963
 LAYERS=layerSTYLES=FORMAT=image/pngDPI=96TRANSPARENT=TRUE
 
 My mapfile:
 MAP
 NAME name
 STATUS ON
 EXTENT -180 -90 180 90
 UNITS METERS
 INCLUDE debug.map
 SYMBOLSET symbols.sym
 FONTSET fonts.list
 INCLUDE encryption.map  
 INCLUDE projection_4326.map 
 WEB
 INCLUDE image_parameter.map 
 METADATA
 OWS_ENABLE_REQUEST   *
 WMS_ONLINERESOURCE...
 WMS_TITLE...
 WMS_FEATURE_INFO_MIME_TYPEtext/html
 WMS_ABSTRACT...
 INCLUDE standard_extent_europa.map  
 INCLUDE standard_proj.map
 #INCLUDE standard_metadata.map 
 END
 END
 INCLUDE outputformat_agg.map
 INCLUDE legend.map
 LAYER
 NAME layer
 TYPE POINT
 STATUS ON
 INCLUDE debug_layer.map #2 Zeilen
 DUMP TRUE
 TOLERANCE 3
 PROCESSING CLOSE_CONNECTION=DEFER
 CONNECTIONTYPE OGR
 CONNECTION
 MYSQL:test,host=host,user=user,password=passwort,port=port,tables=tabelle
 DATA SELECT column1, column2 FROM tabelle CLASS
   STYLE
 OUTLINECOLOR 100 100 100
   END
 END 
 METADATA
 WMS_TITLEtitle
 WMS_TIMEEXTENT2011-10-13T00:00:00Z/2011-10-14T00:00:00Z 
   
 WMS_TIMEITEM  column1   
   
   WMS_TIMEDEFAULT
 2011-10-13T00:00:00Z 
 WMS_ABSTRACT...
 INCLUDE standard_extent.map
 LAYER_TITLE ... 
 LAYER_DESC_STATUS on 
 LAYER_DESC ... 
 gml_include_items all
 END
 END #LAYER
 END #MAP
 
 Hi,
 
 my humble suggestion is inline.
 I have done WMS Time successfully for PostGIS.
 
 Den 14.10.2011 13:55, skrev Katharina Sambs:
 
   Hi list,
  
   I would like to visualize spatial *mySQL* data through a wms-time 
   service.
   *It is possible to visualize the data without the time
   parameters.* But as soon as I add the following parameters to the
   mapfile, my result contains only a white picture:
   LAYER
   
  METADATA
  
  WMS_TIMEEXTENT   2010-01-10T00:00:00Z
  WMS_TIMEITEM   column_name
  WMS_TIMEDEFAULT   2010-01-10T00:00:00Z
  
   There is no error message.
   *The same request works fine, while I use a shapefile as data
   source.*
  
   My second question:
   Shouldn't be there a 'where'-clause in the database selection,
   which contain the time parameter?

 I don't think so,
 
 
   Or works the wms-time like a Filter, which always ask all data
   from the database.
   Only in the second step, the data is filtered for the desired
   time?
  

 This filter should be added by Mapserver automagically when you have 
 WMS_TIME* in METADATA field.
 
   Did anyone has an idea?
  

 You extent should maybe be more wide.
  From http://mapserver.org/ogc/wms_time.html
 /value/ - a single value. This is not directly supported in MapServer 
 but there is an easy workwound by specifying the same value as min
 and max.
 
 I have always used extents similar to the example in the docs:
 
 wms_timeextent  2004-01-01/2004-02-01
 
 
 If this is not helping, you should attach (important parts of)
 mapfile and URL request.
 
 kind regards
 Jørn Vegard Røsnes
 
 
 
   The type of the time data in the mySQL database is DATETIME.
  
   mysql.log
   111014 13:27:45 4 Connect  user@server on database
4 Query DESCRIBE `table`
4 Query SELECT type, coord_dimension FROM geometry_columns
   WHERE f_table_name='table'
4 Query SELECT srid FROM geometry_columns WHERE f_table_name
   = 'table'
4 Query SELECT column1, column2 FROM table
4 Query SELECT type FROM geometry_columns WHERE
   f_table_name='table' 4 Query SELECT srid FROM geometry_columns
   WHERE f_table_name = 'table'
4 Query SELECT column1, column2 FROM table
4 Quit
  
   mapserv.log:
   [Fri Oct  7 16:05:42 2011].982953 CGI Request 1 on process 18953
   [Fri Oct  7 16:05:42 2011].983461 msWMSLoadGetMapParams

Re: [mapserver-users] Problem compiling MapServer - error: cannot find gif lib

2011-10-17 Thread David Quinn
Hi Thomas,

Thanks - that helped me fix the problem. I used the following options:

./configure --prefix=$HOME \
--enable-debug  \
--with-gd \
--with-freetype --without-tiff \
--with-gdal=/home/david/bin/gdal-config \
--with-ogr=/home/david/bin/gdal-config \
--with-proj=/home/david/src/proj-4.7.0/ \
--without-pdf \
--with-png=/usr/ --with-threads \
--with-postgis=/home/david/bin/pg_config \
--with-wfs --with-wcs --with-wmsclient --with-wfsclient \
--with-php=$HOME --enable-debug \
--with-geos=/home/david/bin/geos-config \
--with-python \
--with-gif=$HOME

and received the following summary:

MapServer is now configured for

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

 -- Renderer Settings -
  OpenGL support:
  zlib support:  -DUSE_ZLIB
  png support:   -DUSE_PNG
  gif support:   -DUSE_GIF
  jpeg support:  -DUSE_JPEG
  freetype support:  -DUSE_FREETYPE
  iconv support: -DUSE_ICONV
  AGG support:   internal
  SVG Symbol support:-DUSE_AGG_SVG_SYMBOLS
  Cairo (SVG,PDF) support:
  KML support:

 -- Support Libraries -
  Proj.4 support:-DUSE_PROJ
  Libxml2 support:   -DUSE_LIBXML2
  FriBidi support:
  Curl support:  -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH
  FastCGI support:
  Threading support: -DUSE_THREAD
  GEOS support:  -DUSE_GEOS
  XML Mapfile support:
  XSLT support:
  EXSLT support:

 -- Data Format Drivers ---
  PostGIS support:   -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION
  ArcSDE support:
  OGR support:   -DUSE_OGR
  GDAL support:  -DUSE_GDAL
  Oracle Spatial support:

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

 -- MapScript -
  PHP MapScript: yes

However I ran into problems when I ran 'make'.

gcc -c -g  -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT
-DNEED_STRRSTR   -DUSE_WMS_LYR -DUSE_WFS_LYR  -DUSE_LIBXML2
-DUSE_CURL -DUSE_CURLOPT_PROXYAUTH  -DUSE_WCS_SVR -DUSE_WFS_SVR
-DUSE_WMS_SVR   -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION -DUSE_GDAL
-DUSE_OGR -DUSE_GEOS  -DUSE_THREAD -DUSE_PROJ -DUSE_AGG_SVG_SYMBOLS
-DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
-DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS
-DGD_HAS_GET_TRUE_COLOR_PIXEL -DUSE_ICONV -DUSE_GIF -DUSE_PNG -DUSE_ZLIB
-DUSE_FREETYPE   -DDISABLE_CVSID -I/usr/include/freetype2  -I/usr//include
-I/home/david/include  -I/usr/include -Irenderers/agg/include
-I/home/david/src/proj-4.7.0//src   -I/home/david/include
-I/home/david/include-I/home/david/include-I/usr/include/libxml2
shp2img.c -o shp2img.o
g++ -g  -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT
-DNEED_STRRSTR   -DUSE_WMS_LYR -DUSE_WFS_LYR  -DUSE_LIBXML2
-DUSE_CURL -DUSE_CURLOPT_PROXYAUTH  -DUSE_WCS_SVR -DUSE_WFS_SVR
-DUSE_WMS_SVR   -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION -DUSE_GDAL
-DUSE_OGR -DUSE_GEOS  -DUSE_THREAD -DUSE_PROJ -DUSE_AGG_SVG_SYMBOLS
-DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
-DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS
-DGD_HAS_GET_TRUE_COLOR_PIXEL -DUSE_ICONV -DUSE_GIF -DUSE_PNG -DUSE_ZLIB
-DUSE_FREETYPE   -DDISABLE_CVSID -I/usr/include/freetype2  -I/usr//include
-I/home/david/include  -I/usr/include -Irenderers/agg/include
-I/home/david/src/proj-4.7.0//src   -I/home/david/include
-I/home/david/include-I/home/david/include-I/usr/include/libxml2
shp2img.o  -L. -lmapserver -lfreetype -lgd -L/usr/lib -lgd -ljpeg -lfreetype
-L/usr//lib -lpng -lz -lXpm -lX11  -lexpat
-L/home/david/src/proj-4.7.0//src/.libs -lproj -ljpeg -L/usr//lib -lpng
-L/home/david/lib -lgif  -L/home/david/lib -lgdal -L/home/david/lib -lpq
-L/usr/kerberos/lib -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err
-lidn -lssl -lcrypto -lz-L/home/david/lib -lgeos_c -lpthread -lc-lz
-L/usr/lib -lxml2 -lz -lm  -lm -lstdc++-o shp2img
./libmapserver.a(mapogroutput.o): In function `msOGRWriteShape':
/home/david/src/mapserver-6.0.1/mapogroutput.c:380: undefined reference to
`OGR_G_ForceToPolygon'
/home/david/src/mapserver-6.0.1/mapogroutput.c:385: undefined reference to
`OGR_G_ForceToMultiPolygon'
/home/david/src/mapserver-6.0.1/mapogroutput.c:390: undefined reference to
`OGR_G_ForceToMultiPoint'
/home/david/src/mapserver-6.0.1/mapogroutput.c:395: undefined reference to
`OGR_G_ForceToMultiLineString'
./libmapserver.a(mapogroutput.o): In function `msOGRWriteFromQuery':
/home/david/src/mapserver-6.0.1/mapogroutput.c:979: undefined 

Re: [mapserver-users] Problem compiling MapServer - error: cannot find gif lib

2011-10-17 Thread thomas bonfort
maybe you didn't compile gdal with --with-ogr ?

--
thomas

On Mon, Oct 17, 2011 at 12:44, David Quinn daithiqu...@gmail.com wrote:
 Hi Thomas,

 Thanks - that helped me fix the problem. I used the following options:

 ./configure --prefix=$HOME \
 --enable-debug  \
 --with-gd \
 --with-freetype --without-tiff \
 --with-gdal=/home/david/bin/gdal-config \
 --with-ogr=/home/david/bin/gdal-config \
 --with-proj=/home/david/src/proj-4.7.0/ \
 --without-pdf \
 --with-png=/usr/ --with-threads \
 --with-postgis=/home/david/bin/pg_config \
 --with-wfs --with-wcs --with-wmsclient --with-wfsclient \
 --with-php=$HOME --enable-debug \
 --with-geos=/home/david/bin/geos-config \
 --with-python \
 --with-gif=$HOME

 and received the following summary:

 MapServer is now configured for

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

  -- Renderer Settings -
   OpenGL support:
   zlib support:  -DUSE_ZLIB
   png support:   -DUSE_PNG
   gif support:   -DUSE_GIF
   jpeg support:  -DUSE_JPEG
   freetype support:  -DUSE_FREETYPE
   iconv support: -DUSE_ICONV
   AGG support:   internal
   SVG Symbol support:    -DUSE_AGG_SVG_SYMBOLS
   Cairo (SVG,PDF) support:
   KML support:

  -- Support Libraries -
   Proj.4 support:    -DUSE_PROJ
   Libxml2 support:   -DUSE_LIBXML2
   FriBidi support:
   Curl support:  -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH
   FastCGI support:
   Threading support: -DUSE_THREAD
   GEOS support:  -DUSE_GEOS
   XML Mapfile support:
   XSLT support:
   EXSLT support:

  -- Data Format Drivers ---
   PostGIS support:   -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION
   ArcSDE support:
   OGR support:   -DUSE_OGR
   GDAL support:  -DUSE_GDAL
   Oracle Spatial support:

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

  -- MapScript -
   PHP MapScript: yes

 However I ran into problems when I ran 'make'.

 gcc -c -g  -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT
 -DNEED_STRRSTR   -DUSE_WMS_LYR -DUSE_WFS_LYR  -DUSE_LIBXML2
 -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH  -DUSE_WCS_SVR -DUSE_WFS_SVR
 -DUSE_WMS_SVR   -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION -DUSE_GDAL
 -DUSE_OGR -DUSE_GEOS  -DUSE_THREAD -DUSE_PROJ -DUSE_AGG_SVG_SYMBOLS
 -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
 -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS
 -DGD_HAS_GET_TRUE_COLOR_PIXEL -DUSE_ICONV -DUSE_GIF -DUSE_PNG -DUSE_ZLIB
 -DUSE_FREETYPE   -DDISABLE_CVSID -I/usr/include/freetype2  -I/usr//include
 -I/home/david/include  -I/usr/include -Irenderers/agg/include
 -I/home/david/src/proj-4.7.0//src   -I/home/david/include
 -I/home/david/include    -I/home/david/include    -I/usr/include/libxml2
 shp2img.c -o shp2img.o
 g++ -g  -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT
 -DNEED_STRRSTR   -DUSE_WMS_LYR -DUSE_WFS_LYR  -DUSE_LIBXML2
 -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH  -DUSE_WCS_SVR -DUSE_WFS_SVR
 -DUSE_WMS_SVR   -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION -DUSE_GDAL
 -DUSE_OGR -DUSE_GEOS  -DUSE_THREAD -DUSE_PROJ -DUSE_AGG_SVG_SYMBOLS
 -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
 -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS
 -DGD_HAS_GET_TRUE_COLOR_PIXEL -DUSE_ICONV -DUSE_GIF -DUSE_PNG -DUSE_ZLIB
 -DUSE_FREETYPE   -DDISABLE_CVSID -I/usr/include/freetype2  -I/usr//include
 -I/home/david/include  -I/usr/include -Irenderers/agg/include
 -I/home/david/src/proj-4.7.0//src   -I/home/david/include
 -I/home/david/include    -I/home/david/include    -I/usr/include/libxml2
 shp2img.o  -L. -lmapserver -lfreetype -lgd -L/usr/lib -lgd -ljpeg -lfreetype
 -L/usr//lib -lpng -lz -lXpm -lX11  -lexpat
 -L/home/david/src/proj-4.7.0//src/.libs -lproj -ljpeg -L/usr//lib -lpng
 -L/home/david/lib -lgif  -L/home/david/lib -lgdal -L/home/david/lib -lpq
 -L/usr/kerberos/lib -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err
 -lidn -lssl -lcrypto -lz    -L/home/david/lib -lgeos_c -lpthread -lc    -lz
 -L/usr/lib -lxml2 -lz -lm  -lm -lstdc++    -o shp2img
 ./libmapserver.a(mapogroutput.o): In function `msOGRWriteShape':
 /home/david/src/mapserver-6.0.1/mapogroutput.c:380: undefined reference to
 `OGR_G_ForceToPolygon'
 /home/david/src/mapserver-6.0.1/mapogroutput.c:385: undefined reference to
 `OGR_G_ForceToMultiPolygon'
 /home/david/src/mapserver-6.0.1/mapogroutput.c:390: undefined reference to
 `OGR_G_ForceToMultiPoint'
 

Re: [mapserver-users] problem with MapServer as WMS client

2011-10-17 Thread Daniel Morissette

On 11-10-16 06:28 PM, Mr. Puneet Kishor wrote:


On Oct 16, 2011, at 3:00 PM, Rahkonen Jukka wrote:


Including name of the remote mapfile into CONNECTION string is OK.
Perhaps addind DEBUG 5 into your WMS layer definition writes the request into 
log file but I do not know. Try and see if it helps.



I did bump the DEBUG level to 5, but that doesn't show the WMS calls.



Is it possible that you set DEBUG 5 only at the map level in your test? 
Setting DEBUG 5 inside the layer definition should log the HTTP requests.


--
Daniel Morissette
http://www.mapgears.com/
Provider of Professional MapServer Support since 2000

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


[mapserver-users] KEYIMAGE and icon size

2011-10-17 Thread Yves Jacolin
Hello,

Is it possible to define icone size (width and height) for each class instead 
of use the one in LEGEND object when using KEYIMAGE parameter?

Thanks,

Y.
-- 
Responsable Formation et Support
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel (France) : +33 4 79 26 57 98
Tel (Suisse) : +41 21 619 1031
Mob. : +33 6 18 75 42 21
Fax : 04 79 70 15 81
Mail : yves.jaco...@camptocamp.com
http://www.camptocamp.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Re: symbolunits meters doesn't work

2011-10-17 Thread knasia
This is my declaration:

 PROJECTION
  init=epsg:4326
 END
UNITS METERS

No matter what I use my symbol is of a size which has nothing to do with
real legth in meters. When I change zoom level size of a symbol is the same.
I want to have symbols 7 meters long, but they are all the time the same.
Maybe I shouldn't use symbol made of POINTS but something else.

For example now I use arrows such as:
SYMBOL
NAME backArrow
TYPE vector
POINTS
0 1
1 0
-99 -99
0 1
1 2
-99 -99
0 1
4 1
END
STYLE
1 40 1 40
END
END

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/symbolunits-meters-doesn-t-work-tp6899443p6900513.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] Re: symbolunits meters doesn't work

2011-10-17 Thread thomas bonfort
epsg:4326 is units dd

On Mon, Oct 17, 2011 at 15:19, knasia kna...@poczta.fm wrote:
 This is my declaration:

  PROJECTION
  init=epsg:4326
  END
 UNITS METERS

 No matter what I use my symbol is of a size which has nothing to do with
 real legth in meters. When I change zoom level size of a symbol is the same.
 I want to have symbols 7 meters long, but they are all the time the same.
 Maybe I shouldn't use symbol made of POINTS but something else.

 For example now I use arrows such as:
 SYMBOL
    NAME backArrow
    TYPE vector
    POINTS
        0 1
        1 0
        -99 -99
        0 1
        1 2
        -99 -99
        0 1
        4 1
    END
        STYLE
        1 40 1 40
        END
 END

 --
 View this message in context: 
 http://osgeo-org.1803224.n2.nabble.com/symbolunits-meters-doesn-t-work-tp6899443p6900513.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

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


[mapserver-users] problem with Regular Expression

2011-10-17 Thread Marc-André Trottier
hi!
i'm using Mapserver 6.0 and got this error :

msValidateParameter(): Regular expression error. Parameter pattern
validation failed.

with this CLASS :
 CLASS
NAME Région administrative
EXPRESSION  ('[res_co_reg]' eq '%RES_CO_REG%')
GROUP adn
LABEL
COLOR 139 35 35
ANTIALIAS FALSE
TYPE TRUETYPE
FONT verait
SIZE 12
POSITION AUTO
FORCE FALSE
MINDISTANCE 1
PARTIALS FALSE
BUFFER 3
END
STYLE
OUTLINECOLOR 139 35 35
WIDTH 5
END
END

but everything works well

i also tried and the error always appear :

EXPRESSION  ([res_co_reg] eq %RES_CO_REG%)
EXPRESSION  ('[res_co_reg]' = '%RES_CO_REG%')
EXPRESSION  ([res_co_reg] eq %RES_CO_REG%)
EXPRESSION  ([res_co_reg] = %RES_CO_REG%)
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Re: lane presentation of highways

2011-10-17 Thread knasia
Unfortunatelly I have to distinguish two directions as i have to put arrows
on the end of each line.

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/lane-presentation-of-highways-tp1970119p6900665.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


[mapserver-users] problem with truetype symbols

2011-10-17 Thread knasia
Hi, 
am trying to draw an arrows on the line on my geometry.
I have manage to draw arrow using vector type (from
http://osgeo-org.1803224.n2.nabble.com/one-way-roads-drawing-spaced-arrows-td1995303.html):
a)
SYMBOL
NAME 'backArrow'
TYPE vector
POINTS
0 1
1 0
-99 -99
0 1
1 2
-99 -99
0 1
4 1
END
END 

And it works, but when I try to use truetype it doesn't work (nothing
appears on the map)
b)
SYMBOL
NAME fwdArrowFont
TYPE truetype
FONT verdana
CHARACTER 
END

Do I need any additional code or so to make it works?

Second question:
My arrows  (draw as in a) ) are horizontal. 
My task is to distinguish 2 directions of each line from geometry (1st: from
node a to b and snd: from b to a) and draw arrows along the road at the end
of each line.

How can I do this?
How can I draw them along the line?



--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/problem-with-truetype-symbols-tp6900681p6900681.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


[mapserver-users] Re: symbolunits meters doesn't work

2011-10-17 Thread knasia
Hi, 
I believe init=epsg:4326 is for UNITS DD and init=epsg:26915 is for
UNITS METERS.
I have changed my declaration to init=epsg:26915 and UNITS METERS but
nothing change. Should I do anything more?
  

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/symbolunits-meters-doesn-t-work-tp6899443p6900767.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] Problem compiling MapServer - error: cannot find gif lib

2011-10-17 Thread David Quinn
I just reinstalled gdal-1.8.1 using:
   ./configure --prefix=$HOME --with-python
--with-pg=/home/david/bin/pg_config --with-ogr --with-gif=$HOME

I'm still getting an error when I run 'make' on the mapserver source file:

./libmapserver.a(mapogroutput.o): In function `msOGRWriteShape':
/home/david/src/mapserver-6.0.1/mapogroutput.c:380: undefined reference to
`OGR_G_ForceToPolygon'
/home/david/src/mapserver-6.0.1/mapogroutput.c:385: undefined reference to
`OGR_G_ForceToMultiPolygon'
/home/david/src/mapserver-6.0.1/mapogroutput.c:390: undefined reference to
`OGR_G_ForceToMultiPoint'
/home/david/src/mapserver-6.0.1/mapogroutput.c:395: undefined reference to
`OGR_G_ForceToMultiLineString'
./libmapserver.a(mapogroutput.o): In function `msOGRWriteFromQuery':
/home/david/src/mapserver-6.0.1/mapogroutput.c:979: undefined reference to
`CPLCreateZip'
/home/david/src/mapserver-6.0.1/mapogroutput.c:984: undefined reference to
`CPLCreateFileInZip'
/home/david/src/mapserver-6.0.1/mapogroutput.c:989: undefined reference to
`CPLCloseZip'
/home/david/src/mapserver-6.0.1/mapogroutput.c:1000: undefined reference to
`CPLWriteFileInZip'
/home/david/src/mapserver-6.0.1/mapogroutput.c:1004: undefined reference to
`CPLCloseFileInZip'
/home/david/src/mapserver-6.0.1/mapogroutput.c:1006: undefined reference to
`CPLCloseZip'
collect2: ld returned 1 exit status
make: *** [shp2img] Error 1

Are there any other things I can test out?

David


On Mon, Oct 17, 2011 at 6:18 AM, thomas bonfort thomas.bonf...@gmail.comwrote:

 maybe you didn't compile gdal with --with-ogr ?

 --
 thomas

 On Mon, Oct 17, 2011 at 12:44, David Quinn daithiqu...@gmail.com wrote:
  Hi Thomas,
 
  Thanks - that helped me fix the problem. I used the following options:
 
  ./configure --prefix=$HOME \
  --enable-debug  \
  --with-gd \
  --with-freetype --without-tiff \
  --with-gdal=/home/david/bin/gdal-config \
  --with-ogr=/home/david/bin/gdal-config \
  --with-proj=/home/david/src/proj-4.7.0/ \
  --without-pdf \
  --with-png=/usr/ --with-threads \
  --with-postgis=/home/david/bin/pg_config \
  --with-wfs --with-wcs --with-wmsclient --with-wfsclient \
  --with-php=$HOME --enable-debug \
  --with-geos=/home/david/bin/geos-config \
  --with-python \
  --with-gif=$HOME
 


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


Re: [mapserver-users] gradient display of raster DEM data

2011-10-17 Thread John Callahan
Thanks for all your responses.  I have COLORRANGE / DATARANGE working fine
in my map file. Works very well.  I'm also looking at using gdaldem for a
more custom color scale.  Thanks again.

- John

***
John Callahan, Research Scientist
Delaware Geological Survey, University of Delaware
URL: http://www.dgs.udel.edu
*



On Fri, Oct 14, 2011 at 5:49 PM, Smith, Michael ERDC-CRREL-NH 
michael.sm...@usace.army.mil wrote:

  John

  The DATARANGE / COLORRANGE keywords will be fully documented by 6.2 but
 they have been present in MapServer for years (since 4.6 or so).

  We used DATARANGE / COLORRANGE for dem display in this years FOSS4G WMS
 Benchmarking effort.

  Mike

   --
 Michael Smith
  US Army Corps
 Remote Sensing GIS/Center

   From: John Callahan john.calla...@udel.edu
 Date: Fri, 14 Oct 2011 16:55:59 -0400

 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] gradient display of raster DEM data

  I know this has been asked before but I thought I'd ask to see if anything
 changed.

  I'm looking to display a raster digital elevation model in mapserver.  My
 data is in flat files, img and tiff.  I'd like to display this data as a
 continuous gradient color range, rather than using CLASS categories/bins for
 specific colors.  Is it still tru ethat this is not possible, easily?

  One method (passed to me on this list) was too generate the colored image
 I want in another program, using GMT or similar tool, then use that in
 mapserver.  This seems like the best option but is non-trivial to someone
 who hasn't done this before.  (though not terribly difficult.)

  I also read about the use of DATARANGE and COLORRANGE in mapserver.
  However, these are not in the documentation.  Are these available in trunk
 only?  A ticket was generated that seems to say this will be included with
 MS 6.2.  (http://trac.osgeo.org/mapserver/ticket/1305)  Any insight on
 whether this is still the plan?


  Thanks for your help and advice.

 - John

  ***
 John Callahan, Research Scientist
 Delaware Geological Survey, University of Delaware
 URL: http://www.dgs.udel.edu
 *

  ___ 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] gradient display of raster DEM data

2011-10-17 Thread Smith, Michael ERDC-CRREL-NH
John,

I got a larger color range by using multiple classes

LAYER
  NAME hillshade
  TYPE raster
  TILEINDEX /benchmarking/wms/2011/data/raster/DEM/bil_16int/dem_bil16int.shp
  PROCESSING CLOSE_CONNECTION=DEFER
  PROJECTION
   +init=epsg:4326
  END
  CLASS
STYLE
  COLORRANGE  46 154 88 251 255 128
  DATARANGE   1003 1800
END
  END
  CLASS
STYLE
  COLORRANGE  251 255 128 224 108 31
  DATARANGE   1800 2800
END
  END
 CLASS
STYLE
  COLORRANGE   224 108 31  200 55 55
  DATARANGE2800 3500
END
  END
  CLASS
STYLE
  COLORRANGE  200 55 55  215 244 244
  DATARANGE   3500 4397
END
  END
END


From: John Callahan john.calla...@udel.edumailto:john.calla...@udel.edu
Date: Mon, 17 Oct 2011 14:54:13 -0400
To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org 
mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] gradient display of raster DEM data

Thanks for all your responses.  I have COLORRANGE / DATARANGE working fine in 
my map file. Works very well.  I'm also looking at using gdaldem for a more 
custom color scale.  Thanks again.

- John

***
John Callahan, Research Scientist
Delaware Geological Survey, University of Delaware
URL: http://www.dgs.udel.edu
*



On Fri, Oct 14, 2011 at 5:49 PM, Smith, Michael ERDC-CRREL-NH 
michael.sm...@usace.army.milmailto:michael.sm...@usace.army.mil wrote:
John

The DATARANGE / COLORRANGE keywords will be fully documented by 6.2 but they 
have been present in MapServer for years (since 4.6 or so).

We used DATARANGE / COLORRANGE for dem display in this years FOSS4G WMS 
Benchmarking effort.

Mike

--
Michael Smith
US Army Corps
Remote Sensing GIS/Center

From: John Callahan john.calla...@udel.edumailto:john.calla...@udel.edu
Date: Fri, 14 Oct 2011 16:55:59 -0400

To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
Subject: [mapserver-users] gradient display of raster DEM data

I know this has been asked before but I thought I'd ask to see if anything 
changed.

I'm looking to display a raster digital elevation model in mapserver.  My data 
is in flat files, img and tiff.  I'd like to display this data as a continuous 
gradient color range, rather than using CLASS categories/bins for specific 
colors.  Is it still tru ethat this is not possible, easily?

One method (passed to me on this list) was too generate the colored image I 
want in another program, using GMT or similar tool, then use that in mapserver. 
 This seems like the best option but is non-trivial to someone who hasn't done 
this before.  (though not terribly difficult.)

I also read about the use of DATARANGE and COLORRANGE in mapserver.  However, 
these are not in the documentation.  Are these available in trunk only?  A 
ticket was generated that seems to say this will be included with MS 6.2.  
(http://trac.osgeo.org/mapserver/ticket/1305)  Any insight on whether this is 
still the plan?


Thanks for your help and advice.

- John

***
John Callahan, Research Scientist
Delaware Geological Survey, University of Delaware
URL: http://www.dgs.udel.edu
*

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

___ mapserver-users mailing list 
mapserver-users@lists.osgeo.orgmailto: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] Cairo and text elements

2011-10-17 Thread Jefferson Williams
For some years now, I have been using PHP MapScript with my own code to make
SVG maps for use on Wikipedia.  Since these are static maps, I typically
tweak them with an editor (moving or editing labels, re-positioning or
re-sizing highway shields, et cetera) to make the maps look as good as
possible.

Upon upgrading to MapServer 6.0.1, I found that with Cairo handling the SVG
output, I can no longer modify the labels.  It also makes the SVG files
about three times larger in this application.  I understand the rationale
that I've read on this, in terms of ensuring that an SVG looks consistent
across many different viewers; but it's not ideal for all applications.

I'm wondering if there are any plans for MapServer/Cairo to allow the option
of producing text through text elements.  For now I will probably move
back to MapScript 5.6, but some of the new features in 6.0 would be very
useful.

-- 

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


Re: [mapserver-users] gradient display of raster DEM data

2011-10-17 Thread John Callahan
Excellent!  Very cool method. I've used multiple classes for vectors but
didn't think about it for rasters. Thanks for the advice.

- John

***
John Callahan, Research Scientist
Delaware Geological Survey, University of Delaware
URL: http://www.dgs.udel.edu
*



On Mon, Oct 17, 2011 at 3:05 PM, Smith, Michael ERDC-CRREL-NH 
michael.sm...@usace.army.mil wrote:

  John,

  I got a larger color range by using multiple classes

  LAYER
   NAME hillshade
   TYPE raster
   TILEINDEX
 /benchmarking/wms/2011/data/raster/DEM/bil_16int/dem_bil16int.shp
   PROCESSING CLOSE_CONNECTION=DEFER
   PROJECTION
+init=epsg:4326
   END
   CLASS
 STYLE
   COLORRANGE  46 154 88 251 255 128
   DATARANGE   1003 1800
 END
   END
   CLASS
 STYLE
   COLORRANGE  251 255 128 224 108 31
   DATARANGE   1800 2800
 END
   END
  CLASS
 STYLE
   COLORRANGE   224 108 31  200 55 55
   DATARANGE2800 3500
 END
   END
   CLASS
 STYLE
   COLORRANGE  200 55 55  215 244 244
   DATARANGE   3500 4397
 END
   END
 END


   From: John Callahan john.calla...@udel.edu
 Date: Mon, 17 Oct 2011 14:54:13 -0400
 To: mapserver-users@lists.osgeo.org mapserver-users@lists.osgeo.org
 Subject: Re: [mapserver-users] gradient display of raster DEM data

  Thanks for all your responses.  I have COLORRANGE / DATARANGE working fine
 in my map file. Works very well.  I'm also looking at using gdaldem for a
 more custom color scale.  Thanks again.

 - John

  ***
 John Callahan, Research Scientist
 Delaware Geological Survey, University of Delaware
 URL: http://www.dgs.udel.edu
 *



 On Fri, Oct 14, 2011 at 5:49 PM, Smith, Michael ERDC-CRREL-NH 
 michael.sm...@usace.army.mil wrote:

  John

  The DATARANGE / COLORRANGE keywords will be fully documented by 6.2 but
 they have been present in MapServer for years (since 4.6 or so).

  We used DATARANGE / COLORRANGE for dem display in this years FOSS4G WMS
 Benchmarking effort.

  Mike

   --
 Michael Smith
  US Army Corps
 Remote Sensing GIS/Center

   From: John Callahan john.calla...@udel.edu
 Date: Fri, 14 Oct 2011 16:55:59 -0400

 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] gradient display of raster DEM data

  I know this has been asked before but I thought I'd ask to see if
 anything changed.

  I'm looking to display a raster digital elevation model in mapserver.
  My data is in flat files, img and tiff.  I'd like to display this data as a
 continuous gradient color range, rather than using CLASS categories/bins for
 specific colors.  Is it still tru ethat this is not possible, easily?

  One method (passed to me on this list) was too generate the colored
 image I want in another program, using GMT or similar tool, then use that in
 mapserver.  This seems like the best option but is non-trivial to someone
 who hasn't done this before.  (though not terribly difficult.)

  I also read about the use of DATARANGE and COLORRANGE in mapserver.
  However, these are not in the documentation.  Are these available in trunk
 only?  A ticket was generated that seems to say this will be included with
 MS 6.2.  (http://trac.osgeo.org/mapserver/ticket/1305)  Any insight on
 whether this is still the plan?


  Thanks for your help and advice.

 - John

  ***
 John Callahan, Research Scientist
 Delaware Geological Survey, University of Delaware
 URL: http://www.dgs.udel.edu
 *

   ___ 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] display of features- more than one attribute

2011-10-17 Thread Bistrais, Bob
This one is rather convoluted.  I have a dataset that contains 4
attributes that I want to show.  All items are basically 1/0, or yes/no.
For each feature, if one item = 1, draw one symbol.  Farther down in the
map file, for another item, if = 1, draw another symbol on the same
feature, and so on.  If possible, I'd like to do this all with one map
file.  So far, it's not working for me- symbols are only drawn for the
first attribute where = 1.  I hope this makes some sense.  Does anyone
have any ideas?

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


RE: [mapserver-users] display of features- more than one attribute

2011-10-17 Thread Bistrais, Bob
Never mind- got it under control.  Brain cramp. 

 



From: Bistrais, Bob 
Sent: Monday, October 17, 2011 5:59 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] display of features- more than one attribute

 

This one is rather convoluted.  I have a dataset that contains 4
attributes that I want to show.  All items are basically 1/0, or yes/no.
For each feature, if one item = 1, draw one symbol.  Farther down in the
map file, for another item, if = 1, draw another symbol on the same
feature, and so on.  If possible, I'd like to do this all with one map
file.  So far, it's not working for me- symbols are only drawn for the
first attribute where = 1.  I hope this makes some sense.  Does anyone
have any ideas?

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