[mapserver-users] RE: Stress test wms demo application

2008-08-18 Thread Albrecht.Weiser
Hi Stijn,
the Service works very good. Especially the client does its job very well! 
Which client did youo use?
Best
Albrecht

Albrecht Weiser, 
E6, GIS Center



Hessische Zentrale für Datenverarbeitung (HZD)
Mainzer Straße 29, 65185 Wiesbaden
Tel.:  0611 340-3113
Fax:  0611 340-5113
E-Mail: albrecht.weiser-at-hzd.hessen.de
 

> Message: 3
> Date: Thu, 14 Aug 2008 16:17:15 +0200
> From: "Stijn Tallir" <[EMAIL PROTECTED]>
> Subject: [mapserver-users] Stress test wms demo application
> To: 
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="us-ascii"
> 
> Hi,
> 
>  
> 
> My company plans to deliver our raster catalog through a 
> mapserver powered
> WMS and I need the server to be real world stress tested.
> 
>  
> 
> Please check out my demo application for showcasing our new 
> mapservice:
> http://www.aquaterra.
> 
> be/nl/mapservice/mapservice_demo/
> 
>  
> 
> Thanks,
> 
>  
> 
> Stijn
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] RE: Stress test wms demo application

2008-08-18 Thread bartvde
Hi Albrecht,

the client used is Flamingo Map Components, an open source Flash client
originating from The Netherlands, see:

http://www.flamingo-mc.org/

Best regards,
Bart

> Hi Stijn,
> the Service works very good. Especially the client does its job very well!
> Which client did youo use?
> Best
> Albrecht
>
> Albrecht Weiser,
> E6, GIS Center
>
>
>
> Hessische Zentrale für Datenverarbeitung (HZD)
> Mainzer Straße 29, 65185 Wiesbaden
> Tel.:  0611 340-3113
> Fax:  0611 340-5113
> E-Mail: albrecht.weiser-at-hzd.hessen.de
>
>
>> Message: 3
>> Date: Thu, 14 Aug 2008 16:17:15 +0200
>> From: "Stijn Tallir" <[EMAIL PROTECTED]>
>> Subject: [mapserver-users] Stress test wms demo application
>> To: 
>> Message-ID: <[EMAIL PROTECTED]>
>> Content-Type: text/plain; charset="us-ascii"
>>
>> Hi,
>>
>>
>>
>> My company plans to deliver our raster catalog through a
>> mapserver powered
>> WMS and I need the server to be real world stress tested.
>>
>>
>>
>> Please check out my demo application for showcasing our new
>> mapservice:
>> http://www.aquaterra.
>> 
>> be/nl/mapservice/mapservice_demo/
>>
>>
>>
>> Thanks,
>>
>>
>>
>> Stijn
> ___
> 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] How to display vector symbols (direction and magnitude) in MapServer?

2008-08-18 Thread John Maurer
Thanks for the suggestion, Daniel! I was unaware of the ANGLE parameter 
in MapServer 5.0. One remaining concern I have, though, is how the angle 
will be interpreted by MapServer? Will -90 degrees always point to the 
South Pole regardless of the map projection I'm using (e.g. a polar 
stereo map centered on the South Pole), or will it always just point to 
the bottom of the map image regardless of the projection? i.e. Does 
MapServer interpret the degrees spatially or just in terms of the image? 
Unfortunately, if the latter is the case (which I suspect it probably 
is) it will not solve my problem. Do you know? Thanks again!

Cheers,
John Maurer

Daniel Morissette wrote:

John Maurer wrote:

Dear MapServer Users,
Does anybody have experience displaying vectors in MapServer? By 
"vectors", I don't mean the usual vector vs. raster difference. What 
I mean is displaying data like wind vectors, which are point 
locations that have both a direction (degrees) and magnitude (e.g. 
meters per second). Usually these are displayed as arrows, which each 
point in a certain direction and whose tails vary in length depending 
on the magnitude each measurement. Is this possible in MapServer? 
Thanks for any suggestions!


You could bind the symbol size and angle to an attribute in your layer 
definition.


If you can precompute the size in pixels based on the wind speed and 
store that to an 'arrowsize' attribute then you could use a layer 
defn's like this:


LAYER
  TYPE POINT
  ...
  CLASS
SYMBOL 'arrow'
ANGLE [direction]
SIZE [arrowsize]
COLOR 0 0 0
  END
END


If you can't precompute the arrow size in pixels, then you could use 
classes based on the wind speed attribute:


LAYER
  TYPE POINT
  ...
  CLASSITEM 'windspeed'
  CLASS
EXPRESSION ([windspeed] < 5)
SYMBOL 'arrow'
ANGLE [direction]
SIZE 10
COLOR 0 0 0
  END
  CLASS
EXPRESSION ([windspeed] < 25)
SYMBOL 'arrow'
ANGLE [direction]
SIZE 15
COLOR 0 0 0
  END
  CLASS
EXPRESSION ([windspeed] < 100)
SYMBOL 'arrow'
ANGLE [direction]
SIZE 20
COLOR 0 0 0
  END
  CLASS
# No expression ... catch all for windspeed > 100
SYMBOL 'arrow'
ANGLE [direction]
SIZE 25
COLOR 0 0 0
  END
END


Daniel


--
John Maurer
Web/Database Applications Engineer
National Snow and Ice Data Center (NSIDC)
University of Colorado at Boulder
http://cires.colorado.edu/~maurerj
+1-303-586-1677

"Without geography, you're nowhere!"


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


[mapserver-users] WFS server configuration problems...

2008-08-18 Thread George A. Dubin

Hi all again =)
Nowadays I’m trying to fire up a WFS server based on Mapserver 5.0.2, but  
I have a problem with it. This is what I have:


1) mapserv –v output:

MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP  
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE  
SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER SUPPORTS=WCS_SERVER INPUT=TIFF  
INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE


2) My MAP file:

MAP
UNITS   METERS
EXTENT  1373.00 1663.00 2073.00 2163.00
SIZE1095 565
SHAPEPATH   "/var/www/map/shapes"
SYMBOLSET   "/var/www/map/symbols/symbols.sym"
FONTSET "/var/www/map/fonts/fonts.list"
IMAGECOLOR  255 255 255
TEMPLATEPATTERN 'map*'

WEB
TEMPLATE  '/var/www/map/map.html'
IMAGEPATH '/var/www/map/tmp/'
IMAGEURL  '/map/tmp/'
METADATA
wfs_title   "WFS Demo"
wfs_onlineresource  
"http://localhost/cgi-bin/mapserv?map=wfs.map&";

