Re: [mapserver-users] parsing e rror about setting debug level‏

2009-05-13 Thread micklesh

Hi, Peisheng

I think this means that there is a syntax error in your symbol definition
can you post it here to let us check in up?
regards, michael


zhao peisheng wrote:
> 
> 
> Hi all
> 
> I set debug level in map file as "DEBUG 5". But I always get the error
> message:
> 
> getSymbol(): Symbol definition error. Parsing error near (5):(line 88) 
> 
> What's wrong with it?
> 
> 
> Peisheng
> _
> Hotmail® has ever-growing storage! Don’t worry about storage limits.
> http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage1_052009
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/parsing-error-about-setting-debug-level%E2%80%8F-tp2888162p2888501.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] convertion from mapinfo to mapserver -one table is not getting

2009-05-13 Thread meenu

hi friends ,i found out my problem ,which is if the table has s more than one
type of features then it will retrive the type as OTHER.

-
Meenu
-- 
View this message in context: 
http://n2.nabble.com/convertion-from-mapinfo-to-mapserver--one-table-is-not-getting-tp2853077p2888456.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] hotspot information on point layers

2009-05-13 Thread meenu

i got ur ideacan u tell me how can i do this in a mapserver website...or
can u give me a sample application link for this...withoout any reference it
is difficult to move...so pls help me



-
Meenu
-- 
View this message in context: 
http://n2.nabble.com/hotspot-information-on-point-layers-tp2883485p2888289.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] Mapserver rendering with 24 bit colour

2009-05-13 Thread David Nugent

On 06/05/2009, at 1:52 PM, David Nugent wrote:

Once I completed upgrading to mapserver 5.4, I decided I'd give the  
new AGG renderer a try.

~
However, as a by-product of changing renderer, the metatiles  
produced by mapserver differ slightly in colour. Some agree exactly  
to the RBG colours I am providing, others are rendered with slight  
variations, and when viewed on the web it becomes fairly obvious  
where the meta tile borders are.




This is to follow up on my own question to which I received no  
response either on the list or otherwise in case anyone else runs into  
the same or a similar problem.


I finally found the problem in that the php mapscript had a bug, and  
that "AGG_Q" (AGG with quantize enabled) was being selected regardless  
that I was trying to tell it to do it differently. Once I correctly  
set it to AGG without quantize, the colour variation between tiles  
disappeared and all is well.


One interesting aspect of this is that the average file size did not  
increase significantly when dropping quantize although in general the  
tiles rendered using AGG are around 40-50% larger than PNG8.


Regards,
--
David Nugent (dav...@datalinktech.com.au)
Software Engineer
datalink technologies pty ltd
Mobile GPS/GPRS business process solutions
http://www.datalinktech.com.au/





PGP.sig
Description: This is a digitally signed message part
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] parsing error about setting d ebug level‏

2009-05-13 Thread Peisheng Zhao

Hi all

I set debug level in map file as "DEBUG 5". But I always get the error message:

getSymbol(): Symbol definition error. Parsing error near (5):(line 88) 

What's wrong with it?


Peisheng
_
Hotmail® has ever-growing storage! Don’t worry about storage limits.
http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage1_052009___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Check layer status in Geomoose

2009-05-13 Thread Dan Little