wfs_srs "EPSG:32235"
   END
END

PROJECTION
"init=epsg:32235"
END

LAYER
NAME"Housepoints"
CONNECTIONTYPE  postgis
CONNECTION  "user=mapserv dbname=mapserv host=127.0.0.1  
port=5432"

DATA"wkb_geometry from polymap"
STATUS  ON
TYPEPOINT
LABELITEM   "label"
TOLERANCE   7
HEADER  '/var/www/map/templates/templ_head.html'
FOOTER  '/var/www/map/templates/templ_footer.html'
DUMPTRUE

METADATA
wfs_title   "houses"
gml_featureid   "msGeometry"
gml_include_items   "all"
END


PROJECTION
"init=epsg:32235"
END

CLASS
NAME"housepoints"
TEMPLATE'/var/www/map/templates/templ_query.html'
STYLE
SYMBOL  'circle'
COLOR   [color]
OUTLINECOLOR0 0 0
SIZE[size]
END
LABEL
COLOR 0 0 255
POSITION AUTO
PARTIALS TRUE
MINDISTANCE 100
BUFFER 2
ENCODING CP1251
WRAP '~'
END
END

END

END

This mapfile is a working one, only “metadata” sections added.



3) A part of  
http://localhost/cgi-bin/mapserv?map=wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getcapabilities   
output:


...





Housepoints
houses
EPSG:32235
maxy="8.24225e+12"/>



...



4)  
http://172.20.200.200:8080/cgi-bin/mapserv?map=wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=Housepoints  
output:


http://mapserver.gis.umn.edu/mapserver";  
elementFormDefault="qualified" version="0.1">
http://www.opengis.net/gml";  
schemaLocation="http://schemas.opengis.net/gml/2.1.2/feature.xsd"/>
substitutionGroup="gml:_Feature"/>





maxOccurs="1"/>














5) And now -  
http://172.20.200.200:8080/cgi-bin/mapserv?map=wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=Housepoints  
output:


http://www.opengis.net/wfs  
http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd  
http://mapserver.gis.umn.edu/mapserver  
http://localhost/cgi-bin/mapserv?map=  
wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=Housepoints&OUTPUTFORMAT=XMLSCHEMA">


missing



Why am I having “missing” here? =/


--
Отправлено M2, революционной почтовой программой Opera:  
http://www.opera.com/mail/

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


[mapserver-users] Change a class name by url

2008-08-18 Thread Jefferson Bauer
Hello

I was upgrading my
mapserver from 4.6 to 5.2 (using MS4W v2.2.8 ) and everything was ok
utntil i run a function that change the name of a CLASS by URL. My
mapfile have a layer like:

LAYER 
   
NAMEmunicipio
... 
   
CLASS
NAME   
"sedes"
...
   
END 
END

I'm using mapserver as
CGI and to do the change in 4.6 i use this:
&map_municipio_sedes_name=newname

Now in 5.2 i read this
article:
http://mapserver.gis.umn.edu/docs/reference/cgi/referencemanual-all-pages

So, the new way to do
what i want must be something
like:
&map_layer[municipio]_class[sedes]_name=newname
or
&map_layer[0]_class[0]_name=newname

But it's not working... I receive this error: 

loadClass(): Unknown identifier. Parsing error near (name):(line 1) 

Am i doing something
wrong or this change is not allowed anymore?

Thanks,
Jefferson Bauer


  Novos endereços, o Yahoo! que você conhece. Crie um email novo com a sua 
cara @ymail.com ou @rocketmail.com.
http://br.new.mail.yahoo.com/addresses
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] WFS server configuration problems...

2008-08-18 Thread bartvde
Is you data inside of the MAP->extent?

Best regards,
Bart

> Hi all again =)
> Nowadays I’m trying to fire up a WFS server based on Mapserver 5.0.2,
> but
> I have a problem with it. This is what I have:
>
> 1) mapserv –v output:
>
> MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE
> SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER SUPPORTS=WCS_SERVER INPUT=TIFF
> INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
>
> 2) My MAP file:
>
> MAP
> UNITS   METERS
> EXTENT  1373.00 1663.00 2073.00 2163.00
> SIZE1095 565
> SHAPEPATH   "/var/www/map/shapes"
> SYMBOLSET   "/var/www/map/symbols/symbols.sym"
> FONTSET "/var/www/map/fonts/fonts.list"
> IMAGECOLOR  255 255 255
> TEMPLATEPATTERN 'map*'
>
>  WEB
>  TEMPLATE  '/var/www/map/map.html'
>  IMAGEPATH '/var/www/map/tmp/'
>  IMAGEURL  '/map/tmp/'
>  METADATA
>  wfs_title   "WFS Demo"
>  wfs_onlineresource
> "http://localhost/cgi-bin/mapserv?map=wfs.map&";
>  wfs_srs "EPSG:32235"
> END
>  END
>
>  PROJECTION
>  "init=epsg:32235"
>  END
>
> LAYER
>  NAME"Housepoints"
>  CONNECTIONTYPE  postgis
>  CONNECTION  "user=mapserv dbname=mapserv host=127.0.0.1
> port=5432"
>  DATA"wkb_geometry from polymap"
>  STATUS  ON
>  TYPEPOINT
>  LABELITEM   "label"
>  TOLERANCE   7
>  HEADER  '/var/www/map/templates/templ_head.html'
>  FOOTER  '/var/www/map/templates/templ_footer.html'
>  DUMPTRUE
>
>  METADATA
>  wfs_title   "houses"
>  gml_featureid   "msGeometry"
>  gml_include_items   "all"
>  END
>
>
>  PROJECTION
>  "init=epsg:32235"
>  END
>
>  CLASS
>  NAME"housepoints"
>  TEMPLATE'/var/www/map/templates/templ_query.html'
>  STYLE
>  SYMBOL  'circle'
>  COLOR   [color]
>  OUTLINECOLOR0 0 0
>  SIZE[size]
>  END
>  LABEL
>  COLOR 0 0 255
>  POSITION AUTO
>  PARTIALS TRUE
>  MINDISTANCE 100
>  BUFFER 2
>  ENCODING CP1251
>  WRAP '~'
>  END
>  END
>
> END
>
> END
>
> This mapfile is a working one, only “metadata” sections added.
>
>
>
> 3) A part of
> http://localhost/cgi-bin/mapserv?map=wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getcapabilities
> output:
>
> ...
> 
> 
> 
> 
> 
> Housepoints
> houses
> EPSG:32235
>  maxy="8.24225e+12"/>
> 
> 
> ...
>
>
>
> 4)
> http://172.20.200.200:8080/cgi-bin/mapserv?map=wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=Housepoints
> output:
>
> http://mapserver.gis.umn.edu/mapserver";
> elementFormDefault="qualified" version="0.1">
> http://www.opengis.net/gml";
> schemaLocation="http://schemas.opengis.net/gml/2.1.2/feature.xsd"/>
>  substitutionGroup="gml:_Feature"/>
> 
> 
> 
> 
>  maxOccurs="1"/>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
>
>
> 5) And now -
> http://172.20.200.200:8080/cgi-bin/mapserv?map=wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=Housepoints
> output:
>
> http://www.opengis.net/wfs
> http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd
> http://mapserver.gis.umn.edu/mapserver
> http://localhost/cgi-bin/mapserv?map=
> wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=Housepoints&OUTPUTFORMAT=XMLSCHEMA">
> 
> missing
> 
> 
>
> Why am I having “missing” here? =/
>
>
> --
> Отправлено M2, революционной почтовой
> программой Opera:
> http://www.opera.com/mail/
> ___
> 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] Mapserver TIF Layer

2008-08-18 Thread Fawcett, David
Felix, 
 
Extent defines the bounding box that you want do display as a default
for your map.  The values need to be expressed in the same units as your
output spatial reference system.  (e.g. if your data is in decimal
degrees of lat/long, your extent should be in decimal degrees).  The
format is [minimum x value] [minimum y value] [maximum x value] [maximum
y value] .  UNITS also needs to reflect the units of your output SRS. 
 
Try:  
 
EXTENT -73.795132 40.685928 -74.153979 40.846823 
UNITS dd
 
Unless you are calling the layer by name in the URL request, change
STATUS to DEFAULT to ensure that the layer shows up.
 
David. 
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Felix
Sent: Saturday, August 16, 2008 10:49 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Mapserver TIF Layer


Hi,

I'm having some difficulty getting a map to show up. I've setup
the latest version of MapServer and I have a TIF with a TFW file.

I don't fully understand how EXTENT works, and I can't find any
decent explanation in the documentation. I'm trying to display a portion
of my map based on latitude and longitude. What do I need to put in my
EXTENT field so that I can get a map with top-left
(40.846823/-74.153979) and bottom-right (40.685928/-73.795132).

Thank you for any assistance!

Felix

Here is my TFW file:

63.54594199989
0.0
0.0
-63.54594199989
-421692.82776298042
-15874.371420191659

And my Map File:

MAP
NAME NY77SOUTH
STATUS ON
IMAGETYPE PNG
SIZE 500 500
SHAPEPATH "/var/www/html"
#West South East North
EXTENT  -421692.82776298042 -15874.371420191659 0 0
UNITS METERS
PROJECTION 
"proj=lcc" 
"lat_1=46.67" 
"lat_2=41.33" 
"lon_0=-72.83" 
"lat_0=42.1"
"x_0=0.0"
"y_0=0.0"
"ellps=GRS80" 
"datum=NAD83" 
END
WEB
IMAGEPATH "/var/www/html/tmp/"
IMAGEURL "/tmp/"
END

LAYER
NAME "chart"
TYPE RASTER
STATUS ON
DATA "/var/www/html/NewYork77South.tif"
END
END


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


Re: [mapserver-users] WFS server configuration problems...

2008-08-18 Thread George A. Dubin

=)) Nope... I hadn't... After changing EXTENT to

EXTENT  0 0 12000 16300

everything works fine!

Really big TNX for quick answers! I was struggling with this problem since  
friday =/


On Mon, 18 Aug 2008 16:47:06 +0300, Rafael Almeida Fernandez Soto  
<[EMAIL PROTECTED]> wrote:



George

Did you have a some features in this extent = 1373.00 1663.00
2073.00 2163.00 ?


2008/8/18 George A. Dubin <[EMAIL PROTECTED]>


Hi all again =)
Nowadays I'm trying to fire up a WFS server based on Mapserver 5.0.2,  
but I

have a problem with it. This is what I have:

1) mapserv –v output:

MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE  
SUPPORTS=WMS_SERVER
SUPPORTS=WFS_SERVER SUPPORTS=WCS_SERVER INPUT=TIFF INPUT=EPPL7  
INPUT=POSTGIS

INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

2) My MAP file:

MAP
UNITS   METERS
EXTENT  1373.00 1663.00 2073.00 2163.00
SIZE1095 565
SHAPEPATH   "/var/www/map/shapes"
SYMBOLSET   "/var/www/map/symbols/symbols.sym"
FONTSET "/var/www/map/fonts/fonts.list"
IMAGECOLOR  255 255 255
TEMPLATEPATTERN 'map*'

   WEB
   TEMPLATE  '/var/www/map/map.html'
   IMAGEPATH '/var/www/map/tmp/'
   IMAGEURL  '/map/tmp/'
   METADATA
   wfs_title   "WFS Demo"
   wfs_onlineresource "
http://localhost/cgi-bin/mapserv?map=wfs.map&";
   wfs_srs "EPSG:32235"
  END
   END

   PROJECTION
   "init=epsg:32235"
   END

LAYER
   NAME"Housepoints"
   CONNECTIONTYPE  postgis
   CONNECTION  "user=mapserv dbname=mapserv  
host=127.0.0.1port=5432"

   DATA"wkb_geometry from polymap"
   STATUS  ON
   TYPEPOINT
   LABELITEM   "label"
   TOLERANCE   7
   HEADER  '/var/www/map/templates/templ_head.html'
   FOOTER  '/var/www/map/templates/templ_footer.html'
   DUMPTRUE

   METADATA
   wfs_title   "houses"
   gml_featureid   "msGeometry"
   gml_include_items   "all"
   END


   PROJECTION
   "init=epsg:32235"
   END

   CLASS
   NAME"housepoints"
   TEMPLATE'/var/www/map/templates/templ_query.html'
   STYLE
   SYMBOL  'circle'
   COLOR   [color]
   OUTLINECOLOR0 0 0
   SIZE[size]
   END
   LABEL
   COLOR 0 0 255
   POSITION AUTO
   PARTIALS TRUE
   MINDISTANCE 100
   BUFFER 2
   ENCODING CP1251
   WRAP '~'
   END
   END

END

END

This mapfile is a working one, only "metadata" sections added.



3) A part of
http://localhost/cgi-bin/mapserv?map=wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getcapabilities  
output:


...





Housepoints
houses
EPSG:32235



...



4)
http://172.20.200.200:8080/cgi-bin/mapserv?map=wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=Housepointsoutput:

http://mapserver.gis.umn.edu/mapserver";
elementFormDefault="qualified" version="0.1">
http://www.opengis.net/gml"; schemaLocation="
http://schemas.opengis.net/gml/2.1.2/feature.xsd"/>



















5) And now -
http://172.20.200.200:8080/cgi-bin/mapserv?map=wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=Housepointsoutput:

http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd
http://mapserver.gis.umn.edu/mapserver
http://localhost/cgi-bin/mapserv?map=wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=Housepoints&OUTPUTFORMAT=XMLSCHEMA";>

missing



Why am I having "missing" here? =/


--
Отправлено M2, революционной почтовой программой Opera:
http://www.opera.com/mail/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users









--
Отправлено M2, революционной почтовой программой Opera:  
http://www.opera.com/mail/

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


Re: [mapserver-users] WFS server configuration problems...

2008-08-18 Thread George A. Dubin

=)) Nope... I hadn't... After changing EXTENT to

EXTENT  0 0 12000 16300

everything works fine!

Really big TNX for quick answers! I was struggling with this problem since  
friday =/


On Mon, 18 Aug 2008 16:44:32 +0300, <[EMAIL PROTECTED]> wrote:


Is you data inside of the MAP->extent?

Best regards,
Bart


Hi all again =)
Nowadays I'm trying to fire up a WFS server based on Mapserver 5.0.2,
but
I have a problem with it. This is what I have:

1) mapserv -v output:

MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE
SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER SUPPORTS=WCS_SERVER INPUT=TIFF
INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

2) My MAP file:

MAP
UNITS   METERS
EXTENT  1373.00 1663.00 2073.00 2163.00
SIZE1095 565
SHAPEPATH   "/var/www/map/shapes"
SYMBOLSET   "/var/www/map/symbols/symbols.sym"
FONTSET "/var/www/map/fonts/fonts.list"
IMAGECOLOR  255 255 255
TEMPLATEPATTERN 'map*'

 WEB
 TEMPLATE  '/var/www/map/map.html'
 IMAGEPATH '/var/www/map/tmp/'
 IMAGEURL  '/map/tmp/'
 METADATA
 wfs_title   "WFS Demo"
 wfs_onlineresource
"http://localhost/cgi-bin/mapserv?map=wfs.map&";
 wfs_srs "EPSG:32235"
END
 END

 PROJECTION
 "init=epsg:32235"
 END

LAYER
 NAME"Housepoints"
 CONNECTIONTYPE  postgis
 CONNECTION  "user=mapserv dbname=mapserv host=127.0.0.1
port=5432"
 DATA"wkb_geometry from polymap"
 STATUS  ON
 TYPEPOINT
 LABELITEM   "label"
 TOLERANCE   7
 HEADER  '/var/www/map/templates/templ_head.html'
 FOOTER  '/var/www/map/templates/templ_footer.html'
 DUMPTRUE

 METADATA
 wfs_title   "houses"
 gml_featureid   "msGeometry"
 gml_include_items   "all"
 END


 PROJECTION
 "init=epsg:32235"
 END

 CLASS
 NAME"housepoints"
 TEMPLATE'/var/www/map/templates/templ_query.html'
 STYLE
 SYMBOL  'circle'
 COLOR   [color]
 OUTLINECOLOR0 0 0
 SIZE[size]
 END
 LABEL
 COLOR 0 0 255
 POSITION AUTO
 PARTIALS TRUE
 MINDISTANCE 100
 BUFFER 2
 ENCODING CP1251
 WRAP '~'
 END
 END

END

END

This mapfile is a working one, only "metadata" sections added.



3) A part of
http://localhost/cgi-bin/mapserv?map=wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getcapabilities
output:

...





Housepoints
houses
EPSG:32235



...



4)
http://172.20.200.200:8080/cgi-bin/mapserv?map=wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=Housepoints
output:

http://mapserver.gis.umn.edu/mapserver";
elementFormDefault="qualified" version="0.1">
http://www.opengis.net/gml";
schemaLocation="http://schemas.opengis.net/gml/2.1.2/feature.xsd"/>



















5) And now -
http://172.20.200.200:8080/cgi-bin/mapserv?map=wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=Housepoints
output:

http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd
http://mapserver.gis.umn.edu/mapserver
http://localhost/cgi-bin/mapserv?map=
wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=Housepoints&OUTPUTFORMAT=XMLSCHEMA">

missing



Why am I having "missing" here? =/


--
Отправлено M2, революционной почтовой
программой Opera:
http://www.opera.com/mail/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users








--
Отправлено M2, революционной почтовой программой Opera:  
http://www.opera.com/mail/

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


[MAPSERVER-USERS] Use of "gutter" parameter with tilecache

2008-08-18 Thread Ritesh Ambastha

I want to specify "gutter" parameter while using tilecache. 

This is the code snippet from my "tilecache.cfg" file:



[cache]
type=Disk
base=/var/www/tilecache
# My MapServer layer configuration.
[mycity]
type=MapServer
layers=layer1,layer2,layer3
mapfile=/var/www/mymap/mymap.map
levels= 7
resolutions = 66.14, 26.45, 13.22,6.614,2.64,1.322,0.26
maxResolution = 66.14
srs=EPSG:4326
bbox = -1008136, 2136130, -937979, 2198657



I do know how to specify the "gutter" parameter while accessing these tiles
via openlayers. I am looking for the config lines for generating tiles while
using this "gutter" param.

Regards,
Ritesh Ambastha
-- 
View this message in context: 
http://www.nabble.com/Use-of-%22gutter%22-parameter-with-tilecache-tp19033034p19033034.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] PHP Mapscript $layerObj->set("data", $dataString) doesn't work with long Strings (2036 characters)

2008-08-18 Thread Michael Härtel
Hello Daniel and List

I changed the mapfile and defined a layer with a "DATA" string which consists 
of 2036 characters. That works fine but as soon as I change it to 2037 
characters I get the "Server Error 500": premature End of script headers again.

So it doesn't make a difference whether I set it with mapscript or define it 
directly.

regards,

Michael


--- On Thu, 8/14/08, Daniel Morissette <[EMAIL PROTECTED]> wrote:

> From: Daniel Morissette <[EMAIL PROTECTED]>
> Subject: Re: [mapserver-users] PHP Mapscript $layerObj->set("data", 
> $dataString) doesn't work with long Strings (2036 characters)
> To: [EMAIL PROTECTED]
> Cc: mapserver-users@lists.osgeo.org
> Date: Thursday, August 14, 2008, 4:14 PM
> Michael,
> 
> Can you please try setting the same DATA line directly in
> the mapfile 
> instead of via $layerObj->set() and confirm that you get
> the same error?
> 
> The $layerObj->set() method uses a dynamic buffer
> allocation, so there 
> is no reason for it to bail on buffers larger than a
> specific size. I 
> suspect the problem may be in MapServer's Oracle
> Spatial driver code 
> that may be using a static buffer to build the SQL
> statement.
> 
> I see that there is already ticket #2694 that seems to be
> about the same 
> thing: http://trac.osgeo.org/mapserver/ticket/2694
> 
> Daniel
> 
> Michael Härtel wrote:
> > Dear List!
> > 
> > It seems that I found a bug concerning PHP Mapscript
> or MapScript in general. The result is a "Premature end
> of script headers: php-cgi.exe" and a "Internal
> Server error 500"
> > 
> > In our web application I dynamically change the
> "DATA" attribute of one layer to retrieve the
> correct objects out of the Oracle 10g database. This works
> great as long the data String is not longer than 2036
> characters.
> > 
> > In php I set the DATA string with
> "$layerObj->set("data" ,
> $dataString);". A var_dump($dataString) shows that it
> is 2037 characters long. But debugging at the database side
> showed that only 1524 characters are included in the select
> statement. So a total of 513 (Not 512?) characters are cut
> off. A $dataString containing 2036 characters work fine.
> > 
> > Because the DATA string is only a part of the total
> SQL string that is submitted to the database (when
> navigating a map, a " WHERE SDO_FILTER" clause is
> added) the total SQL string for retrieving the objects (that
> are burnt into the WMS GETMAP image) gets about 2215
> characters long which works fine with sqlplus.
> > 
> > It seems that the
> "$layerObj->set("data" ,
> $dataString);" line doesn't work for strings longer
> than 2036 characters.
> > 
> > Can someone confirm this?
> > 
> > Thanks for any reply,
> > 
> > Michael
> > ---
> > I use "ms4w_2.2.7" zip that includes
> mapserver 5.0.2. The mapscript.dll 225.280 bytes and is from
> february, 5th 2008
> > 
> > 
> >   
> > ___
> > mapserver-users mailing list
> > mapserver-users@lists.osgeo.org
> >
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
> 
> -- 
> Daniel Morissette
> http://www.mapgears.com/



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


[mapserver-users] image classifying

2008-08-18 Thread zhao peisheng
Hi all,

I am a new user of MapServer. I am currently serving some HDF files using 
MapServer WMS and rendering them in classification. May I just assign a color 
for a specific pixel value, such as value 0 using red and value 0.0001 using 
yellow? I follow the MapServer document to do classifying and get the result of 
value 0 and value 1 always in same color. How to figure it out? Thanks.


Peisheng

_
Get ideas on sharing photos from people like you.  Find new ways to share.
http://www.windowslive.com/explore/photogallery/posts?ocid=TXT_TAGLM_WL_Photo_Gallery_082008___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] attach text to displayed features that are coming from postgis

2008-08-18 Thread John Mitchell
Hi,

I would like to be able to attach text to displayed features that are coming
from postgis.  Currently I am just displaying points (layer displayed below)
as an ellipse from postgis, but I would like to have text on top of each
ellipse based on the contents of a field uniquely associated to each point.

John

 LAYER
  # name of layer
  NAME "gv:tasmania_cities"
  GROUP "Collaboration"

  # what type of data is this?
  TYPE POINT

  # always returned with interface
  STATUS ON

  TRANSPARENCY 100

  CONNECTIONTYPE postgis

  CONNECTION "user=postgres dbname=gvdb host=localhost port=5432
password=password1117"
  DATA "the_geom from tasmania_cities"


  CLASS
STYLE
symbol "dot"
SIZE 8
  COLOR 0 0 0
END
   END
 END


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


Re: [mapserver-users] How to display vector symbols (direction andmagnitude) in MapServer?

2008-08-18 Thread Steve Lime
Just in terms of the image...

Steve

>>> On 8/18/2008 at 6:30 AM, in message <[EMAIL PROTECTED]>, John Maurer
<[EMAIL PROTECTED]> wrote:
> Thanks for the suggestion, Daniel! I was unaware of the ANGLE parameter 
> in MapServer 5.0. One remaining concern I have, though, is how the angle 
> will be interpreted by MapServer? Will -90 degrees always point to the 
> South Pole regardless of the map projection I'm using (e.g. a polar 
> stereo map centered on the South Pole), or will it always just point to 
> the bottom of the map image regardless of the projection? i.e. Does 
> MapServer interpret the degrees spatially or just in terms of the image? 
> Unfortunately, if the latter is the case (which I suspect it probably 
> is) it will not solve my problem. Do you know? Thanks again!
> Cheers,
> John Maurer
> 
> Daniel Morissette wrote:
>> John Maurer wrote:
>>> Dear MapServer Users,
>>> Does anybody have experience displaying vectors in MapServer? By 
>>> "vectors", I don't mean the usual vector vs. raster difference. What 
>>> I mean is displaying data like wind vectors, which are point 
>>> locations that have both a direction (degrees) and magnitude (e.g. 
>>> meters per second). Usually these are displayed as arrows, which each 
>>> point in a certain direction and whose tails vary in length depending 
>>> on the magnitude each measurement. Is this possible in MapServer? 
>>> Thanks for any suggestions!
>>
>> You could bind the symbol size and angle to an attribute in your layer 
>> definition.
>>
>> If you can precompute the size in pixels based on the wind speed and 
>> store that to an 'arrowsize' attribute then you could use a layer 
>> defn's like this:
>>
>> LAYER
>>   TYPE POINT
>>   ...
>>   CLASS
>> SYMBOL 'arrow'
>> ANGLE [direction]
>> SIZE [arrowsize]
>> COLOR 0 0 0
>>   END
>> END
>>
>>
>> If you can't precompute the arrow size in pixels, then you could use 
>> classes based on the wind speed attribute:
>>
>> LAYER
>>   TYPE POINT
>>   ...
>>   CLASSITEM 'windspeed'
>>   CLASS
>> EXPRESSION ([windspeed] < 5)
>> SYMBOL 'arrow'
>> ANGLE [direction]
>> SIZE 10
>> COLOR 0 0 0
>>   END
>>   CLASS
>> EXPRESSION ([windspeed] < 25)
>> SYMBOL 'arrow'
>> ANGLE [direction]
>> SIZE 15
>> COLOR 0 0 0
>>   END
>>   CLASS
>> EXPRESSION ([windspeed] < 100)
>> SYMBOL 'arrow'
>> ANGLE [direction]
>> SIZE 20
>> COLOR 0 0 0
>>   END
>>   CLASS
>> # No expression ... catch all for windspeed > 100
>> SYMBOL 'arrow'
>> ANGLE [direction]
>> SIZE 25
>> COLOR 0 0 0
>>   END
>> END
>>
>>
>> Daniel

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