GeoMOOSE 1.6.X (and 2.0) suffer some documentation difficulties... it's a 
"learn by example" setup right now.  We're trying to get better with GM2.0 and 
its documentation is arguably better (http://www.geomoose.org/geomoose2/docs/) 
than GM1.6 but I still need to do more work documenting the different input 
options.


- Original Message 
> From: Leonidas Liakos 
> To: mapserver-users@lists.osgeo.org; Dan Little 
> Sent: Tuesday, May 12, 2009 1:08:54 PM
> Subject: Re: [mapserver-users] Check layer status in Geomoose
> 
> 
> Thank you, I found it just looking at default identify tool.Is that option 
> documented?
> 
> 
> --- Στις Τρίτ., 12/05/09, ο/η Dan Little έγραψε:
> 
> > Από: Dan Little 
> > Θέμα: Re: [mapserver-users] Check layer status in Geomoose
> > Προς: "leonidas" , mapserver-users@lists.osgeo.org
> > Ημερομηνία: Τρίτη, 12 Μάιος 2009, 19:59
> > You need to have an input type that sends the visiblelayers
> > input to your script.
> > 
> > Are you using GeoMOOSE 1.6.X or GeoMOOSE 2.0 beta?
> > 
> > 
> > - Original Message 
> > > From: leonidas 
> > > To: mapserver-users@lists.osgeo.org
> > > Sent: Monday, May 11, 2009 8:00:03 AM
> > > Subject: [mapserver-users] Check layer status in
> > Geomoose
> > > 
> > > 
> > > I'm writing a custom tool in geomoose based on
> > php/mapscript. 
> > > I'm trying to get the layer status for each on of
> > my layers using
> > > $qlayer->status property.
> > > Always and for each layer it returns the value 2. But
> > there aren't all the
> > > layers checked in the treeview of geomoose (and
> > according displayed in the
> > > map). I think that  $qlayer->status property always
> > return 2 because it
> > > checks the status in the mapfile (for my layers the
> > status is DEFAULT) and
> > > not what is displayed in the map. So how can I get
> > only the layers that are
> > > displayed in the map (or are checked in the treeview
> > of Geomoose)? I also
> > > checked the $qlayer->isVisible() property but it
> > also works with the same
> > > logic (it returns 1 for all layers, displayed or
> > not).Thank you.
> > > -- 
> > > View this message in context: 
> > >
> > http://n2.nabble.com/Check-layer-status-in-Geomoose-tp2862814p2862814.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
> 
> 
>   
> ___ 
> Χρησιμοποιείτε Yahoo!; 
> Βαρεθήκατε τα ενοχλητικά μηνύματα (spam); Το Yahoo! Mail 
> διαθέτει την καλύτερη δυνατή προστασία κατά των ενοχλητικών 
> μηνυμάτων http://login.yahoo.com/config/mail?.intl=gr 




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


Re: [mapserver-users] WFS Compression

2009-05-13 Thread Gregor at HostGIS

Are any plans to include compressed GML as an output in the windows version
of mapserver?


Typically that would be handled silently by your webserver, if the 
browser supplies an Accept-encoding header including deflate or gzip.


Alternately, you can have more control over the process with some 
compression modules in Apache such as mod_deflate and mod_gz.


--
HostGIS, Open Source solutions for the global GIS community
Greg Allensworth - SysAdmin, Programmer, GIS Person, Security
Network+   Server+   A+   Security+
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] WFS Compression

2009-05-13 Thread Joy Babe

Hi

I am using mapserver 5.1-dev on a windows system with IIS and the data is in
a postgresql 8.2 database. We have some very large datasets that are
accessible via WFS however the large file sizes cause mapserver timeouts.
Are any plans to include compressed GML as an output in the windows version
of mapserver?

Regards 
-- 
View this message in context: 
http://n2.nabble.com/WFS-Compression-tp2887927p2887927.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] GRIB files

2009-05-13 Thread Frank Warmerdam

Roberto Garcia,MSc wrote:

Hi, tks for the answers.

According to my gdainfo output file attached, can anyone tell me what 
element could be a CLASSITEM?


Roberto,

In MapServer you always classify rasters based on the item [pixel] but
you do not need to explicitly state a classitem.

This is a relatively simple example of raster classification.

LAYER
  NAME grid1
  TYPE raster
  STATUS default
  DATA data/float.tif
  CLASS
NAME "red"
EXPRESSION ([pixel] < -3)
COLOR 255 0 0
  END
  CLASS
NAME "green"
EXPRESSION ([pixel] >= -3 and [pixel] < 3)
COLOR 0 255 0
  END
  CLASS