Re: [mapserver-users] attach text to displayed features that are comingfrom postgis

2008-08-18 Thread Steve Lime
Check out the LABELITEM property for a layer. You'll also need to define a 
LABEL for your class.

Steve

>>> On 8/18/2008 at 11:17 AM, in message
<[EMAIL PROTECTED]>, "John Mitchell"
<[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I would like to be able to attach text to displayed features that are coming
> from postgis.  Currently I am just displaying points (layer displayed below)
> as an ellipse from postgis, but I would like to have text on top of each
> ellipse based on the contents of a field uniquely associated to each point.
> 
> John
> 
>  LAYER
>   # name of layer
>   NAME "gv:tasmania_cities"
>   GROUP "Collaboration"
> 
>   # what type of data is this?
>   TYPE POINT
> 
>   # always returned with interface
>   STATUS ON
> 
>   TRANSPARENCY 100
> 
>   CONNECTIONTYPE postgis
> 
>   CONNECTION "user=postgres dbname=gvdb host=localhost port=5432
> password=password1117"
>   DATA "the_geom from tasmania_cities"
> 
> 
>   CLASS
> STYLE
> symbol "dot"
> SIZE 8
>   COLOR 0 0 0
> END
>END
>  END
> 

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


RE: [mapserver-users] attach text to displayed features thatare comingfrom postgis

2008-08-18 Thread Fawcett, David
To be able to use a label, you will likely also have to modify your
select statement to include the columns that you want to use in labels
or expressions.  

Try something like:

DATA "the_geom from (select myLabelColumn, the_geom from myTable) as foo
using
unique gid using SRID=4326"


Of course, you will want to make sure that you are specifying the actual
names of your unique id column and your SRID.  

David.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve Lime
Sent: Monday, August 18, 2008 1:31 PM
To: John Mitchell; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] attach text to displayed features thatare
comingfrom postgis


Check out the LABELITEM property for a layer. You'll also need to define
a LABEL for your class.

Steve

>>> On 8/18/2008 at 11:17 AM, in message
<[EMAIL PROTECTED]>, "John
Mitchell" <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I would like to be able to attach text to displayed features that are 
> coming from postgis.  Currently I am just displaying points (layer 
> displayed below) as an ellipse from postgis, but I would like to have 
> text on top of each ellipse based on the contents of a field uniquely 
> associated to each point.
> 
> John
> 
>  LAYER
>   # name of layer
>   NAME "gv:tasmania_cities"
>   GROUP "Collaboration"
> 
>   # what type of data is this?
>   TYPE POINT
> 
>   # always returned with interface
>   STATUS ON
> 
>   TRANSPARENCY 100
> 
>   CONNECTIONTYPE postgis
> 
>   CONNECTION "user=postgres dbname=gvdb host=localhost port=5432 
> password=password1117"
>   DATA "the_geom from tasmania_cities"
> 
> 
>   CLASS
> STYLE
> symbol "dot"
> SIZE 8
>   COLOR 0 0 0
> END
>END
>  END
> 

___
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] attach text to displayed features that are coming from postgis

2008-08-18 Thread Ritesh Ambastha

Dear John,

You just need to use these additional lines in your class definition: 

CLASS
-
---
LABELITEM "column_name"

LABEL
  COLOR  150 150 150
  FONT sans
  TYPE truetype
  SIZE 10
  PARTIALS FALSE
END 
---
---
END #class

Regards,
Ritesh Ambastha


John Mitchell-3 wrote:
> 
> Hi,
> 
> I would like to be able to attach text to displayed features that are
> coming
> from postgis.  Currently I am just displaying points (layer displayed
> below)
> as an ellipse from postgis, but I would like to have text on top of each
> ellipse based on the contents of a field uniquely associated to each
> point.
> 
> John
> 
>  LAYER
>   # name of layer
>   NAME "gv:tasmania_cities"
>   GROUP "Collaboration"
> 
>   # what type of data is this?
>   TYPE POINT
> 
>   # always returned with interface
>   STATUS ON
> 
>   TRANSPARENCY 100
> 
>   CONNECTIONTYPE postgis
> 
>   CONNECTION "user=postgres dbname=gvdb host=localhost port=5432
> password=password1117"
>   DATA "the_geom from tasmania_cities"
> 
> 
>   CLASS
> STYLE
> symbol "dot"
> SIZE 8
>   COLOR 0 0 0
> END
>END
>  END
> 
> 
> -- 
> John J. Mitchell
> 
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/attach-text-to-displayed-features-that-are-coming-from-postgis-tp19035021p19039906.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] msGetLabelSize(): TrueType Font error. Requested font (sans) not found.

2008-08-18 Thread John Mitchell
Hi,

Within a map file I am trying to draws labels based on an attribute value
and I get the following error within the label object:
msGetLabelSize(): TrueType Font error.  Requested font (sans) not found.

Below is part of the map file:

  LABELITEM "type"

  CLASS
STYLE
  COLOR 255 0 0
 WIDTH 2
END

  LABEL
COLOR  150 150 150
OUTLINECOLOR 255 255 255
FONT sans
TYPE truetype
SIZE 6
POSITION AUTO
PARTIALS FALSE
  END

   END

Thanks,

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


[mapserver-users] Re: msGetLabelSize(): TrueType Font error. Requested font (sans) not found.

2008-08-18 Thread John Mitchell
Sorry for the extra email.  I forgot to ask my question to the below email
which is:
How do I know what fonts that are available to my mapserver.


On Mon, Aug 18, 2008 at 5:21 PM, John Mitchell <[EMAIL PROTECTED]>wrote:

> Hi,
>
> Within a map file I am trying to draws labels based on an attribute value
> and I get the following error within the label object:
> msGetLabelSize(): TrueType Font error.  Requested font (sans) not found.
>
> Below is part of the map file:
>
>   LABELITEM "type"
>
>   CLASS
> STYLE
>   COLOR 255 0 0
>  WIDTH 2
> END
>
>   LABEL
> COLOR  150 150 150
> OUTLINECOLOR 255 255 255
> FONT sans
> TYPE truetype
> SIZE 6
> POSITION AUTO
> PARTIALS FALSE
>   END
>
>END
>
> Thanks,
>
> --
> John J. Mitchell
>



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


Re: [mapserver-users] Re: msGetLabelSize(): TrueType Font error. Requested font (sans) not found.

2008-08-18 Thread Tamas Szekeres
John,

You should specify the fonts to be used by mapserver in a fontset file
and add the FONTSET section in your mapfile accordingly.
For more information see:
http://mapserver.gis.umn.edu/docs/reference/fontset/fontset/

Best regards,

Tamas



2008/8/18 John Mitchell <[EMAIL PROTECTED]>:
> Sorry for the extra email.  I forgot to ask my question to the below email
> which is:
> How do I know what fonts that are available to my mapserver.
>
>
> On Mon, Aug 18, 2008 at 5:21 PM, John Mitchell <[EMAIL PROTECTED]>
> wrote:
>>
>> Hi,
>>
>> Within a map file I am trying to draws labels based on an attribute value
>> and I get the following error within the label object:
>> msGetLabelSize(): TrueType Font error.  Requested font (sans) not found.
>>
>> Below is part of the map file:
>>
>>   LABELITEM "type"
>>
>>   CLASS
>> STYLE
>>   COLOR 255 0 0
>>  WIDTH 2
>> END
>>
>>   LABEL
>> COLOR  150 150 150
>> OUTLINECOLOR 255 255 255
>> FONT sans
>> TYPE truetype
>> SIZE 6
>> POSITION AUTO
>> PARTIALS FALSE
>>   END
>>
>>END
>>
>> Thanks,
>>
>> --
>> John J. Mitchell
>
>
>
> --
> John J. Mitchell
>
> ___
> 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] Fractional line widths?

2008-08-18 Thread Dane Springmeyer
I can see from http://mapserver.gis.umn.edu/docs/reference/mapfile/ 
style that only integers are supported for the Style > Width parameter.


Are thinner lines (a float type) a possibility or have they been  
considered in the MapServer code base?


I can't find anything in trac to suggest so, but I thought to check  
here before filing a ticket.


Thanks,

Dane



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


Re: [mapserver-users] Fractional line widths?

2008-08-18 Thread Tamas Szekeres
Dane,

I think it's reasonable but would only be feasible for the AGG renderer though.


Best regards,

Tamas



2008/8/19 Dane Springmeyer <[EMAIL PROTECTED]>:
> I can see from http://mapserver.gis.umn.edu/docs/reference/mapfile/style
> that only integers are supported for the Style > Width parameter.
>
> Are thinner lines (a float type) a possibility or have they been considered
> in the MapServer code base?
>
> I can't find anything in trac to suggest so, but I thought to check here
> before filing a ticket.
>
> Thanks,
>
> Dane
>
>
>
> ___
> 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] Fractional line widths?

2008-08-18 Thread William Kyngesburye

On Aug 18, 2008, at 5:53 PM, Tamas Szekeres wrote:


Dane,

I think it's reasonable but would only be feasible for the AGG  
renderer though.



And for PDF output.


Best regards,

Tamas

2008/8/19 Dane Springmeyer <[EMAIL PROTECTED]>:

I can see from http://mapserver.gis.umn.edu/docs/reference/mapfile/style
that only integers are supported for the Style > Width parameter.

Are thinner lines (a float type) a possibility or have they been  
considered

in the MapServer code base?

I can't find anything in trac to suggest so, but I thought to check  
here

before filing a ticket.

Thanks,

Dane



-
William Kyngesburye 
http://www.kyngchaos.com/

"History is an illusion caused by the passage of time, and time is an  
illusion caused by the passage of history."


- Hitchhiker's Guide to the Galaxy


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


[mapserver-users] adhoc requests to the end of the WMS request within mapserver map file

2008-08-18 Thread John Mitchell
Below I have listed a sample layer section which does a WMS call to a local
geoserver and this work fine, but what I would like to now do is be able to
add to this WMS request a filter parameter (e.g.
&filter=fieldname=fieldvalue) which geoserver can accept.
How can I add adhoc requests like the filter example listed above to the end
of the WMS request when mapserver is making a WMS request?

Thanks,

John


LAYER
  # name of layer
  NAME "vector:sangis_unexploded_ordnance_child"
  GROUP "SanGIS_parent"

  # what type of data is this?
  TYPE RASTER

  # always returned with interface
  STATUS ON

  TRANSPARENCY 100

  CONNECTION "http://localhost:8080/geoserver/wms";
  CONNECTIONTYPE WMS
  METADATA
"wms_srs" "EPSG:4326"
"wms_name""vector:sangis_unexploded_ordnance"
"wms_server_version"  "1.1.1"
"wms_format"  "image/png"
"wms_style"   "sangis_unexploded_ordnance_style"
  END
 END


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


Re: [mapserver-users] Fractional line widths?

2008-08-18 Thread Dane Springmeyer

Tamas,

Great, thanks!. I'll file a ticket then regarding the agg render and  
adding a FORMATOPTION for generating 'thinner' looking lines.


My question comes from the context of comparing Mapnik's agg output to  
mapserver. Mapnik seems to interpret user-entered fractional widths in  
a clever way, by lightening the color and intensity.


I'm comparing this graphic generated with a width=0.1 with Mapnik:

http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/xml_config/map/hello_world_using_xml_config.png

to this graphic generated with Mapserver with Width 1.0:

http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/mapserver_comparison/mapfile_config/map/hello_world_with_mapserver_mapfile.png

It fully possible that my mapfile is not doing an equal comparison, so  
if anyone has suggestions I've pasted it below.



Thanks,

Dane




# This mapfile mirrors the mapnik hello world example here: 
http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/pure_python/
# A map can be generated from it by running shp2img.
# For example:
# $ shp2img -m world.map -o map/hello_world_with_mapserver_mapfile.png
# or
# once you have installed the mapserv cgi use this url:
# 
http://localhost/cgi-bin/mapserv?map=/path/to/this/mapfile/world.map&layers=world&mode=map

MAP
  IMAGETYPEAGG
  EXTENT -180 -93 180 86
  SIZE   600 300
  SHAPEPATH   "../../data/"
  IMAGECOLOR 70 130 180

  OUTPUTFORMAT
   NAME 'AGG'
   DRIVER AGG/PNG
   IMAGEMODE RGB
   MIMETYPE "image/png"
  END

  LAYER
NAME world
DATA world_borders.shp
STATUS  ON
TYPE  POLYGON

CLASS
  NAME   "World"
  STYLE
COLOR 242 239 249
OUTLINECOLOR   127 127 127
WIDTH 1
  END