NAME "blue"
EXPRESSION ([pixel] >= 3)
COLOR 0 0 255
  END
END

I can see my grib using Grads but what tool do I use to translate 
individual bands into GeoTIFF?


You can use gdal_translate to extract particular bands from a grib file
as a geotiff (or all the bands).  For instance, the following would
extract band 3 (total precipitation):

gdal_translate -b 3 T126L28.grb total_precip.tif

Converting the data on-the-fly to an image is the right way to work? 


Having MapServer access the grib file on the fly rather than depending
on pre-translated extracts will reduce data duplication and may help
avoid confusion about what is up to date.  However, it is possible that
there will be a performance penalty for extracting directly from GRIB.
If so, it may not be significant enough to matter to you.


What are the problems with Apache if I do not do so?


I don't see how either approach relates to Apache.  It is a
data management and possibly performance issue with MapServer.

Best regards,
--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent

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


Re: [mapserver-users] hotspot information on point layers

2009-05-13 Thread Guillaume Sueur
Hi,

That will mainly depend on your client side implementation, in which the
map image itself will be displayed.
For example, if you use OpenLayers as a client, you can set a mouseOver
or mouseClick on your layer, and trigger a WMS getFeatureInfo request on
it.

Regards

Guillaume

meenu a écrit :
> hi ..advance thanks to all ,in a mapserver project how possible to do the
> hotspot information of points...for eg i have one pointlocation table like
> as follows...when the mouse is on the top of these points,need to generte
> one hotspot information regarding this point with an image...can anybody
> help me to do this part...regards
> **
> LAYER
>NAME "n_twns"
>TYPE POINT
>CONNECTIONTYPE OGR
>CONNECTION "n_twns.TAB"
> STATUS ON
> LABELITEM "NAME"
>CLASS
>   #SIZE 10
>   STYLE
>   COLOR 255 0 0
>   OUTLINECOLOR 0 0 0
>   SYMBOL 'ball'
>   END #STYLE
>   LABEL
>   COLOR 100 100 255
>   FONT arial
>   TYPE TRUETYPE
>   SIZE 7
>   POSITION LC
>   WRAP " "
>   END#LABEL
>   END# CLASS
>   END#LAYER
> *
> 
> -
> Meenu
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] GRIB files

2009-05-13 Thread Roberto Garcia,MSc

Hi, tks for the answers.

According to my gdainfo output file attached, can anyone tell me what 
element could be a CLASSITEM?


I can see my grib using Grads but what tool do I use to translate 
individual bands into GeoTIFF?


Converting the data on-the-fly to an image is the right way to work? 
What are the problems with Apache if I do not do so? 


Tks

Frank Warmerdam wrote:

Jose Roberto M. Garcia, MSc wrote:

Hi all,

I'm trying to work with GRIB files in MapServer but it's not working. 
I know that when we work with images we need to classify the output 
using "[pixel]" as a CLASSITEM and make classes for each value but 
how is it for GRIB files? I have several levels an variables in it. 
How do I classify them? Does anybody explain me?


Roberto,

It would be helpful if you could make a GRIB file typical of what you 
want
to use available for download, so we could speak in the context of 
that file.


Grib files often include a number of variables.  These variables 
typically
get unrolled as bands.  If the variable is 3D (ie. has a time or 
elevation

dimension) then it may be unrolled as multiple bands from a GDAL point of
view.  One sample GRIB file I happen to have ends up with 40 bands, 
two of

which look like this when reported by gdalinfo:

Band 1 Block=360x1 Type=Float64, ColorInterp=Undefined
  Description = 5[m] DBSL (Depth below sea level)
  Metadata:
GRIB_UNIT=[K]
GRIB_COMMENT=Potential temperature [K]
GRIB_ELEMENT=POT
GRIB_SHORT_NAME=5-DBSL
GRIB_REF_TIME=  1130716800 sec UTC
GRIB_VALID_TIME=  1133308800 sec UTC
GRIB_FORECAST_SECONDS=2592000 sec
Band 2 Block=360x1 Type=Float64, ColorInterp=Undefined
  Description = 15[m] DBSL (Depth below sea level)
  Metadata:
GRIB_UNIT=[K]
GRIB_COMMENT=Potential temperature [K]
GRIB_ELEMENT=POT
GRIB_SHORT_NAME=15-DBSL
GRIB_REF_TIME=  1130716800 sec UTC
GRIB_VALID_TIME=  1133308800 sec UTC
GRIB_FORECAST_SECONDS=2592000 sec

As you can see these are temperature values for different depths
below sea level.

Once you know what band(s) you want to work with in MapServer you can
select them using the BANDS= processing directive.

  eg.
   PROCESSING "BANDS=2"

would select the 2nd band for display.

Then you can use classification as you describe.  In this case the
pixel values are presumably floating point temperatures measured in
degrees Kelvin though I'm not that familiar with the product.  Pay
particular attention to the online mapserver docs on classifying
non-8bit data as there are some caveats in this regard. I hope this
gets you going.

I would suggest:
  o inspecting your file(s) with gdalinfo, reviewing the metadata.
  o Translate individual bands into GeoTIFF files and visualize
and inspect the results with desktop software like QGIS or OpenEV.

Then move to mapserver once you are more comfortable you know how
the data is being represented through GDAL.

Best regards,
Driver: GRIB/GRIdded Binary (.grb)
Files: data\raster\T126L28.grb
Size is 161, 98
Coordinate System is:
GEOGCS["Coordinate System imported from GRIB file",
DATUM["unknown",
SPHEROID["Sphere",6367470,0]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433]]
Origin = (-150.000,-61.2460002)
Pixel Size = (0.938,-0.001836734693878)
Corner Coordinates:
Upper Left  (-150.000, -61.246) (150d 0'0.00"W, 61d14'45.60"S)
Lower Left  (-150.000, -61.426) (150d 0'0.00"W, 61d25'33.60"S)
Upper Right (   1.018, -61.246) (  1d 1'4.80"E, 61d14'45.60"S)
Lower Right (   1.018, -61.426) (  1d 1'4.80"E, 61d25'33.60"S)
Center  ( -74.491, -61.336) ( 74d29'27.60"W, 61d20'9.60"S)
Band 1 Block=161x1 Type=Float64, ColorInterp=Undefined
  Description = 0[-] MSL (Mean sea level)
  Metadata:
GRIB_UNIT=[Pa]
GRIB_COMMENT=Pressure reduced to MSL [Pa]
GRIB_ELEMENT=PRMSL
GRIB_SHORT_NAME=0-MSL
GRIB_REF_TIME=  1242453600 sec UTC
GRIB_VALID_TIME=  1242453600 sec UTC
GRIB_FORECAST_SECONDS=0 sec
Band 2 Block=161x1 Type=Float64, ColorInterp=Undefined
  Description = 0[-] SFC (Ground or water surface)
  Metadata:
GRIB_UNIT=[-]
GRIB_COMMENT=undefined [-]
GRIB_ELEMENT=var187
GRIB_SHORT_NAME=0-SFC
GRIB_REF_TIME=  1242453600 sec UTC
GRIB_VALID_TIME=  1242453600 sec UTC
GRIB_FORECAST_SECONDS=0 sec
Band 3 Block=161x1 Type=Float64, ColorInterp=Undefined
  Description = 0[-] SFC (Ground or water surface)
  Metadata:
GRIB_UNIT=[kg/m^2]
GRIB_COMMENT=Total precipitation [kg/m^2]
GRIB_ELEMENT=APCP
GRIB_SHORT_NAME=0-SFC
GRIB_REF_TIME=  1242453600 sec UTC
GRIB_VALID_TIME=  1242453600 sec UTC
GRIB_FORECAST_SECONDS=0 sec
Band 4 Block=161x1 Type=Float64, ColorInterp=Undefined
  Description = 0[-] CTL (Cloud top level)
  Metadata:
GRIB_UNIT=[%]
GRIB_COMMENT=Total cloud cover [%]
GRIB_ELEMENT=TCDC
GRIB_SHORT_NAME=0-CTL
GRIB_REF_TIME=  1242453600 sec UTC
GRIB_VALID_TIME=  124245360

[mapserver-users] hotspot information on point layers

2009-05-13 Thread meenu

hi ..advance thanks to all ,in a mapserver project how possible to do the
hotspot information of points...for eg i have one pointlocation table like
as follows...when the mouse is on the top of these points,need to generte
one hotspot information regarding this point with an image...can anybody
help me to do this part...regards
**
LAYER
   NAME "n_twns"
   TYPE POINT
   CONNECTIONTYPE OGR
   CONNECTION "n_twns.TAB"
STATUS ON
LABELITEM "NAME"
   CLASS
#SIZE 10
STYLE
COLOR 255 0 0
OUTLINECOLOR 0 0 0
SYMBOL 'ball'
END #STYLE
LABEL
COLOR 100 100 255
FONT arial
TYPE TRUETYPE
SIZE 7
POSITION LC
WRAP " "
END#LABEL
  END# CLASS
  END#LAYER
*

-
Meenu
-- 
View this message in context: 
http://n2.nabble.com/hotspot-information-on-point-layers-tp2883485p2883485.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] need to do the coding in VB using TutorialMapServerSolution.zip

2009-05-13 Thread meenu

dearsi solved my problem using the samples(ASPNET20Sample_50.zip)
available in  (http://www.coordinatesolutions.com/Samples.aspx).actually
am not familiar with c#...thats y changed coding language from c# to VB
regards


-
Meenu
-- 
View this message in context: 
http://n2.nabble.com/need-to-do-the-coding-in-VB-using--TutorialMapServerSolution.zip-tp2852968p2883259.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] is animated symbols possible in mapserverwebsite?

2009-05-13 Thread Rahkonen Jukka
meenu wrote:

> 
> dears..i did this part like as follows...but the animation is 
> not working...that means ball colour is not changing
> 
> SYMBOL
>   NAME "ball"
>   TYPE pixmap
>   IMAGE "\images\ball.gif"
> END

I guess that getting this effect with Mapserver would mean creating an
animated gif about the whole map and sending that our. I believe that
Mapserver does not support this but it building and sending just static
images for the client and in this case that static image contains only
some fixed pixels which originate from your animated "ball.gif" file.  I
would guess that they always come from the first frame of the gif file. 

I do not know enough about web techniques to say how to make what you
want. For sure it is possible somehow. I guess it would mean something
like sending the base map for the background and the ball.gif to be
drawn on top of that and a clever client that puts them together.

-Jukka Rahkonen-

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


Re: [mapserver-users] is animated symbols possible in mapserver website?

2009-05-13 Thread meenu

dears..i did this part like as follows...but the animation is not
working...that means ball colour is not changing

SYMBOL
  NAME "ball"
  TYPE pixmap
  IMAGE "\images\ball.gif"
END


-
Meenu
-- 
View this message in context: 
http://n2.nabble.com/is-animated-symbols-possible-in-mapserver-website--tp2879766p2879909.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] is animated symbols possible in mapserver website?

2009-05-13 Thread meenu

dears,
how can i add animated symbols in mapserver map i need to add symbols
like this website(http://www.alovelyworld.com/)...is it possible...now am
using the symbol star like as follows...can anybody help me for this?

Symbol
Name 'star'
Type VECTOR
Filled TRUE
Points
0 .375
.35 .375
.5 0
.65 .375
1 .375
.75 .625
.875 1
.5 .75
.125 1
.25 .625
END
END 

-
Meenu
-- 
View this message in context: 
http://n2.nabble.com/is-animated-symbols-possible-in-mapserver-website--tp2879766p2879766.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