END
  END
END



On Aug 18, 2008, at 3:53 PM, Tamas Szekeres wrote:


Dane,

I think it's reasonable but would only be feasible for the AGG  
renderer though.



Best regards,

Tamas



2008/8/19 Dane Springmeyer <[EMAIL PROTECTED]>:

I can see from http://mapserver.gis.umn.edu/docs/reference/mapfile/style
that only integers are supported for the Style > Width parameter.

Are thinner lines (a float type) a possibility or have they been  
considered

in the MapServer code base?

I can't find anything in trac to suggest so, but I thought to check  
here

before filing a ticket.

Thanks,

Dane



___
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] Fractional line widths?

2008-08-18 Thread Tamas Szekeres
Dane,

I think it would be implemented by means of replacing the int-s with
doubles at the style and the symbol definitions and the corresponding
interfaces since AGG have already been using doubles internally in the
code.


Best regards,

Tamas


2008/8/19 Dane Springmeyer <[EMAIL PROTECTED]>:
> Tamas,
> Great, thanks!. I'll file a ticket then regarding the agg render and adding
> a FORMATOPTION for generating 'thinner' looking lines.
> My question comes from the context of comparing Mapnik's agg output to
> mapserver. Mapnik seems to interpret user-entered fractional widths in a
> clever way, by lightening the color and intensity.
> I'm comparing this graphic generated with a width=0.1 with Mapnik:
> http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/xml_config/map/hello_world_using_xml_config.png
> to this graphic generated with Mapserver with Width 1.0:
> http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/mapserver_comparison/mapfile_config/map/hello_world_with_mapserver_mapfile.png
> It fully possible that my mapfile is not doing an equal comparison, so if
> anyone has suggestions I've pasted it below.
>
> Thanks,
> Dane
> 
>
> # This mapfile mirrors the mapnik hello world example
> here: 
> http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/pure_python/
> # A map can be generated from it by running shp2img.
> # For example:
> # $ shp2img -m world.map -o map/hello_world_with_mapserver_mapfile.png
> # or
> # once you have installed the mapserv cgi use this url:
> #
> http://localhost/cgi-bin/mapserv?map=/path/to/this/mapfile/world.map&layers=world&mode=map
> MAP
>   IMAGETYPEAGG
>   EXTENT -180 -93 180 86
>   SIZE   600 300
>   SHAPEPATH   "../../data/"
>   IMAGECOLOR 70 130 180
>
>   OUTPUTFORMAT
>NAME 'AGG'
>DRIVER AGG/PNG
>IMAGEMODE RGB
>MIMETYPE "image/png"
>   END
>   LAYER
> NAME world
> DATA world_borders.shp
> STATUS  ON
> TYPE  POLYGON
> CLASS
>   NAME   "World"
>   STYLE
> COLOR 242 239 249
> OUTLINECOLOR   127 127 127
> WIDTH 1
>   END
>
> END
>   END
> END
>
>
> On Aug 18, 2008, at 3:53 PM, Tamas Szekeres wrote:
>
> Dane,
>
> I think it's reasonable but would only be feasible for the AGG renderer
> though.
>
>
> Best regards,
>
> Tamas
>
>
>
> 2008/8/19 Dane Springmeyer <[EMAIL PROTECTED]>:
>
> I can see from http://mapserver.gis.umn.edu/docs/reference/mapfile/style
>
> that only integers are supported for the Style > Width parameter.
>
> Are thinner lines (a float type) a possibility or have they been considered
>
> in the MapServer code base?
>
> I can't find anything in trac to suggest so, but I thought to check here
>
> before filing a ticket.
>
> Thanks,
>
> Dane
>
>
>
> ___
>
> 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] Change a class name by url

2008-08-18 Thread Jeff McKenna
hmm, u might also refer to the 5.0 migration guide, in case it helps 
you: 
http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/MIGRATION_GUIDE.TXT


I have also seen a variation of this error: 
http://lists.osgeo.org/pipermail/mapserver-users/2008-May/055877.html



--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/




Jefferson Bauer wrote:

Hello

I was upgrading my
mapserver from 4.6 to 5.2 (using MS4W v2.2.8 ) and everything was ok
utntil i run a function that change the name of a CLASS by URL. My
mapfile have a layer like:

LAYER 
   
NAMEmunicipio
... 
   
CLASS
NAME   
"sedes"

...
   
END 
END


I'm using mapserver as
CGI and to do the change in 4.6 i use this:
&map_municipio_sedes_name=newname

Now in 5.2 i read this
article:
http://mapserver.gis.umn.edu/docs/reference/cgi/referencemanual-all-pages

So, the new way to do
what i want must be something
like:
&map_layer[municipio]_class[sedes]_name=newname
or
&map_layer[0]_class[0]_name=newname

But it's not working... I receive this error: 

loadClass(): Unknown identifier. Parsing error near (name):(line 1) 


Am i doing something
wrong or this change is not allowed anymore?

Thanks,
Jefferson Bauer




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


Re: [mapserver-users] Fractional line widths?

2008-08-18 Thread Flavio Hendry
Hi Dane

You might try to use SIZEUNITS ...

Mit freundlichem Gruss / Best Regards
Flavio Hendry


TYDAC Web-Site:  http://www.tydac.ch
TYDAC MapServer: http://www.mapserver.ch
TYDAC SwissMaps: http://www.mapplus.ch

  Mit freundlichen Gruessen / Kind Regards
 mailto:[EMAIL PROTECTED]
 TYDAC AG - http://www.tydac.ch
Geographic Information Solutions
 Luternauweg 12 -- CH-3006 Bern
   Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860

Location: http://www.mapplus.ch/adr/bern/luternauweg/12



-Original Message-
From: Dane Springmeyer <[EMAIL PROTECTED]>
To: mapserver-users@lists.osgeo.org
Date: Mon, 18 Aug 2008 15:16:53 -0700
Subject: [mapserver-users] Fractional line widths?

> I can see from http://mapserver.gis.umn.edu/docs/reference/mapfile/ 
> style that only integers are supported for the Style > Width
> parameter.
> 
> Are thinner lines (a float type) a possibility or have they been  
> considered in the MapServer code base?
> 
> I can't find anything in trac to suggest so, but I thought to check  
> here before filing a ticket.
> 
> Thanks,
> 
> Dane
> 
> 
> 
> ___
> 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] Pix2geo

2008-08-18 Thread ramya srinivasan
Hi,
Can u get me an exaple for pix2geo function implementation?how to display
the user given co-ordinates on the map?
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users