Re: [mapserver-users] Rasterlite

2015-01-21 Thread Lime, Steve D (DNR)
If your GDAL build supports the format then there should be a way to access it 
through MapServer. Key is syntax I'd guess. Maybe something like?

LAYER
  ...
  TYPE RASTER

  DATA "RASTERLITE:multirasterdb.sqlite,table=raster1"

  ...

END

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Aaron Hunt
Sent: Monday, January 19, 2015 2:29 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Rasterlite

Is there a way to connect a raster layer to a RasterLite database in Mapserver?

Thank you for any help

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

Re: [mapserver-users] Displaying overlapping linestrings

2013-01-24 Thread Lime, Steve D (DNR)
You could try drawing the features with the same base color but with opacity 
set. The more times the same area is rendered you'd get a different hue.

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jan Hartmann
Sent: Thursday, January 24, 2013 11:00 AM
To: Stephen Woodbridge
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Displaying overlapping linestrings


On 01/24/2013 05:35 PM, Stephen Woodbridge wrote:
On 1/24/2013 11:13 AM, Jan Hartmann wrote:

Does anyone know a trick to do this:

I'm making geographical indexes for the map series in our map library.
Each map sheets is displayed as a polygonal linestring, based on its
corner coordinates. Lots of sheets have exactly the same boundaries, so
it's not clear where a polygon indicates just one map sheet of several.
It's easy, of course, to write a PostGIS query to return a different
color code when map boundaries exactly coincide, but I was wondering
whether something like that could be done by mapserver on its own, like
XOR-ing a line with what is already there. Any ideas?

Hi Jan,

For polygons you could use a small negative buffer to shrink the polygon 
slightly. You can do this in postgis, and you might be able to do it with 
mapserver if geos is compiled in. See:

http://mapserver.org/development/rfc/ms-rfc-48.html
No, that is not what I meant. I'm looking for a trick for mapserver to color a 
linestring differently when drawing over a linestring that it has already drawn 
in a previous layer. In computer graphics you can do this by using an XOR 
brush. Essentially, the screen frame buffer functions as a sort of memory. I 
don not want to use PostGIS or GOS, too complex. I doubt if this can be done by 
MapServer, but you never know.

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


Re: [mapserver-users] apache module - mapserver

2013-01-23 Thread Lime, Steve D (DNR)
There's always the FastCGI option. That will certainly boost performance.

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Peter Maes
Sent: Wednesday, January 23, 2013 2:10 AM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] apache module - mapserver

Thanks for the info. I had tried it and I could get a simple ?mode=map from it 
that rendered my entire map. However anything else did not work for me. 
mode=tile, wms requests, etc.

I didn't look further than that, so I'm just using it as cgi at the moment.

However anything that might improve performance is a welcome change for me. Or 
perhaps in memory exchange of tile generations between mapserver and mapcache.



2013/1/23 Eichner, Andreas - SID-NLKM 
mailto:andreas.eich...@sid.sachsen.de>>

> Is this functionality documented someplace? I couldn't find anything.
Not that I'm aware of. This info has been grabbed from source. I've seen
that Thomas Bonfort has done some work to handle more generic requests
instead of only WxS. Although he has prepared msModuleLoadMap() at line
322 he still assigns the map object stored in the config which results
in several problems as MS modifies it during request processing (which
is IMHO a bad idea).

So Thomas might be able to tell more about the current state and roadmap
for it.

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


Re: [mapserver-users] WFS GetFeature with filter for multiple layers

2013-01-22 Thread Lime, Steve D (DNR)
Are you stuck running such an old version?

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Arjen de Korte
Sent: Tuesday, January 22, 2013 10:45 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] WFS GetFeature with filter for multiple layers

Hi all,

I'm having a problem with Mapserver 5.2.1 and WFS GetFeature requests:
when I do a GetFeature request with an OGC filter for more than one layer, I 
only get results for the first layer. I found a description of the issue here: 
https://github.com/mapserver/mapserver/issues/3584. It says the issue can be 
worked around by listing a separate filter for each layer, but I can't work out 
a way to do this.

My original request looks like this:

http://myserver.com/cgi-bin/mapserv.exe?map=mymapfile.map&Service=WFS&Request=GetFeature&TypeName=layer1,layer2&Version=1.0.0&Filter=http://www.opengis.net/ogc";>http://www.opengis.net/gml";>89760.045356755,436071.75388938
89762.029730683,436071.75388938 89762.029730683,436073.7382633
89760.045356755,436073.7382633
89760.045356755,436071.75388938

...returning only results for layer1.

I've tried repeating the exact same filter like:

http://myserver.com/cgi-bin/mapserv.exe?map=mymapfile.map&Service=WFS&Request=GetFeature&TypeName=layer1,
layer2&Version=1.0.0&Filter=http://www.opengis.net/ogc";> ...
 ... 

and

http://myserver.com/cgi-bin/mapserv.exe?map=mymapfile.map&Service=WFS&Request=GetFeature&TypeName=layer1,
layer2&Version=1.0.0&Filter=http://www.opengis.net/ogc";> ...
, ...


...but the first returns the same: only results for layer1, and the second 
returns an error.

What is the correct way to list multiple filters, or is there another solution 
to work around this limitation?

Thanks!

Kind regards,
Arjen.
___
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] apache module - mapserver

2013-01-22 Thread Lime, Steve D (DNR)
Is this functionality documented someplace? I couldn't find anything.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Eichner, Andreas 
- SID-NLKM
Sent: Friday, January 18, 2013 3:41 AM
To: Peter Maes; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] apache module - mapserver


> I noticed during compilation of mapserver 6.2 that there is an apache 
> module as well.

Please note that the module currently has limited functionality.

> However, which parameters do i need to pass to httpd.conf for the 
> module to work correctly? How can I properly test it when its 
> configured as module? Calling /mapserver or /mapserv didn't do the 
> trick for me.

You need to configure a  and set the Mapfile directive, f.e.:


  Mapfile "/path/to/mapfiles/mapfile.map"


Currently you need to create such a configuration for every MAP file you want 
to publish.
___
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] Comparaison date

2013-01-21 Thread Lime, Steve D (DNR)
Filters are passed to the underlying driver and use the syntax of that driver 
if supported, otherwise they use MapServer expression syntax . Class 
expressions use the MapServer expression syntax only. There's actually very 
little reason to use FILTERs when using an RDMS driver, just add it to the DATA 
statement.

Steve


From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] on behalf of codelf 
[nicolasdelf...@gmail.com]
Sent: Monday, January 21, 2013 1:24 PM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Comparaison date

Hi!
Same problem here. I use this one : DATEDIFF(DD,[DAT_MEASURE],GETDATE()) <
90
In the mapfile, it works in FILTER but not in EXPRESIONN inside a CLASS...
Any idea?
Thx



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Comparaison-date-tp4336613p5028807.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


Re: [mapserver-users] how use the expression function "area"

2013-01-08 Thread Lime, Steve D (DNR)
Hi Andrea: In expressions the tag [shape] should be used to reference the 
current geometry. Many of the drivers don't define a geometry name column (e.g. 
native shapefiles) so we needed a consistent way to refer to it... So try:

  EXPRESSION ( (area([shape]) > 1000) )

Steve 

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Andrea Peri
Sent: Tuesday, January 08, 2013 3:56 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] how use the expression function "area"

Hi,

I see in the mapserver 6.2 is added the function "area" to the expressions.

So I try to use  this expression:

EXPRESSION ( (area([GEOMETRY]) > 1000) )

where geometry is the geometry field.
The datasource is a spatialite db where the geometry filed is named "GEOMETRY"

It return this errror:

msOGRLayerInitItemInfo(): OGR error: Invalid field name GEOMETRY.

Perhaps I miss to understanding the mean of area() function ?

Any info is welcome.
Thx,

-- 
-
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-
___
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 null value renders in pie chart

2013-01-03 Thread Lime, Steve D (DNR)
How about using a regex instead:

CLASSITEM 'cri'
CLASS
  EXPRESSION /./
  ...
END

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of 
steve.tout...@inspq.qc.ca
Sent: Thursday, January 03, 2013 10:57 AM
To: steve.tout...@inspq.qc.ca
Cc: mapserver-users@lists.osgeo.org; mapserver-users-boun...@lists.osgeo.org
Subject: [mapserver-users] RE null value renders in pie chart


I also tried with
EXPRESSION ([cri] != "")

I still have 4 slices...


steve.tout...@inspq.qc.ca@lists.osgeo.org
Envoyé par : 
mapserver-users-boun...@lists.osgeo.org

2013-01-03 11:43

A

mapserver-users@lists.osgeo.org

cc

Objet

[mapserver-users] null value renders in pie chart










Hi,
I created a layer that renders pie chart with 4 classes.

The problem is some classes are render in the pie even if there is no data 
(null). That means I always have 4 slices in the pie.
How can I remove the slices with null value?

I tried using EXPRESSION without success. I specified > 0 since I think "is not 
null" is not supported
CLASS
   NAME "Cri"
   EXPRESSION ([cri] > 0)
   STYLE
   SIZE [cri]
   COLOR 215 48 39
   END
END

thanks for your help,
Steve ___
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] polygon clip/cut off at edge of tile

2012-12-19 Thread Lime, Steve D (DNR)
We'd need more information about your code to help. I can't think of how this 
would be possible for just straight feature drawing. Labels are another matter.

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Ghazale Harati 
Nezhad
Sent: Wednesday, December 19, 2012 4:24 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] polygon clip/cut off at edge of tile

I got problem on generating tiles using mapscript.
the problem is that half of polygons are missing when they are biger than one 
tile, just the tile they are begin in it shows them other neighbor tiles do not.
I believe that it has a solution which I dont know.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Retrieve function values from Postgres

2012-12-13 Thread Lime, Steve D (DNR)
I believe anything you can stuff in a DATA statement using SQL is legitimate. 


From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] on behalf of Heiko Schröter 
[schro...@iup.physik.uni-bremen.de]
Sent: Tuesday, December 11, 2012 6:13 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Retrieve function  values from Postgres

Hello,

is it possible for mapserver to question a function in a postgres geo
database ?
i.e. this query string inside postgres  works:
"select * from get_aerosol_data('gas_db', 25.5, '2005-3-2 00:00',
'2006-3-5 00:00');"

If it is possible how to translate this into mapserver mapfile syntax ?

Thanks and Regards
Heiko


/mdraid/www/localhost/mapserver/mapserv -v
MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML
SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER
SUPPORTS=FASTCGI INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
___
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] Still impossible to force labels inside their polygons?

2012-12-13 Thread Lime, Steve D (DNR)
Label expressions might turn out to be useful here. Just thinking out loud... I 
mean we might be able to extend things and define expressions where you can 
write tests like the intersecting a label bbox against the parent shape. 
Expressions with multiple labels work like classes and are executed in order. 
Bigger issue is having to cache original geometries as part of the label cache.

--Steve


From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] on behalf of Brent Fraser 
[bfra...@geoanalytic.com]
Sent: Wednesday, December 12, 2012 12:49 PM
To: Mark Volz
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Still impossible to force labels inside their 
polygons?

Mark,

   Sounds ok (it took me a while to realize you meant the BBOX of the
polygons, not the label!).

 My world of sophisticated labeling would include some way of having
the mapfile specify the order of applying the rules, but currently there
is no way to do procedural things in a mapfile, just set parameters.  On
second thought, I guess the CLASS list evaluates things in a particular
order; perhaps the same technique could be used in label placement:

LABEL
 CHECKLABELFIT true  # Check BBOX of label against polygon outline
(not just BBOX of polygon)

 LOCATION# --- first label attempt (Case A,B) ---
 POSITION cc,ul,uc,ur
 END

 LOCATION# --- next label attempt (Case C) ---
  ANGLE auto
 END

 LOCATION# --- next label attempt (Case D) ---
 LEADER
 :
 END
 END
END

And I'd like to factor in preferring labeling in areas of no other
linework, but that may take some thought...

Best Regards,
Brent Fraser

On 12/12/2012 10:40 AM, Mark Volz wrote:
> Brent,
>
> In the long run when servers get faster, more layers get cached, and users 
> expect better cartography, I think that it would be worthwhile to implement a 
> way of trying multiple positions.  The CHECKLABELFIT keyword is mostly to 
> verify that a label falls inside the actual polygon as opposed to the BBOX, 
> which would help avoid ambiguity on labels.   I don't think CHECKLABELFIT 
> would be mutually exclusive to any method of trying to find different label 
> positions.
>
> In your comments you have the term "If it doesn't fit."  CHECKLABELFIT could 
> be used to specify if we consider if the label fits according to the BBOX or 
> the polygon.  For example:
>
>  A:  Calculate the default location of the label in the polygon.  If 
> CHECKLABELFIT is on: only place the label if it falls inside the polygon.  If 
> CHECKLABELFIT is off: only place the label if it fits in the BBOX
>
>  If the label could not be placed, and TRYALTERNATELABELS is on:
>  B:  Try different positions in the polygon  UL,UC,UR, etc.  If 
> CHECKLABELFIT is on: only place the label if it falls inside the polygon.  If 
> CHECKLABELFIT is off: only place the label if it fits in the BBOX
>
>  If a label still could not be placed:
>  C:  Rotate the label.  If CHECKLABELFIT is on: only place the label if 
> it falls inside the polygon.  If CHECKLABELFIT is off: only place the label 
> if it fits in the BBOX.
>
>  If a label could not be placed after rotating the label
>  D. Try using a leader line.  / Place Polygon annotation outside polygon.
>
>
> Use situations:
> CHECKLABELFIT=FALSE, TRYALTERNATELABELS=FALSE:  label the map as fast as 
> possible.
> CHECKLABELFIT=TRUE, TRYALTERNATELABELS=FALSE:  make sure labels fit in their 
> polygons, but don't worry about labeling everything.
> CHECKLABELFIT=FALSE, TRYALTERNATELABELS=TRUE:  try to label as many items as 
> possible, use the BBOX as label ambiguity is okay.
> CHECKLABELFIT=TRUE, TRYALTERNATELABELS=TRUE:  try to label as many items as 
> possible, and make sure that the labels fit inside their polygons. (slowest)
>
> Thanks
>
>
> Mark Volz
> GIS Specialist
>
>
>> -Original Message-
>> From: Brent Fraser [mailto:bfra...@geoanalytic.com]
>> Sent: Wednesday, December 12, 2012 10:01 AM
>> To: Mark Volz
>> Cc: mapserver-users@lists.osgeo.org
>> Subject: Re: [mapserver-users] Still impossible to force labels inside their
>> polygons?
>>
>> Mark,
>>
>> A simple solution sounds good as long as it can fit into a strategic 
>> plan (I
>> don't really have a plan for improving the polygon labeling, just a desire!).
>>
>>   On major releases of Mapserver I try to push the limits of its 
>> cartography
>> by comparing its output to hand-composed pdfs of Canadian Topo maps [1]
>> (not fair I know).  One of the stumbling blocks I've run into is the 
>> labeling of
>> polygons and I've speculated on the use of "rules-based" labeling.  Here's my
>> list of rules from a comment on RFC
>> 77 [2].
>>
>>   "Allow for alternate label positions.  While this is likely beyond the 
>> scope of
>> RFC 77, perhaps it could be taken into account in design and implementation
>> fo

Re: [mapserver-users] MapServer 6.2: SIZEUNITS meters - Legend OUTLINE is too big

2012-12-11 Thread Lime, Steve D (DNR)
The SIZEUNITS are applied based on a computed cellsize for a map request- there 
is a conversion from meters to pixels based on an extent/image size. Without 
that same context I don't see how the legend can possibly match the map. Can 
you pass extent and image size as part of a getLegendGraphic request?

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Astrid Emde
Sent: Tuesday, December 11, 2012 10:23 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] MapServer 6.2: SIZEUNITS meters - Legend OUTLINE is 
too big

Hello,

I am testing with 6.2 and want to define a WMS with SIZEUNITS meters. My map 
looks good but I get a very big outline around my polygons-Symbol in the legend.

This is my Layerdefinition:
LAYER
NAME 'befestigte_flaechen'
TYPE POLYGON

METADATA
WMS_TITLE 'befestigte Flaechen'
..
END

SIZEUNITS meters

CLASS
  NAME "1 Fche"
  EXPRESSION "1"
   STYLE
 WIDTH 0.1
 OUTLINECOLOR 58 255 84
 COLOR 250 0 0
   END
END
...
END

The Map looks good with this simple definition in the STYLE-Block.

But the getLegendGraphic-Request looks bad. The OUTLINE of the polygon in the 
legend is much too big.

When I add  MINWIDTH and MAXWIDTH to the STYLE the legend looks fine.
   STYLE
 WIDTH 0.1
 MINWIDTH 0.1
 MAXWIDTH 0.2
 OUTLINECOLOR 58 255 84
 COLOR 250 0 0
   END

But I thought that I do not need MINWIDTH and MAXWIDTH when SIZEUNITS meters is 
set (and no SYMBOLSCALEDENOM is set).

see also
https://github.com/mapserver/mapserver/issues/4401#issuecomment-7128252

Thanks for your help

--
Best regards

Astrid


Where2B Konferenz 2012
13. Dezember 2012 in Bonn
www.where2b-conference.com

--

 Astrid Emde
 WhereGroup GmbH & Co.KG
 Eifelstraße 7
 53119 Bonn
 Germany

 Fon: +49(0)228 90 90 38 - 19
 Fax: +49(0)228 90 90 38 - 11

 astrid.e...@wheregroup.com
 www.wheregroup.com
 Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com

Amtsgericht Bonn, HRA 6788
---
Komplementärin:
WhereGroup Verwaltungs GmbH
vertreten durch:
Olaf Knopp, Peter Stamm
---
 pgp-public key:
 http://pgp.mit.edu:11371/pks/lookup?search=0x06DA52D72D515284
  Signierte und/oder verschlüsselte Nachrichten sind sehr willkommen
  Signed and/or encrypted mail is highly appreciated


___
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 and 24bit Images

2012-12-07 Thread Lime, Steve D (DNR)
I'm assuming you're using MapServer 6.x... If so then your output format may be 
the issue. GD doesn't support 24-bit output, just 8-bit. Try deleting the 
OUTPUTFORMAT
and setting IMAGETYPE PNG24 and see if that works.

Steve

From: José Pedro Santos [mailto:zpsant...@hotmail.com]
Sent: Friday, December 07, 2012 8:36 AM
To: Lime, Steve D (DNR); mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] MapServer and 24bit Images

Hi Steve,

Thanks for the information. Basically I want only to display the layer (as WMS 
service) in the browser for testing or a real client. The layer have 3 bands 
and is a 24bit image

My MAPFILE is this one(OUTPUTFORMAT and LAYER parameters):

OUTPUTFORMAT # Parameter Outputformat
 NAME png24
 DRIVER "GD/PNG"
 MIMETYPE "image/png;mode=24bit"
 EXTENSION PNG
 IMAGEMODE RGB
END # End parameter Outputformat

LAYER # beginning of the layer parameter
 NAME "fapartest"
 TYPE RASTER
 STATUS ON
 DATA "PG:host=localhost port=5432 dbname='mydb' user='postgres' 
password='' schema='public' table='mytable' mode='2'"
 PROCESSING "NODATA=0"
 PROCESSING "SCALE=AUTO"
 PROCESSING "BANDS=1,2,3"
.

I don't have class parameter since I don't want to classify the map just 
visualize the information. Any idea?

Best Regards and thanks,

José Santos


> From: steve.l...@state.mn.us<mailto:steve.l...@state.mn.us>
> To: zpsant...@hotmail.com<mailto:zpsant...@hotmail.com>; 
> mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
> Subject: RE: [mapserver-users] MapServer and 24bit Images
> Date: Tue, 4 Dec 2012 19:26:01 +
>
> I display true-color imagery all the time. I suspect that's not what you're 
> trying to do though. You'll have to be more specific on format, perhaps post 
> a layer definition?
>
> Steve
>
> -Original Message-
> From: 
> mapserver-users-boun...@lists.osgeo.org<mailto:mapserver-users-boun...@lists.osgeo.org>
>  [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Saint
> Sent: Monday, December 03, 2012 10:06 AM
> To: mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
> Subject: [mapserver-users] MapServer and 24bit Images
>
> Dear all,
>
> I would like to have this confirmation, MapServer support 24bit image with 3 
> bands? I have one 24bit image 1 band and I can see in the browser but the 
> other with 3 bands I can't. Only appear the the outline line of the class e 
> not the image.
>
> Many thanks
> José Santos
>
>
>
> -
> José Santos
> GIS Analyst
> --
> View this message in context: 
> http://osgeo-org.1560.n6.nabble.com/MapServer-and-24bit-Images-tp5020409.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org<mailto: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] Zooming

2012-12-04 Thread Lime, Steve D (DNR)
You could write a onClick handler that takes a zoom value, sets a hidden 
variable called zoom and submits the form.

function doZoom(zoom) {
  // set value of zoom hidden variable
  // submit the form
}



  

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Arthur Delorme
Sent: Monday, December 03, 2012 8:03 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Zooming

Hello,

Is there a way to perform a zoom with  instead of  or ?

I used to do that with the following code but it's not working anymore on 
recent versions of Firefox:

 

Thank you,
Arthur
___
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 and 24bit Images

2012-12-04 Thread Lime, Steve D (DNR)
I display true-color imagery all the time. I suspect that's not what you're 
trying to do though. You'll have to be more specific on format, perhaps post a 
layer definition?

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Saint
Sent: Monday, December 03, 2012 10:06 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] MapServer and 24bit Images

Dear all, 

I would like to have this confirmation, MapServer support 24bit image with 3 
bands? I have one 24bit image 1 band and I can see in the browser but the other 
with 3 bands I can't. Only appear the the outline line of the class e not the 
image. 

Many thanks
José Santos  



-
José Santos
GIS Analyst
--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/MapServer-and-24bit-Images-tp5020409.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


Re: [mapserver-users] Problem with attribute query, multiple attributes

2012-11-29 Thread Lime, Steve D (DNR)
Honestly I don't think an index is going to help unless the attribute filter is 
being passed to OGR processing. I'm not familiar enough with that driver to 
know if that's done or not. Usually attribute queries are written a form the 
driver understands. For PostGIS that means a bit of a where clause, for 
Shapefiles it's the normal expression syntax. Again, not sure about OGR.

With large shapefiles attribute queries are inefficient, usually requiring full 
table scans. Bob's example:

  queryExp = "('[TOWN]' == '007-042') AND ('[TOWN]' == 'Acton'))";

will guarantee a full scan because the expression is invalid. The same feature 
can't have two values for TOWN.

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Fawcett, David 
(MPCA)
Sent: Thursday, November 29, 2012 9:10 AM
To: Bistrais, Bob; Jeff McKenna; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Problem with attribute query, multiple attributes

Since OGR accesses the GDB via ESRI's API/Library, it may (should) take 
advantage of attribute indexes built on the data with ArcMap.  

You should make sure that the feature classes in the GDB have attribute indexes 
on any column that you want to use as query criteria and that they have good 
spatial indexes as well.  

If you don't have access to ESRI tools, you will likely want to pre-process the 
data by dumping it from the GDB to shapefiles or PostGIS, where you can create 
all of the indexes that you need.  

David.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Bistrais, Bob
Sent: Thursday, November 29, 2012 8:45 AM
To: Jeff McKenna; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Problem with attribute query, multiple attributes

Thanks Jeff.  That link shows how to build an index on a shapefile.  Is there 
an equivalent for File GDB?  I'm looking at the GDAL document for GDB now, not 
seeing an index description.

-Original Message-
From: Jeff McKenna [mailto:jmcke...@gatewaygeomatics.com]
Sent: Wednesday, November 28, 2012 6:41 PM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Problem with attribute query, multiple attributes

On 12-11-28 5:43 PM, Bistrais, Bob wrote:
> I am trying to set up an attribute query for a large parcel dataset 
> (about 550,000 polygons).  I am having trouble with the query 
> exceeding the 30 second limit.
> 
>  
> 
> I am trying to query on the map_bk_lot and town attributes.  I can 
> query on either one separately and get results, but I need to query on 
> both at the same time.
> 
>  
> 
> Here is my query expression:
> 
> $queryExp = "('[TOWN]' == '007-042') AND ('[TOWN]' == 'Acton'))"; 
> ---Hardcoded for testing now, will eventually use variables
> 
> $pLayer->queryByAttributes("MAP_BK_LOT",$queryExp,MS_SINGLE);   
> Query statement
> 
>  
> 
> The data is in an ESRI File GDB.  I am using MS4w 3.0.4m MapServer 
> 6.0.2, MapScript 6.1 for PHP
> 
>  
> 
> One other thing worth mentioning- if I use a small subset of features 
> (such as a town), the query will work without timing out.  But I'm no 
> longer convinced that dataset size is the problem since it will query 
> on one attribute.
> 
>  
> 
> Any ideas what's going wrong here?

A tip that might come in handy someday, if not in this case, could be to create 
an "attribute index" on your vector field (see example in 
http://www.gdal.org/ogr/drv_shapefile.html); I've done this before and it's 
improved attribute queries in MapServer significantly.  You can generate one 
through an ogrinfo command with the "sql" switch.

Sorry I cannot provide exact FileGDB examples at the moment.

-jeff



--
Jeff McKenna
MapServer Consulting and Training Services http://www.gatewaygeomatics.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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] EXPRESSION error with MapServer 6.2

2012-11-29 Thread Lime, Steve D (DNR)
Hmmm... Seems like bug. There weren't any major changes to the EXPRESSION code 
but I imagine at least small modifications were made. I have access to similar 
data here, let me try a local test.

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Astrid Emde
Sent: Thursday, November 29, 2012 9:16 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] EXPRESSION error with MapServer 6.2

Hello,

I have a MapServer 6.2 question. I run MapServer 6.2 on Windows Server 2008.

I noticed a strange behaviour with the EXPRESSION definition while I am 
migrating my mapfiles to MapServer 6.0

This is my table:
CREATE TABLE ax_bauwerkoderanlagefuerindustrieundgewerbe
(
  ogc_fid serial NOT NULL,
  gml_id character(16), -- Identifikator, global eindeutig
  ...
  bauwerksfunktion integer,
  wkb_geometry geometry
  ...
);


DATA "wkb_geometry from (SELECT ogc_fid, bauwerksfunktion, wkb_geometry FROM 
ax_bauwerkoderanlagefuerindustrieundgewerbe) as foo using unique ogc_fid USING 
SRID=25832"

As bauwerksfunktion is an integer column my EXPRESSION definition was like this 
in MaServer < 6.0

EXPRESSION ([bauwerksfunktion] = 1210)
EXPRESSION ([bauwerksfunktion] = 1215 OR [bauwerksfunktion] = 1220 OR 
[bauwerksfunktion] = 1250 OR [bauwerksfunktion] = 1260)

Now with MapServer 6.2 it does not work anymore:
* instead of a map I get an Internal Server Error

My Logfile says:
[Thu Nov 29 15:03:31 2012].824000 msEvalExpression(): General error message. 
Invalid item index.

I also checked http://mapserver.org/mapfile/expressions.html

Does anyone has an idea?

--
Thanks for your help

Astrid Emde

..
FOSSGIS 2013, Die Konferenz für Open Source GIS mit OpenData und OpenStreetMap 
erstmals in der Schweiz!
12.-14. Juni, HSR, Rapperswil, http://www.fossgis.de 
..


___
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] Compatibility between mapserver versions: nquery issue

2012-11-26 Thread Lime, Steve D (DNR)
The nquery mode is still supported, that hasn't changed. The error message is 
fairly informative, what are your templates named?

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Arthur Delorme
Sent: Monday, November 26, 2012 10:38 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Compatibility between mapserver versions: nquery 
issue

Hello,

A few years ago, I developed a web interface to access data (informations and 
download) through spatial queries. It was based on mapserver 5.2.0 but I would 
like to update my code to mapserver 6.2.0 and I don't get how spatial queries 
are working nowadays.

As far as I understood, nquery mode is not supported anymore for URL templates 
(the error is "msReturnPage(): Web application error. 
Malformed template name") but I can't figure how it is supposed to work then.

On mapserver 5.2.0, a selection were made by drawing a rectangle and sending 
the query with:


Display
Selection


The result was displayed through template files, with a table containing some 
informations for each object selected on each activated layer (one line per 
object).

If someone could give me some informations about the "new" way to obtain such a 
result, it would be great, because I am quite lost.

Many thanks,

Arthur
___
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 can I avoid long notation of double values in label or info template for shapes?

2012-11-25 Thread Lime, Steve D (DNR)
For completeness in a template you can use the item tag, e.g.:

  [item name="foo" precision="2"]

There is also a commify option to make big numbers look nicer. (e.g. 2,123.23)

Steve


From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] on behalf of Astrid Emde 
[astrid.e...@wheregroup.com]
Sent: Friday, November 23, 2012 4:04 AM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] How can I avoid long notation of double values 
in label or info template for shapes?

Am 23.11.2012 10:39, schrieb Lars Lingner:
> On 23.11.2012 10:12, Astrid Emde wrote:
>> Hello,
>>
>> I have a shapefile with a column of type double that contains values
>> like 2.54 or -2.03.
>>
>> When I label the geometrie with this column or display this column in
>> my infotemplate I get the following notation of the values:
>> 2.540e+000 -2.030e+000
>>
>> If there a way to tell MapServer to display the "normal" notation of
>> the value? Or do I have to change the shape?
>>
> You can define your own format by using
>
> ...
> CLASS
>   ...
>   TEXT (round[numbercolumn], 2)
>   ...
>   LABEL
> ...
>   END
> END
> ...
>
> In RFC 64 [1] you'll find some informations.
>
> I'm pretty sure I used it for myself. But grepping through my current
> mapfiles say otherwise. So I can't give an working example.
>
>
> Lars
>
>
> [1] http://mapserver.org/development/rfc/ms-rfc-64.html
Hi Lars,

thanks for the information!

It works fine for the label.

Before I defined LABELITEM mycolumn and got  the long notation:
2.540e+000

with definition TEXT mycolumn the label looks fine (without using any
function): 2.54

Is there a solution for the query result too?

Astrid


___
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] SDE 10.x support...

2012-11-14 Thread Lime, Steve D (DNR)
Yes. I'm on a 64-bit Linux box and mapsde.c compiled fine against the 10.0 
client libs. Problem was it didn't work until I did two things:

  - Add "CFLAGS=-DSDE64" to configure call.
  - Fix most of warnings (all but one) that result in the above change (change 
long's to ms_int32), see https://github.com/mapserver/mapserver/issues/4521.

I was working against 6.0 and it looks like 6.2 will require the same changes. 
If you're on a 32-bit OS you probably don't need to change anything.

Steve


-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Alan Boudreault
Sent: Wednesday, November 14, 2012 2:31 PM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] SDE 10.x support...

Steve, I was looking to use SDE 10 too, have you been able to get it to work?

Alan

On 12-11-01 03:57 PM, Lime, Steve D (DNR) wrote:
> Hi all: Has anyone successfully used the SDE 10.x client libs with 
> MapServer 6.0+? Compiles ok but I've had no luck actually using SDE layers.
>
> Steve
>
> *StEVE LIME | *DATA & Applications MANAGER
>
> MN.IT Services @ MnDNR
>
> 651-259-5473 (w) *|*  651-297-4946 (f) *|* steve.l...@state.mn.us 
> <mailto:your.n...@state.mn.us>
>
> // <http://www.mn.gov/oet>//
>
>   
>
> Information Technology for Minnesota Government *|* mn.gov/oet 
> <http://www.mn.gov/oet>
>
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>


--
Alan Boudreault
http://www.mapgears.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


Re: [mapserver-users] [mapserver-dev] MapServer 6.2 released

2012-11-14 Thread Lime, Steve D (DNR)
And on GIS Day no less… nice timing. Fabulous work by all those that 
contributed code. A special shout out to Thomas for handling the release 
manager role. Thanks everyone!

Steve

From: mapserver-dev-boun...@lists.osgeo.org 
[mailto:mapserver-dev-boun...@lists.osgeo.org] On Behalf Of thomas bonfort
Sent: Wednesday, November 14, 2012 9:03 AM
To: MapServer Dev Mailing List; MapserverList OSGEO; osgeo-discuss 
(disc...@lists.osgeo.org)
Subject: [mapserver-dev] MapServer 6.2 released

The MapServer team is pleased to announce the release of MapServer 6.2, along 
with the joint release of tinyOWS 1.1.0 and MapCache 1.0.0.

Details of the new features, migration instructions, and download links can be 
found on the dedicated announcement page at 
http://www.mapserver.org/development/announce/6-2.html .

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


Re: [mapserver-users] Displaying multiple labels with the same lat/long

2012-11-13 Thread Lime, Steve D (DNR)
Not sure about clustering, but there may be other options as well:

You might be able to simply use POSITION AUTO and give these labels a high 
priority. MapServer will place them. If you need markers in this case you'll 
need to draw those separately to avoid marker collisions. So, one layer for 
points and the other for high-priority labels.
  
Version 6.2 supports multiple labels per feature. If you can de-normalize your 
data so you have 1 point plus multiple columns of companies (e.g. company1, 
company2, etc...) then you can use this approach. There's also leader support 
when things get really tight.

Steve



From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] on behalf of Ian Walberg 
[ian.walb...@airborne.aero]
Sent: Monday, November 12, 2012 12:11 PM
To: List (MapServer Users)
Subject: [mapserver-users] Displaying multiple labels with the same lat/long

Folks,

We have some data we need to display which has a number of companies in
the same city so the same lat/long.

So in these cases only one of the labels is displayed.

Can this be done using the cluster functionality and where do we find an
easy example?

Thanks

Ian
___
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] PHP run-time substitute CGI parameter problem

2012-11-09 Thread Lime, Steve D (DNR)
Substitution is only done via the CGI. If you're using MapScript just change 
the value directly.

Steve


From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] on behalf of akoel [ak...@freemail.hu]
Sent: Friday, November 09, 2012 6:11 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] PHP run-time substitute CGI parameter problem

I have this part of a MAP file:

/LAYER
...
  DATA .  =%selected_nid% 
---
  VALIDATION
"selected_nid"  "^[0-9]+$"
  END
...
END/

I want to substitute the "selected_nid" variable in run-time under PHP
script. (I can do it with Openlayers)
The problem is that I could not find any Layer-function for this. Somebody
has any idea what can I do?

I thought that there was an alternative for this problem. I put the variable
into the METADATA section like this:

/LAYER
...
  DATA .  =%selected_nid% 
---
  METADATA
"selected_nid*_validation_pattern*"  "^[0-9]+$"
  END
...
END/

And in the PHP script I wrote this:

/...
$selected_layer->setMetaData( "selected_nid", $selected_nid );
...
/

But it did not substituted the variable.

thanks in advance



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/PHP-run-time-substitute-CGI-parameter-problem-tp5015290.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


Re: [mapserver-users] getfeature problem

2012-11-05 Thread Lime, Steve D (DNR)
Man are the docs out-of-date in this regard. See RFC 65 for an example, see the 
Proposed Technical Changes section  (it's much simpler in 6.x)...

  http://mapserver.org/development/rfc/ms-rfc-65.html

I'll get some documentation tickets in place to address the documentation 
shortcomings.

Steve


From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Bistrais, Bob
Sent: Monday, November 05, 2012 3:28 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] getfeature problem

I am trying to work with some feature results, and am getting an error returned 
on a layer->getFeature.  I tried to research other posts about this, seems like 
there was some issues with WMS or something not quite related to where I am.  
I'm using MS4W 3.0.4 - MapServer 6.0.2 with PHP MapScript 6.1

My code:

print "results = ". $layer->getNumResults();   //Verify that we get results, 
indeed one result returned as expected

for($r = 0; $r < $layer->getNumResults(); $r++) {
$result = $layer->getResult($r);
$res = $layer->getResult(0);
$firstResult = 
$layer->getFeature($res->shapeindex);//This is the line it 
fails on
$parcelWkt = $firstResult->toWkt();



results = 1
Fatal error: Call to undefined method layerObj::getFeature() in 
C:\ms4w\apps\geoparcels\htdocs\php\selectParcelPt.php on line 280

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


Re: [mapserver-users] MapServer Layer Filter not applying to WFS

2012-11-05 Thread Lime, Steve D (DNR)
One other idea. I believe you can avoid using OGR by adding your filter to 
class expressions and setting a template (which enables queries) at the class 
level. Class expressions are always checked. If you have one class it's easy:

LAYER
 NAME Traseer
 GROUP TelMe
 TYPE LINE
 DATA "TM_Nett/TM_Traces"
 CLASS
EXPRESSION'[type]' != "Bru")
# Styling and more etc
TEMPLATE 'void'
  END
  # No template set at the layer level
END

Might consider WMS-only vs. WFS-only layer defs to simplify life if you have 
multiple classes.

Steve


From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Hawk AA
Sent: Monday, November 05, 2012 8:26 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] MapServer Layer Filter not applying to WFS

Hi there, mailing list,

We have a customer sending us data with sensitive information. The most 
convenient way for us is to receive the complete data set and applying a filter 
in the mapfile.

The layer definition looks like this:
LAYER
   NAME Traseer
   GROUP TelMe
   TYPE LINE
   DATA "TM_Nett/TM_Traces"
   FILTER('[type]' != "Bru")
   #Styling and more etc
END

This works flawlessly using PHP Mapscript and the mapserver WMS service. The 
data is not accessible. The problem occurs when querying by WFS. The Mapserver 
WFS service seems to omit the FILTER information and opens up for selecting 
items with the type "Bru", which is a serious security flaw.

I'd consider this as a bug, although I'm not certain. If anyone please can 
confirm this, or show me how to make mapserver filter data in WFS as well, I'd 
be much obliged.

Best Regards,
Håkon
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] MapServer Layer Filter not applying to WFS

2012-11-05 Thread Lime, Steve D (DNR)
This is known issue, but it's a bigger deal with shapefiles. The WFS filters 
essentially replace the defined filter, they are not additive. This is true for 
all drivers. This would need to be an enhancement, but It would be tricky to do 
so I think given the variety of filter types.

With RDBMS you'd just encode the filter in the data/connection information. The 
workaround in this case would be to use an OGR layer to access the shapefile 
instead which will allow you to apply SQL-like syntax at the driver level.  See 
http://mapserver.org/input/vector/ogr.html.

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Hawk AA
Sent: Monday, November 05, 2012 8:26 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] MapServer Layer Filter not applying to WFS

Hi there, mailing list,

We have a customer sending us data with sensitive information. The most 
convenient way for us is to receive the complete data set and applying a filter 
in the mapfile.

The layer definition looks like this:
LAYER
   NAME Traseer
   GROUP TelMe
   TYPE LINE
   DATA "TM_Nett/TM_Traces"
   FILTER('[type]' != "Bru")
   #Styling and more etc
END

This works flawlessly using PHP Mapscript and the mapserver WMS service. The 
data is not accessible. The problem occurs when querying by WFS. The Mapserver 
WFS service seems to omit the FILTER information and opens up for selecting 
items with the type "Bru", which is a serious security flaw.

I'd consider this as a bug, although I'm not certain. If anyone please can 
confirm this, or show me how to make mapserver filter data in WFS as well, I'd 
be much obliged.

Best Regards,
Håkon
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] MapCache (6.2) Backwards Compatability

2012-11-02 Thread Lime, Steve D (DNR)
Trying to test the new version of mapcache, specifically the seeder, against a 
slightly older mapcache configuration file. I'm seeing an error like:

  "metatile size is not set to a power of two, rerun with e.g -M 8,8"

It's true that the tilesets in my config file have metatile set to 5,5.  I 
don't recall why that size, probably just copied directly from example 
configs... Those values haven't cause an issue to date.

I'm wondering why the requirement (power of 2) and what the effects will be if 
I do some limited tile regeneration on an existing tileset using a different 
metatile size.

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


Re: [mapserver-users] More Labels on a layer

2012-10-30 Thread Lime, Steve D (DNR)
A feature can only match 1 class... 6.2 supports multiple labels per class 
though.

Steve


From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] on behalf of Andrea Peri 
[aperi2...@gmail.com]
Sent: Tuesday, October 30, 2012 6:20 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] More Labels on a layer

Hi,
I'm trying to have more distinct label on a single layer,.
To do this I try to set

a classgroup and three class in that group every class use a distinct label.

LAYER
...
 CLASSGROUP "aaa"
..
CLASS
 GROUP "aaa"
 LABEL
  ..
  TEXT "[FIELD1]"
  ..
 END
END
CLASS
 GROUP "aaa"
 LABEL
  ..
  TEXT "[FIELD2]"
  ..
 END
END

But seem that mapserver only apply the first class. I see only the FIELD1 label.

Perhaps mapserver allow only a label for layer ?

Thx,


--
-
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-


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


Re: [mapserver-users] Layer Query

2012-10-29 Thread Lime, Steve D (DNR)
Your syntax looks off. Below a snippet (in Perl) from RFC 65 
(http://www.mapserver.org/development/rfc/ms-rfc-65.html). It applies generally 
to all languages.

my $rect = new mapscript::rectObj(42, 512, 582000, 520);
$layer->queryByRect($map, $rect); # layer is left open after this operation

for(my $i=0; $i<$layer->getNumResults(); $i++) {
   my $shape = $layer->getShape($layer->getResult($i));
   ...
}

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Gaston Lucero
Sent: Monday, October 29, 2012 2:40 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Layer Query

Hello, I am researching and trying to use queries layers of mapserver, 
mapscript through, but not how to obtain, if possible, the result information.
I do not use wms

My java code

mapObj map = new mapObj("/home/gaston/maps/map/map.map");
layerObj layer = map.getLayerByName("Info");
//centerP es el putno
layer.queryByPoint(map,new pointObj(centerP.getX(),centerP.getY(),0), 
mapscriptConstants.MS_SINGLE, 10);
layer.open();
resultCacheObj res =layer.getResults();
for(int i=0 ;i___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Retrieve in template the coord pixel of click

2012-10-24 Thread Lime, Steve D (DNR)
You're right, duh, I should have checked first. Echoing the parameter as you 
noted is your best bet. Regarding ticket #4511, if you're adventuresome you 
could try replacing calls to msReplaceSubstring() with msCaseReplaceSubstring() 
in the for-loop around L4003 in maptemplate.c and report back.

Steve


From: Andrea Peri [aperi2...@gmail.com]
Sent: Wednesday, October 24, 2012 8:24 AM
To: Lime, Steve D (DNR)
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Retrieve in template the coord pixel of click

Thx for response.

Unfortunately it don't work.
[imgxy] don't seem be a variable for templates.


2012/10/24 Lime, Steve D (DNR) 
mailto:steve.l...@state.mn.us>>
imgxy?


From: 
mapserver-users-boun...@lists.osgeo.org<mailto:mapserver-users-boun...@lists.osgeo.org>
 
[mapserver-users-boun...@lists.osgeo.org<mailto:mapserver-users-boun...@lists.osgeo.org>]
 on behalf of Andrea Peri [aperi2...@gmail.com<mailto:aperi2...@gmail.com>]
Sent: Wednesday, October 24, 2012 3:10 AM
To: mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Subject: [mapserver-users] Retrieve in template the coord pixel of click

Hi,

I'm building a template to response to a GetFeatureInfo request.

There a variable for the value of I and J parameters (the pixel coord of click) 
.
I see the [mapx],[mapy] variables, but they return the projected coords not the 
pixel coord.

Thx,

--
-
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-




--
-
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-

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


Re: [mapserver-users] Retrieve in template the coord pixel of click

2012-10-24 Thread Lime, Steve D (DNR)
imgxy?


From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] on behalf of Andrea Peri 
[aperi2...@gmail.com]
Sent: Wednesday, October 24, 2012 3:10 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Retrieve in template the coord pixel of click

Hi,

I'm building a template to response to a GetFeatureInfo request.

There a variable for the value of I and J parameters (the pixel coord of click) 
.
I see the [mapx],[mapy] variables, but they return the projected coords not the 
pixel coord.

Thx,

--
-
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-

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


Re: [mapserver-users] 8 bit versus 24 bit output in MapServer 6.x

2012-10-23 Thread Lime, Steve D (DNR)
Have you tried pre-computing image palettes? I've had some very good luck with 
rendering 24-bit PNGs and then running them through a pre-computed palette 
(there's an output format option for this). To do this I create a couple 
representative sample images using MapServer with 24-bit PNG output. I then use 
Photoshop to mosaic them into one image and then do a color reduction (usually 
to 128 colors). Then I use GDAL to extract the palette/color table. The 
advantages are colors that are very consistent between tiles and very small 
images. The rec. compass tiles (http://www.dnr.state.mn.us/maps/compass.html) 
use this approach (via MapServer/MapCache).

Steve


From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] on behalf of Stephen Woodbridge 
[wood...@swoodbridge.com]
Sent: Tuesday, October 23, 2012 11:29 PM
To: Richard Greenwood
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] 8 bit versus 24 bit output in MapServer 6.x

On 10/23/2012 11:24 PM, Richard Greenwood wrote:
> On Tue, Oct 23, 2012 at 7:30 PM, Stephen Woodbridge
>  wrote:
>> On 10/23/2012 4:31 PM, Richard Greenwood wrote:
>>>
>>> All -
>>>
>>> I've have always used 8 bit GIFs because they are generally the
>>> smallest. I serve a rural area with flaky internet and I do a good bit
>>> with mobile, so size is more important to me than pixel-perfect.
>>> Since MapServer 6.0 I have found 8 bit output (GIF or PNG) to be much
>>> more buggy than 24 bit output. Bugs that I have been able to isolate
>>> and report have been fixed very quickly by the devs, but I'm
>>> struggling with a couple now that are sporadic and that I can not
>>> shrink down to a reproducible bug report. I see the same issues in
>>> Windows and Linux. I'm running 6.0.3 on both. So:
>>> 1. What image format are people generally using? Am I stuck in the
>>> past with 8 bit images? Should I just go with 24 bit and not worry
>>> that my images are several times larger?
>>> 2. My general sense is that the root of the issues I'm seeing are in
>>> the shift from GD to AGG. Are PC256 PNGs generated by GD or AGG?
>>> 3. Any general advise for 8 bit output? For GIF is use the default (I
>>> don't define an OUTPUTFORMAT block) for PNG I do define an
>>> OUTPUTFORMAT block and use IMAGEMODE PC256.
>>>
>>> The two issues that I'm struggling with right now are that my label
>>> colors change as I pan and zoom, and that the HATCH fill pattern
>>> extends outside of its polygons. In both cases switching from an 8 bit
>>> output to a 24 bit output resolves the issue.
>>>
>>> Thanks,
>>> Rich
>>>
>>
>> Rich,
>>
>> I use this:
>>
>>  OUTPUTFORMAT
>>  NAME "agg_qn"
>>  DRIVER "AGG/PNG"
>>  EXTENSION "png"
>>  MIMETYPE "image/png"
>>  IMAGEMODE RGB
>>  FORMATOPTION "INTERLACE=false"
>>  FORMATOPTION "QUANTIZE_NEW=ON"
>>  FORMATOPTION "QUANTIZE_FORCE=ON"
>>  FORMATOPTION "QUANTIZE_DITHER=OFF"
>>  FORMATOPTION "QUANTIZE_COLORS=256"
>>  #TRANSPARENT ON
>>  #FORMATOPTION "TRANSPARENT=ON"
>>  END
>>
>> It gives me 8-bit png and I have no problem with it. Here is an example
>> using mapserver and mapcache
>>
>> http://imaptools.com:8080/demo/tiger-tiles.html
>>
>> And here is an example using just mapserver and draw on demand:
>>
>> http://imaptools.com:8080/demo/tiger2011.html
>>
>> I think both of these are using:
>>
>> MapServer version 6.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ
>> SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI
>> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=GEOS
>> INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
>>
>> Hope this helps,
>>-Steve W
>
> Thanks Steve. That's an improvement. The image is still much larger
> than the default GIF, or PNG with IMAGEMODE PC256, but it does
> eliminate at least one of my sporadic bugs.
>
> I've attached two PNGs:
> 1. rgb-good.png is 67K and uses your suggested settings above.
> 2. pc256-bad.png is 34K and uses your settings above except changed to
> IMAGEMODE PC256. You can see that the HATCH fill is completely
> haywire.
> In both cases the output PNG is 8 bit.
>
> As always, I appreciate your insight.
> Rich
>

Ahh, just got this. I'm not sure I have anything useful to say other
than: If it hurts, don't do that! :) Seriously, if you can live with a
jpeg, you might get the results you want in a smaller size, but I have
not tried it. That said, this does look like a bug, so maybe Thomas has
something to add.

-Steve W

___
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] FW: [OSGeo-Discuss] News: NASA World Wind Selects MapServer as Engine

2012-10-17 Thread Lime, Steve D (DNR)
Cool news... Steve

-Original Message-
From: discuss-boun...@lists.osgeo.org [mailto:discuss-boun...@lists.osgeo.org] 
On Behalf Of Jeff McKenna
Sent: Wednesday, October 17, 2012 9:29 AM
To: osgeo
Subject: [OSGeo-Discuss] News: NASA World Wind Selects MapServer as Engine

(I think this press release is of interest to the OSGeo community)

--

FOR IMMEDIATE RELEASE

*NASA World Wind Server to Leverage MapServer Open Source Engine*

Moffett Field, CA. 16 October 2012

The NASA World Wind project team has selected the MapServer Open Source mapping 
engine to serve its many digital raster formats to World Wind clients.  
MapServer will serve images and raw data through the Internet by various Open 
Geospatial Consortium (OGC) standards.  Providing large amounts of spatial data 
(including world-wide coverage of digital elevation models, DEMs, and aerial 
imagery) to World Wind clients requires a high performance architecture that 
will now use the MapServer engine, caching of images, and load-balanced 
servers.  Technical expertise for MapServer will be provided by Mapgears 
(Chicoutimi, QC) and Gateway Geomatics (Lunenburg, NS). Due to MapServer 
compliance with OGC standards and World Wind Server standards, except for 
possibly the increased performance provided by MapServer, this transition will 
be entirely transparent to the World Wind user community.

"MapServer will allow the NASA World Wind a smooth transition to a mature Open 
Source engine," said Patrick Hogan, the NASA Project Manager of World Wind.

Daniel Morissette, President of Mapgears, added "We are thrilled to have this 
opportunity to work with the NASA World Wind team to help push the limits of 
the technology and to contribute with MapServer to the next generation of NASA 
World Wind Servers that will deliver the data of organizations around the world 
for years to come."


Jeff McKenna, Director of Gateway Geomatics, said "Our long-time focus on 
assisting organizations publish their spatial data through MapServer, 
especially on the Windows platform, adds a key piece of an innovative solution 
with the Mapgears team.  Together we will help to allow the World Wind 
community to visualize and analyze large amounts of data efficiently through 
MapServer."  Jeff also believes that this project will help both the MapServer 
and World Wind communities grow.

About NASA World Wind
-

NASA World Wind (http://goworldwind.org/) is a three-dimensional geographic 
information system developed by the National Aeronautics & Space Administration 
(NASA), its partners, and the Open Source community.  The World Wind client is 
an interactive 3D geographic visualization system, where Earth and other 
planets can be explored in their full 3D native context. World Wind was 
released as Open Source in August 2004, and is being extensively used by 
corporations and government agencies throughout the world.

About Mapgears
--

Members of Mapgears' (http://www.mapgears.com/) team have been active for over 
a decade in the development of the MapServer Web mapping engine and related 
open source technologies of the Open Source Geospatial Foundation (OSGeo). 
Mapgears offers professional, yet personalized services to assist application 
developers and integrators who made the choice of MapServer and other OSGeo 
technologies such as PostGIS, GDAL/OGR, OpenLayers, GeoExt and GeoPrisma.

About Gateway Geomatics
---

Gateway Geomatics (http://www.gatewaygeomatics.com/) is an innovative company 
on the East coast of Canada, assisting organizations publish their spatial 
information openly, through MapServer.  With the hugely popular MapServer for 
Windows (MS4W) suite, developed and maintained by Gateway, organizations of all 
sizes can quickly share their spatial information on their own servers.  The 
director of Gateway Geomatics, Jeff McKenna, also focuses on the user-side of 
Web mapping, and offers hands-on training with the MapServer project all around 
the world.

###


___
Discuss mailing list
disc...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/discuss


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


Re: [mapserver-users] Echo PHP in a query template?

2012-10-07 Thread Lime, Steve D (DNR)
Definitely not something done in MapServer proper. However, I thought with 
Apache you could do some process chaining/filtering. You might look at the 
various Apache modules (mod_filter is one) and see if there's anything there.

Steve


From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] on behalf of Brent Fraser 
[bfra...@geoanalytic.com]
Sent: Friday, October 05, 2012 9:15 PM
To: Bistrais, Bob
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Echo PHP in a query template?

Bob,
Not as coded.  The template file is read by mapserver, it then makes text 
substitutions (eg "[username]") , and sends the result to std out.  Then the 
web server sends it to the browser.  The web server does not do any 
interpreting of the PHP in this case.

What  did you want to do?

Best Regards,
Brent Fraser

On 10/5/2012 1:32 PM, Bistrais, Bob wrote:
I am customizing a MapServer query template.  I’d like to echo back some PHP  
code in the HTML template.  But the process seems to ignore the PHP part.  
Here’s a code example:





Your Name:




  <---Call PHP variable



-The PHP echo displays nothing

Is there a way to get this to work?

Thanks,
Bob Bistrais, GISP
Maine Office of Geographic Information Systems



___
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] Starting label from start-line

2012-09-27 Thread Lime, Steve D (DNR)
Steve, I don't think this is possible. The GEOMTRANSFORM is a style-level 
option geared towards adding arrow heads and stuff like that. It has no bearing 
on labeling. We'd need a label origin or something like that and I don't know 
of a way to do that.

One thing to try would be using the REPEATDISTANCE parameter and giving it a 
ridiculously large value (in pixels). That might place just a single label at 
the beginning of a line and no others.

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen Woodbridge
Sent: Thursday, September 27, 2012 9:37 AM
To: Andrea Peri
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Starting label from start-line

What version of mapserver are you using?
What does your LAYER ... END block look like?

On 9/27/2012 9:55 AM, Andrea Peri wrote:
> Thx for hint.
>
> I try it but seem the LABEL allow only the "labelpnt" and "labelpoly"
> options.
> The "start" option is not allowed for Labels.
>
>
> 2012/9/27 Stephen Woodbridge  >
>
> On 9/27/2012 4:16 AM, Andrea Peri wrote:
>
> Hi,
>
> try-ing to set labels,
> seem that the labels start always from centerline, and with position
> command is possible draw to left, or to right, or leave center.
> But always from centerline.
> Is possible instead say to mapserver to start the label from
> first point
> of the lines instead of centerpoint ?
>
>
> See this
> http://mapserver.org/mapfile/__symbology/construction.html#__tricks
> 
> geomtransform start/end is what you are looking for.
>
> -Steve W
> _
> mapserver-users mailing list
> mapserver-users@lists.osgeo.__org
> 
> http://lists.osgeo.org/__mailman/listinfo/mapserver-__users
> 
>
>
>
>
> --
> -
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -
>

___
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] WMS works, WFS doesn't

2012-09-26 Thread Lime, Steve D (DNR)
I though the ows_enable... metadata was a 6.x addition and you're at 5.6.5. I 
thought you needed "DUMP TRUE" in the layer definition to allow WFS feature 
export. Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] on behalf of basvmrs [b...@cipix.nl]
Sent: Wednesday, September 26, 2012 7:33 AM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] WMS works, WFS doesn't

cgi-mapserver:
  Installed: 5.6.5-2+squeeze2

Mapfile:
MAP
  NAME "WFS_server"
  STATUS ON
  SIZE 400 300
  EXTENT -180 -90 180 90
  UNITS DD
  SHAPEPATH "../data"
  IMAGECOLOR 255 255 255


  #
  # Start of web interface definition
  #
  WEB
METADATA
  "wfs_title"  "WFS Demo Server for MapServer" ## REQUIRED
  "wfs_onlineresource" "http://demo.mapserver.org/cgi-bin/wfs?"; ##
Recommended
  "wfs_srs""EPSG:4326 EPSG:4269 EPSG:3978 EPSG:3857" ##
Recommended
  "wfs_abstract"   "This text describes my WFS service." ##
Recommended
  "wfs_enable_request" "*"  # necessary
END
  END

  PROJECTION
"init=epsg:4326"
  END

  #
  # Start of layer definitions
  #

  ##
  # World Continents
  ##
  LAYER
NAME "continents"
METADATA
  "wfs_title" "World continents" ##REQUIRED
  "wfs_srs"   "EPSG:4326" ## REQUIRED
  "gml_include_items" "all" ## Optional (serves all attributes for
layer)
  "gml_featureid" "ID" ## REQUIRED
  "wfs_enable_request" "*"
END
TEMPLATE "./object.xml"
TYPE POLYGON
STATUS ON
DATA 'countries_area.shp'
PROJECTION
  "init=epsg:4326"
END
CLASS
  NAME 'World Continents'
  STYLE
COLOR 255 128 128
OUTLINECOLOR 96 96 96
  END
END
  END #layer

END #mapfile



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/WMS-works-WFS-doesn-t-tp5004603p5004617.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


Re: [mapserver-users] problem with line and percentage

2012-09-25 Thread Lime, Steve D (DNR)
What happens if you don't have an -100 percent value?

From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] on behalf of Andrea Peri 
[aperi2...@gmail.com]
Sent: Tuesday, September 25, 2012 5:31 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] problem with line and percentage

Hi,
I try to draw a line using the percentages coords.
Mapserver draw it, but when I try to zoom again it stop the response.

I guess there some bug with feature lines drawing with percentage.

This is my mapfile:

  LAYER
NAME "name"
STATUS DEFAULT
TYPE LINE
UNITS percentages
METADATA
  "wms_title" "..."
  "wms_abstract" "..."
  "wms_keywordlist" "..."
END
TRANSFORM LL
FEATURE
  POINTS
0 0
100 -100
  END
  TEXT 'blah blah'
END
CLASS
  STYLE
 WIDTH 1.0
 OUTLINECOLOR 0 164 0
 ANTIALIAS false
 OPACITY 100
  END


--
-
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-


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


Re: [mapserver-users] MODE=legendicon & GROUP Layers

2012-09-07 Thread Lime, Steve D (DNR)
Legend icon only works with layers. Groups are just too ambiguous to uniquely 
identify the class to be rendered. Groups don't have to be organized by scale 
ranges. Often they link related layers, for example  a bunch of road feature 
types. I think It would be possible to add support to see if a group name can 
resolve to a single layer based on scale but that doesn't exist in the code at 
this point.

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] on behalf of Andrew Cowie 
[cow...@landcareresearch.co.nz]
Sent: Friday, September 07, 2012 10:46 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] MODE=legendicon & GROUP Layers

Hello list

Wondering if anyone can help…

We have been utilising the legendicon mode to create a custom legend in our 
application, however some recent work to try and speed up our WMS has reworked 
our mapfiles slightly, making use of GROUP LAYERs to group almost identical 
LAYERs together, the only difference in the LAYERs being MAX & MINSCALEDENOM 
and the DATA request string to our PostGIS database – hitting a generalised 
version of the geometry at smaller scales.

LAYER
NAME 'lri_luc_main_gen_500k'
GROUP 'lri_luc_main'
DATA 'the_geom_gen_500k FROM "data"."lri" USING UNIQUE gid 
USING srid=2193'
INCLUDE 'includes/lri_luc_main_layer.inc'
MINSCALEDENOM 251001
END
LAYER
NAME 'lri_luc_main_full'
GROUP 'lri_luc_main'
DATA 'the_geom FROM "data"."lri" USING UNIQUE gid USING 
srid=2193'
INCLUDE 'includes/lri_luc_main_layer.inc'
MAXSCALEDENOM 251000
MINSCALEDENOM 15000
END

The request for the legend icon is of the form:

http:///cgi-bin/mapserv.fcgi?FORMAT=image/gif&MAP=lri.map&MODE=legendicon&ICON=lri_luc_main,1

This worked fine before we started using GROUPs, however now we now encounter 
the error:

mapserv(): Web application error. Icon layer=lri_luc_main not found in map file.

Does the legendicon mode work with GROUP layers?
If not, is there a way round this?

Or alternatively, perhaps there is a better way to request a generalised 
version of the geometry that doesn't involve GROUP LAYERs?

Any help or suggestions much appreciated.

Many thanks

Andrew


Please consider the environment before printing this email
Warning: This electronic message together with any attachments is confidential. 
If you receive it in error: (i) you must not read, use, disclose, copy or 
retain it; (ii) please contact the sender immediately by reply email and then 
delete the emails.
The views expressed in this email may not be those of Landcare Research New 
Zealand Limited. http://www.landcareresearch.co.nz

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


Re: [mapserver-users] retrieve map coordinates with different EPSG

2012-09-07 Thread Lime, Steve D (DNR)
Assuming you're sending the request in pixels, along with a map extent, 
MapServer will convert the point based on the SRS of the extent you passed. I'm 
thinking that won't get you what you want and I'm not sure of a way to do so. 
The various extent tags have projection capabilities built in but the point 
ones don't.

Steve


From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] on behalf of Fawcett, David (MPCA) 
[david.fawc...@state.mn.us]
Sent: Friday, September 07, 2012 8:36 AM
To: Andrea Peri; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] retrieve map coordinates with different EPSG

I looked at the documentation because I haven’t used in a while.  The docs 
aren’t clear, but seem to imply that MAPXY should return coordinates in the 
same spatial reference system as the layer that you are querying.

I kind of think that they should be in the spatial reference system of the map. 
 Either way, try setting the map projection to the SRS that you want to get the 
coordinates back in.  You will also have to change the extent values.

David.


http://mapserver.org/cgi/controls.html

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Andrea Peri
Sent: Friday, September 07, 2012 4:18 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] retrieve map coordinates with different EPSG

Hi,
Usign the templating capabilities of mapserver.
I need the parameters [mapx] and [mapy] will return the coordinate of a clicked 
point.

I possible in the templates set semothing to have this coordinates [mapx], 
[mapy] in a different
SRS ?
I see there is the [maplon] and [maplat] parameter.
But I need have the coords in another projected EPSG system rather than 
geographic 4326.

Thx

--
-
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Still impossible to force labels inside their polygons?

2012-09-04 Thread Lime, Steve D (DNR)
It's tough to know what I'm looking at from the picture. What does the layer 
definition look like?

At the moment polygon label point computation tries a couple of approaches get 
a label point inside the polygon: 1) compute a center of gravity 2) if that 
computation doesn't work (e.g. point is too close to the edge) then a 
scanline-based process is used to sample possible positions. The mid-point of 
the longest y sample is used.

It's always trade-off with speed and the above seems a happy medium.

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Rahkonen Jukka
Sent: Tuesday, September 04, 2012 9:48 AM
To: 'Mapserver-Users (mapserver-users@lists.osgeo.org)'
Subject: Re: [mapserver-users] Still impossible to force labels inside their 
polygons?

Hi,

Thank you for the answer. A little screenshot shows an example with two label 
points  inside one polygon and one polygon without a label point at all. 
Perhaps we could have more accurate polygon label positioning on our wish list.

-Jukka Rahkonen-


Lime, Steve D (DNR) wrote:

> Aihe: RE: [mapserver-users] Still impossible to force labels inside 
> their polygons?
> 
> Yes, still impossible. POSITION CC + MINFEATURESIZE AUTO will get you 
> close. However, MINFEATURESIZE AUTO uses bounding box checks and 
> doesn't intersect a feature geometry with its label geometry.
> 
> Steve
> 
> -Original Message-
> From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users- 
> boun...@lists.osgeo.org] On Behalf Of Rahkonen Jukka
> Sent: Tuesday, September 04, 2012 9:17 AM
> To: 'Mapserver-Users (mapserver-users@lists.osgeo.org)'
> Subject: [mapserver-users] Still impossible to force labels inside 
> their polygons?
> 
> Hi,
> 
> Is the short answer by Stephen Woodbridge "No" in the tread 
> http://osgeo- 
> org.1560.n6.nabble.com/force-labels-to-fit-in-polygons-td4549296.html
> still valid?
> 
> I have been trying to label a polygon dataset with Mapserver 6.2 beta2 
> and some labels keep on falling outside their polygons.  By the way, 
> the thread contains an advice that does not work for me:
> " By the way, PROCESSING "LABEL_NO_CLIP=ON" will fix the label point 
> at the polygon center.
> -SteveW "
> 
> Is the solution to create a new layer with point-on-surface function 
> and label then this point layer?
> 
> -Jukka Rahkonen-
> ___
> 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] Still impossible to force labels inside their polygons?

2012-09-04 Thread Lime, Steve D (DNR)
Yes, still impossible. POSITION CC + MINFEATURESIZE AUTO will get you close. 
However, MINFEATURESIZE AUTO uses bounding box checks and doesn't intersect a 
feature geometry with its label geometry.

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Rahkonen Jukka
Sent: Tuesday, September 04, 2012 9:17 AM
To: 'Mapserver-Users (mapserver-users@lists.osgeo.org)'
Subject: [mapserver-users] Still impossible to force labels inside their 
polygons?

Hi,

Is the short answer by Stephen Woodbridge "No" in the tread 
http://osgeo-org.1560.n6.nabble.com/force-labels-to-fit-in-polygons-td4549296.html
still valid?

I have been trying to label a polygon dataset with Mapserver 6.2 beta2 and some 
labels keep on falling outside their polygons.  By the way, the thread contains 
an advice that does not work for me:
" By the way, PROCESSING "LABEL_NO_CLIP=ON" will fix the label point at the 
polygon center.
-SteveW "

Is the solution to create a new layer with point-on-surface function and label 
then this point layer?

-Jukka Rahkonen-
___
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] Error compiling Mapserver 6.0.3

2012-08-27 Thread Lime, Steve D (DNR)
What version of flex do you have installed? --Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Luís de Sousa
Sent: Monday, August 27, 2012 2:26 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Error compiling Mapserver 6.0.3

Dear all,

I'm trying to compile Mapserver 6.0.3 on Ubuntu Server 10.10 LTS, but I'm 
getting a compile error on maplexer.l. I reproduce below the outputs of 
configure and make; any insight on the issue is very welcome.

Thank you,

Luís

$ ./configure --with-ogr=/usr/local/bin/gdal-config
--with-gdal=/usr/local/bin/gdal-config --with-wfsclient --with-wmsclient 
--enable-debug --with-curl-config=/usr/bincurl-config --with-proj=/usr/lib/ 
--with-tiff --with-gd=/usr/lib/ --with-jpeg --with-freetype=/usr/include/ 
--with-threads --with-wcs --with-libiconv=/usr 
--with-geos=/usr/local/bin/geos-config --with-libiconv=/usr 
--with-xml2-config=/usr/bin/xml2-config --with-sos 
--with-postgis=/usr/lib/postgresql/9.1/bin/pg_config
checking for gcc... gcc
checking for C compiler default output file name... a.out checking whether the 
C compiler works... yes checking whether we are cross compiling... no checking 
for suffix of executables... 
checking for suffix of object files... o checking whether we are using the GNU 
C compiler... yes checking whether gcc accepts -g... yes checking for gcc 
option to accept ANSI C... none needed checking for g++... g++ checking whether 
we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes 
checking for ranlib... ranlib checking for flex... no checking for lex... no 
checking for yywrap in -lfl... no checking for yywrap in -ll... no checking for 
bison... no checking for byacc... byacc checking if compiler supports -R... no 
checking if compiler supports -Wl,-rpath,... yes checking for exp in -lm... yes 
checking for __gxx_personality_v0 in -lstdc++... yes checking how to run the C 
preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header 
files... yes checking for strcasecmp... yes checking for strncasecmp... yes 
checking for strdup... yes checking for strrstr... no checking for 
strcasestr... yes checking for strlcat... no checking for strlcpy... no 
checking for vsnprintf... yes MapServer Version from mapserver.h: '6.0.3'
checking if pkg-config path is provided... checking for pkg-config...
/usr/bin/pkg-config
checking for Freetype2.x in /usr/include/... checking for FT_Init_FreeType in 
-lfreetype... yes checking for sys/types.h... yes checking for sys/stat.h... 
yes checking for stdlib.h... yes checking for string.h... yes checking for 
memory.h... yes checking for strings.h... yes checking for inttypes.h... yes 
checking for stdint.h... yes checking for unistd.h... yes checking ft2build.h 
usability... yes checking ft2build.h presence... yes checking for ft2build.h... 
yes
configure: checking where Zlib is installed...
checking for zlibVersion in -lz... yes
using libz from system libs (-DUSE_ZLIB).
configure: checking where PNG is installed...
checking for png_init_io in -lpng... yes checking png.h usability... yes 
checking png.h presence... yes checking for png.h... yes
using libpng from system libs.
checking setjmp.h usability... yes
checking setjmp.h presence... yes
checking for setjmp.h... yes
configure: checking where GIF is installed...
checking for DGifOpenFileHandle in -lgif... yes checking gif_lib.h usability... 
yes checking gif_lib.h presence... yes checking for gif_lib.h... yes
using libgif from system libs.
configure: checking whether we should include JPEG support...
checking for jpeg_read_header in -ljpeg... yes checking jpeglib.h usability... 
yes checking jpeglib.h presence... yes checking for jpeglib.h... yes
using libjpeg from system libs.
configure: checking where libXpm is installed...
checking for XpmFreeXpmImage in -lXpm... yes
using libXpm from system libs.
configure: checking where libiconv is installed...
checking for iconv_open in -lc... yes
checking for libiconv_open in -liconv... no checking for iconv_open in 
-liconv... no
using libiconv from -L/usr/lib -lc
libiconv found. Enabling internationalization (-DUSE_ICONV)
configure: checking for GD 2.0.28 or higher...
checking for gdImageCreatePaletteFromTrueColor in -lgd... yes
using libgd 2.0.28 (or higher) from -L/usr/lib/ -lgd -ljpeg  -lpng -lz 
-lXpm -lX11 checking for gdImageGif in -lc... yes checking for gdImagePng in 
-lc... yes checking for gdImageJpeg in -lc... yes checking for gdImageWBMP in 
-lc... yes checking for gdImageStringFT in -lc... yes checking for 
gdImageSetResolution in -lc... no checking for gdImageOpenPolygon in -lc... yes 
checking for gdImageGifPtr in -lc... yes checking for gdFontGetTiny in -lc... 
yes checking whether gdImageGetTrueColorPixel is declared... yes checking for 
gdImageGetTrueColorPixel in -lc... yes
using 

Re: [mapserver-users] Different image for each point

2012-08-23 Thread Lime, Steve D (DNR)
You can't do expressions as originally discussed but you can use attribute 
binding. This requires the image file name be in a single attribute. Syntax is:

  SYMBOL [FILENAME]  # no quotes

This basically creates symbols at runtime so the images are cached based on 
filename I believe.

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen Woodbridge
Sent: Thursday, August 23, 2012 2:26 PM
To: Ian Walberg
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Different image for each point

A lot of this code has been changed in 6.2, but I think the basics still work. 
I'm not sure if images are cached or not when using this method or if it 
matters in your case. I guess ideally if it were a fixed set of images then you 
want caching, but it they are all different then you probably want to turn 
caching off, but I do not think there are any controls for that. If you have 
the whole path to the image in the attribute then you do not need to use an 
expression to concatenate the path and name so it simplies to:

SYMBOL '[FILENAME]'

Also be aware that you should probably use a POINT layer and not ANNOTATION 
layers as the latter is deprecated in 6.2 so upgrading it will be easier.

-Steve W

On 8/23/2012 2:27 PM, Ian Walberg wrote:
> Stephen,
>
> This looks perfect, I need to look closer but I had thought the 
> symbols needed to be defined separately.
>
> Regards
>
> Ian
>
> -Original Message-
> From: mapserver-users-boun...@lists.osgeo.org
> [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen 
> Woodbridge
> Sent: Thursday, August 23, 2012 11:21 AM
> To: mapserver-users@lists.osgeo.org
> Subject: Re: [mapserver-users] Different image for each point
>
> On 8/23/2012 1:31 PM, Ian Walberg wrote:
>> Hello folks,
>>
>> We need to be able to display a different small image from each point 
>> in a data set, say along the lines of a thumbnail.
>>
>>   From what I can see this could be done my defining each image as a 
>> symbol and then referencing that.
>>
>> However what we would like to be able to do is get the image file 
>> name
>
>> as part of the query and display the image based on that.
>>
>> Is this possible?
>
> I have done this by creating a column with the filename in it. You can 
> then use the column as a symbol name or symbol path or as attribute 
> column in wfs to OpenLayers that can then be used to point to a 
> thumbnail directory of fullsize directory of images.
>
>
> LAYER
> NAME "images"
> TYPE POINT
> DATA "myImagePoints"
> CLASS
>   STYLE
> SYMBOL ("/path/to/thumbs/"+'[FILENAME]')
>   END
> END
> END
>
> Where column FILENAME has something like 'myimage.png' and to do this 
> you are probably limited to gif, jpg, and png images only. svg will 
> NOT work.
>
> -Steve W
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>

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


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


Re: [mapserver-users] how to add a time stamp on raster data

2012-08-21 Thread Lime, Steve D (DNR)
What version? What interface? Looking at the code, at least for 6.2+, class 
text is a candidate for substitution.

Steve


From: Peisheng Zhao [zha...@hotmail.com]
Sent: Tuesday, August 21, 2012 4:16 PM
To: Lime, Steve D (DNR); users mapserver
Subject: RE: [mapserver-users] how to add a time stamp on raster data

Steve,

Thank you for your answer. I have tried the method you suggest. But it prints 
out "%time%, not the value of time.

Peisheng


From: steve.l...@state.mn.us
To: zha...@hotmail.com; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] how to add a time stamp on raster data
Date: Tue, 21 Aug 2012 21:13:10 +

Probably, you'd do it through an annotation layer. What version are you using? 
What interface (CGI, WMS, WCS)? Basically the idea would be to funnel the time 
parameter into a TEXT expression in the annotation layer. Layer would look like 
(assuming a variable called 'time' is passed) this I think:

LAYER
  NAME 'timestamp'
  TYPE ANNOTATION
  STATUS DEFAULT
  TRANSFORM LL # lower-left corner of the
  FEATURE
POINTS 10 10 END
  END
  VALIDATION
'time' 'some expression that matches time values'
  END
  CLASS
LABEL
  ...
END
TEXT '%time%'
  END
END

This would plop the passed time in the lower left corner of the output, or at 
least I think it should.

Steve


From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] on behalf of Peisheng Zhao 
[zha...@hotmail.com]
Sent: Tuesday, August 21, 2012 3:35 PM
To: users mapserver
Subject: [mapserver-users] how to add a time stamp on raster data


Hi all,

We have a set of time-series data. Is it popossible to add a time stamp, i.e. 
the value of time parameter in the request, on raster data? Thanks.

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


Re: [mapserver-users] how to add a time stamp on raster data

2012-08-21 Thread Lime, Steve D (DNR)
Probably, you'd do it through an annotation layer. What version are you using? 
What interface (CGI, WMS, WCS)? Basically the idea would be to funnel the time 
parameter into a TEXT expression in the annotation layer. Layer would look like 
(assuming a variable called 'time' is passed) this I think:

LAYER
  NAME 'timestamp'
  TYPE ANNOTATION
  STATUS DEFAULT
  TRANSFORM LL # lower-left corner of the
  FEATURE
POINTS 10 10 END
  END
  VALIDATION
'time' 'some expression that matches time values'
  END
  CLASS
LABEL
  ...
END
TEXT '%time%'
  END
END

This would plop the passed time in the lower left corner of the output, or at 
least I think it should.

Steve


From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] on behalf of Peisheng Zhao 
[zha...@hotmail.com]
Sent: Tuesday, August 21, 2012 3:35 PM
To: users mapserver
Subject: [mapserver-users] how to add a time stamp on raster data


Hi all,

We have a set of time-series data. Is it popossible to add a time stamp, i.e. 
the value of time parameter in the request, on raster data? Thanks.

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


Re: [mapserver-users] Are WMS GetFeatureInfo results ordered by distance?

2012-08-17 Thread Lime, Steve D (DNR)
Order is determined by the order of the features in the underlying data source. 
To do what you suggest, a good idea BTW, we'd need to change things a bit:

  - need to log distance computation
  - need to develop a sort utility
  - need to alter certain query code to apply a feature count at the very end, 
after all candidates are found and a distance sort is done

Probably RFC worthy.

Steve


From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] on behalf of Rahkonen Jukka 
[jukka.rahko...@mmmtike.fi]
Sent: Friday, August 17, 2012 3:26 AM
To: 'mapserver-users@lists.osgeo.org'
Subject: [mapserver-users] Are WMS GetFeatureInfo results ordered by
distance?

Hi,

What results will be selected if GetFeatureInfo finds more features within the 
tolerance than used as FEATURE_COUNT parameter?  Are they selected by distance 
are they just the first hits?  If they were ordered by distance then 
GetFeatureInfo could be used for finding N nearest features which might be nice 
sometimes.

-Jukka Rahkonen-
___
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] clickable POI's

2012-08-14 Thread Lime, Steve D (DNR)
You can also integrate with Google Maps or any number of other free and 
commercial services (assuming the terms of service are ok). Really, there are 
loads of options but it's hard to be specific without knowing more about your 
requirements, data, etc...

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Smith, Michael 
ERDC-CRREL-NH
Sent: Tuesday, August 14, 2012 8:16 AM
To: star wiet; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] clickable POI's

Darwiet,

I would say that's the best way but there is also imagemaps. See 
http://mapserver.org/output/imagemaps.html

Personally, I'd recommend the openlayers route.

Mike

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

From: star wiet mailto:darw...@googlemail.com>>
Date: Tuesday, August 14, 2012 8:53 AM
To: "mapserver-users@lists.osgeo.org" 
mailto:mapserver-users@lists.osgeo.org>>
Subject: [mapserver-users] clickable POI's

Dear MapServer Community,

I am new to MapServer and have one general question:
Is there any possibility to create "clickable" POI's/ Symbols in MapServer 
(like e.g. the googlemaps Photos or something like that)? The only thing I 
found so far is to combine MapServer and OpenLayers, but before entering that 
field I wanted to be sure, that this would be the only way.

If anyone can give me a link/ tip where to search, I woul really appreciate it!

Thank in advance,
Darwiet, Austria
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] php mapscript querymap doesnt highlight

2012-08-14 Thread Lime, Steve D (DNR)
How are you creating the image in your code? I mean, what does the code that 
does the query and generate a query map look like?
Steve
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jessica Clarke
Sent: Tuesday, August 14, 2012 12:27 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] php mapscript querymap doesnt highlight

Hi,
I'm trying to highlight the queried shape, using mapscript.

It doesn't work if I include the querymap in the mapfile
QUERYMAP
  STATUS ON
  STYLE HILITE
 END

and it doesn't work in the php file
$map->querymap->set('style', 2);

Can someone please give me an example of how to do this?
the feature id is read from the url.

I think I'm missing something really obvious here.

Cheers,
Jess

[FT on Facebook][FT on Twitter][FT You 
Tube Channel]
Forestry creates regional employment:
http://youtu.be/UBIUGiCiX00
Growing tomorrow's high conservation value forests:
http://www.youtube.com/watch?v=wP6XCailI-A
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapserver ignores classgroup parameters for raster layers?

2012-08-10 Thread Lime, Steve D (DNR)
I believe this has been fixed in 6.2. Can you try the latest beta? --Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Helen San Segundo 
Navazo
Sent: Friday, August 10, 2012 2:42 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Mapserver ignores classgroup parameters for raster 
layers?

I'm using mapserver 6.0.2 and I've defined a raster layer with different 
classgroup styles. When I invoke the different styles only uses the first 
defined in the mapfile.
I've seen some tickets whith this problem, anybody knows how to make classgroup 
work with raster layers?
Thanks,
Helen
___
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] issue when upgrading layer from 5.x to 6.0

2012-08-07 Thread Lime, Steve D (DNR)
Nothing jumps out. Are you using INCLUDES or and external symbol file? Wonder 
if the line number is off or referencing another file.

Steve


From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] on behalf of Mark Volz 
[markv...@co.lyon.mn.us]
Sent: Tuesday, August 07, 2012 10:04 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] issue when upgrading layer from 5.x to 6.0

Hello,

I am upgrading a mapfile from Mapserver 5.x to Mapserver 6.0.  This map works 
fine in 5.x, however it crashes on the "STYLE" line.  If anyone sees anything 
wrong with this layer let me know.

LAYER
NAME 'Townships'
TYPE POLYGON
DATA './LyonCounty/Boundaries/Townships'
MINSCALEDENOM 15000
STATUS DEFAULT
TRANSPARENCY 100
CLASSITEM "COLOR"
CLASS
NAME 'Townships'
EXPRESSION 'T'
STYLE   ### THIS IS WHERE MS CRASHED DUE TO "Unknown 
identifier. Parsing error near (STYLE):(line 109)"
#SYMBOL 'hatch-test'
COLOR 170 170 170
SIZE 2
WIDTH 1
END #STYLE
END #class
END # townships layer

Thank you for your help

Mark

___
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] getShape failing; changes from mapserver 5.6 to 6.0

2012-08-06 Thread Lime, Steve D (DNR)
Yup, sorry it's Perl. The getResult($) should be getResult($i). Syntax for PHP 
should be pretty close I think, method names are the same.

Steve


From: Stefan Schwarzer [stefan.schwar...@unep.org]
Sent: Monday, August 06, 2012 6:48 AM
To: mapserver-users@lists.osgeo.org
Cc: Lime, Steve D (DNR)
Subject: Re: [mapserver-users] getShape failing;changes from mapserver 
5.6 to 6.0

Thanks a lot, Steve.

However, I had tried this out before, but "getResult($)"? I think this is Perl, 
no? In PHP this would be different?

Sorry for a dumb question…

Stefan

> The query code underwent major changes between 5.6 and 6.0 and one casualty 
> was query processing like you're doing. On the bright side it's much more 
> straight forward now. The general steps for a layer-based query is now just:
>
> $layer->queryByRect($map, $rect); # layer is left open after a query operation
>
> for($i=0; $i<$layer->getNumResults(); $i++) {
>   $shape = $layer->getShape($layer->getResult($)); # much simpler
>   # do something with the shape
> }
>
> I see the MapScript/Swig query docs are woefully out of date. I'll file a 
> ticket on that...
>
> Steve
>
> -Original Message-
> From: mapserver-users-boun...@lists.osgeo.org 
> [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stefan Schwarzer
> Sent: Friday, August 03, 2012 6:37 AM
> To: mapserver-users@lists.osgeo.org
> Subject: [mapserver-users] getShape failing; changes from mapserver 5.6 to 6.0
>
> Hi there,
>
> I am struggling with a few changes I need to go through in order to make my 
> code working now with mapserver 6.x. This one concerns the query part, when a 
> user clicks on the map and a window with some metadata is being displayed.
>
> An error message occurred:
>
>   "Catchable fatal error: Argument 1 passed to layerObj::getShape() must 
> be an instance of resultObj, integer given"
>
> When I changed the getShape command as indicated here [1], it says:
>
>   "Fatal error: Call to a member function getShape() on a non-object"
>
>
> This is the code:
>
>   //Query the Map at the point clicked
>   if (!$imgbox)
>   @$a = $map -> queryByPoint($click_pt, MS_MULTIPLE, -1);
>   else
>   $a = $map -> queryByRect($click_rt);
>
>   if ($a == MS_SUCCESS)
>   {
>
>   $numResults = $Layer -> getNumResults();
>   $oLayer = $map -> getLayer($Layer -> index);
>
>   // Open layer's table... take the list of fields to display from
>   // the "HEADERRESULT_FIELDS" metadata in the layer object.
>   $oLayer -> open();
>
>   $oRes = $oLayer -> getResult(0);
>   //$oShape = $oLayer -> 
> getShape($oRes->tileindex,$oRes->shapeindex);// before
>   $oShape = $layer -> getShape($oLayer -> getResult(0));  
> // now ??
>
>
>   while(list($key, $val) = each($oShape -> values))
>   {
>   //echo "x - ".count($selFields)." - ".$key . " = " . 
> $val;
>   if (($key <> "META_DATA") AND ($key <> "oid") AND ($key 
> <> "id") AND ($key <> "uid"))
>   $selFields[count($selFields)] = $key;
>   }
>
>
>
> Not sure what I should put there...
>
> Thanks for any hints,
>
> Stefan
>
>
> [1] http://mapserver.org/MIGRATION_GUIDE.html
> ___
> 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] Basic Templating

2012-08-03 Thread Lime, Steve D (DNR)
If you're using templates to present query results the template should be 
referenced in a layer. TEMPLATE in the web object is for mode=browse only and 
is generally not used much anymore.

What does your query URL look like? The template you pasted below doesn't look 
to contain any references to layer attributes. It looks like just a stock 
browse template.

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Sowmya Tiramdasu
Sent: Thursday, August 02, 2012 4:04 PM
To: 'Mapserver-users'
Subject: [mapserver-users] Basic Templating

Hi ,

  I am trying to implement templating taking the help of the mapserver 
tutorial. I created my own map file, which works fine. I get the output as 
desired when I use mode=map. Now I am trying to include a template for my 
example. I created a new template file 'gmapNew.html' . I added the reference 
to this template file in my map file. Yet When I am submitting a query, the 
template values are not being substituted correctly and so not getting my 
required result.
--
The snippet of my map file where I am referencing my template file.

MAP
IMAGETYPE  PNG
EXTENT-9423052.40 4582638.15  -9414491.41 
4589289.39 # extents of las file for 3875 using cs2cs
#EXTENT1525556.83 190608.70 1547770.63 207656.82 #las 
files
#EXTENT -9435462.86 4562596.42  -9387971.96 
4608897.38 # sbet lat lon to extent using cs2cs
SIZE   1020 980
SHAPEPATH  "../data"
SYMBOLSET  "../symbols/symbols35.sym"
#TRANSPARENT ON
IMAGECOLOR 0 0 0
FONTSET"../fonts/fonts.list"
PROJECTION
#"init=epsg:2246"
"init=epsg:3857"
END

WEB
TEMPLATE  "gmapNew.html"
IMAGEPATH "/ms4w/tmp/ms_tmp/"
IMAGEURL "/ms_tmp/"
METADATA
"wms_enable_request" "*"
"wms_title" "WMS Lidar Server"
"wms_onlineresource" 
"http://localhost:8080/keenland?";
"wms_srs" "espg:32617"
END
 END

.
.
END

-
My template file.


http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
http://www.w3.org/1999/xhtml";>


Google/MapServer Tile Example






































Map Controls Set your zoom option:



 Zoom in 2 
times

 Recenter Map

 Zoom out 2 
times


  

Re: [mapserver-users] Mapserver Template - Conditionals

2012-08-03 Thread Lime, Steve D (DNR)
Hi Donald: To answer your questions...

1. You can't do an AND with [item ...] tags. They are single item only. We'd 
really need to introduce true conditionals into the templates. It's done a bit 
for legend templates but I don't know how much work is necessary to extend 
that. One work around idea would be to create a compound item if using a RDMS 
data source and write patterns against that.

2. Consider filing ticket for that one. Covers item 4 too.

3. I actually had something along those lines in mind at one point. I'll have 
to check my old notes. Note that if the patterns are mutually exclusive you can 
just write:

[item name="A" pattern="1" format="Output1"][item name="B" pattern="2" 
format="Output2"][item name="C" pattern="3" format="Output3" 
nullformat="Output4"]

The default format would just be the null format for one of these. But I agree 
this has it's limits...

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Donald Kerr
Sent: Wednesday, July 25, 2012 2:25 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Mapserver Template - Conditionals

Hi List,

A few questions/points on templating:

1.
I know it's possible to use "item" in a template as follows:

[item name="featurecode" pattern="10021"
format="BuildingsBuilding" escape=none]

But, is it possible to do something like:

[item featurecode="10021" pattern="1" AND item lineitem="12345" pattern="2"
format="."]

That is, returns true of both, or more, criteria are met.

The only other way I can think of doing this is in the SQL query that runs on 
the layer.


2.
Also, when I use use [item ...] and the criteria isn't met, it still causes an 
additional blank line to be created in the output file. It would be quite good 
if it did not create the cr/lf. Maybe nullformat could be used to enforce this 
in some way but nullformat="" still creates a blank line.


3.
It would be nice if the item tag could also deal with a case/select statement 
e.g.

[item name="A" pattern="1" format="Output1"] ELSE [item name="B" pattern="2" 
format="Output2"] ELSE [item name="C" pattern="3" format="Output3"] DEFAULT 
[item name="D" pattern="4" format="Output4"]


4.
And finally, when using:

[resultset layer=LayerName]
[feature]

Two blank lines are created in the output file. It would be good if these tags 
didn't do that.


Many thanks.

Regards,

Donald

___
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] getShape failing; changes from mapserver 5.6 to 6.0

2012-08-03 Thread Lime, Steve D (DNR)
The query code underwent major changes between 5.6 and 6.0 and one casualty was 
query processing like you're doing. On the bright side it's much more straight 
forward now. The general steps for a layer-based query is now just:

$layer->queryByRect($map, $rect); # layer is left open after a query operation

for($i=0; $i<$layer->getNumResults(); $i++) {
   $shape = $layer->getShape($layer->getResult($)); # much simpler
   # do something with the shape
}

I see the MapScript/Swig query docs are woefully out of date. I'll file a 
ticket on that...

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stefan Schwarzer
Sent: Friday, August 03, 2012 6:37 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] getShape failing; changes from mapserver 5.6 to 6.0

Hi there,

I am struggling with a few changes I need to go through in order to make my 
code working now with mapserver 6.x. This one concerns the query part, when a 
user clicks on the map and a window with some metadata is being displayed.

An error message occurred:

"Catchable fatal error: Argument 1 passed to layerObj::getShape() must 
be an instance of resultObj, integer given"

When I changed the getShape command as indicated here [1], it says:

"Fatal error: Call to a member function getShape() on a non-object"


This is the code:

//Query the Map at the point clicked
if (!$imgbox)
@$a = $map -> queryByPoint($click_pt, MS_MULTIPLE, -1);
else
$a = $map -> queryByRect($click_rt);

if ($a == MS_SUCCESS)
{

$numResults = $Layer -> getNumResults();
$oLayer = $map -> getLayer($Layer -> index);

// Open layer's table... take the list of fields to display 
from 
// the "HEADERRESULT_FIELDS" metadata in the layer object.
$oLayer -> open();

$oRes = $oLayer -> getResult(0);
//$oShape = $oLayer -> 
getShape($oRes->tileindex,$oRes->shapeindex);// before
$oShape = $layer -> getShape($oLayer -> getResult(0));  
// now ??


while(list($key, $val) = each($oShape -> values))
{
//echo "x - ".count($selFields)." - ".$key . " = " . 
$val;
if (($key <> "META_DATA") AND ($key <> "oid") AND ($key 
<> "id") AND ($key <> "uid"))
$selFields[count($selFields)] = $key;
}



Not sure what I should put there...

Thanks for any hints,

Stefan


[1] http://mapserver.org/MIGRATION_GUIDE.html
___
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] changing opacity of a layer for a single client using map server

2012-08-02 Thread Lime, Steve D (DNR)
The mapfile is loaded into memory and then MapScript acts upon those 
structures. The original is unchanged.

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Sowmya Tiramdasu
Sent: Thursday, August 02, 2012 4:10 PM
To: 'Mapserver-users'
Subject: [mapserver-users] changing opacity of a layer for a single client 
using map server

Hi All,

I have a question relating to opacity of a layer. My requirement is to change 
the opacity of a layer for a particular client. I thought, I can achieve this 
using map script. But, one thing which is not clear to me is : If I change the 
opacity of a layer through the map script , will the changes get reflected back 
in to the map file and then to any other clients accessing that map file?

If I make changes to the existing map object using mapscript , will those 
changes be reflected back on to the map file? Please someone clarify me this 
point.

Thanks in advance!

-Sowmya.
___
Sowmya Tiramdasu
QCoherent Software
9668 Madison Blvd., Suite 202
Madison, AL 35758
(256) 461-8289 Telephone
(256) 461-8249 Fax
www.geocue.com

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


Re: [mapserver-users] Отв.: how to use attribute name in template with "_"

2012-08-02 Thread Lime, Steve D (DNR)
Item names are case sensitive so try [OGC_FID] or try the [item …] tag, e.g.:

  [item name=’ogc_fid’]

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of 
alexkartatem...@yahoo.com
Sent: Wednesday, August 01, 2012 6:49 AM
To: Donald Kerr; mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Отв.: how to use attribute name in template with "_"

Donald, thank you very much for your reply,

I already have the string "gml_featureid" "ogc_fid" in the map file.
Here is my template.html:
***


קבר

AttributeValue

הפניה:[ogc_fid]
שם מלא:[shem_mal]
תאריך:[tarih]
אידי:[unick_id]



***


There are 2 more fields with "_", them work good. Problem only with [ogc_fid] 
(I tryed to change register - also don't work).

here is schema of layer (spatialite myfile.sqlite -> .shema layername):
***
CREATE TABLE 'gves' (   OGC_FID INTEGER PRIMARY KEY, "GEOMETRY" POINT, 'gush' 
VARCHAR, 'halka' FLOAT, 'ms_sh' FLOAT, 'ms_sh_1' FLOAT, 'mispar' FLOAT, 'shem' 
VARCHAR, 'mishpaha' VARCHAR, 'min' VARCHAR, 'tarih' VARCHAR, 'tarih_1' VARCHAR, 
'x' FLOAT, 'y' FLOAT, 'tashlum' VARCHAR, 'ktovet' VARCHAR, 'moza' VARCHAR, 
'ptira' VARCHAR, 'knia' VARCHAR, 'shem_mal' VARCHAR, 'gusheng' VARCHAR, 
'kvarim' FLOAT, 'unick_id' VARCHAR);
***

May be OGC_FID is some sort of special field in spatialite files. As you see in 
schema it looks not as another fields. Of cource, I can create a new field and 
copy there values from OGC_FID, but I want to try to find the way without 
changing the struture of table.

Thank you for help

Best regards, Alexey


От: Donald Kerr mailto:donald.k...@dkerr.co.uk>>
Кому: alexkartatem...@yahoo.com; 
mapserver-users@lists.osgeo.org
Отправлено: среда, 1 августа 2012 10:08
Тема: RE: [mapserver-users] how to use attribute name in template with "_"

Try this line in the LAYER METADATA:

LAYER
METADATA
"gml_featureid" "ogc_fid"
END
END

Regards,

Donald


METADATA
-Original Message-
From: 
mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org]
 On Behalf Of
alexkartatem...@yahoo.com
Sent: 31 July 2012 23:42
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] how to use attribute name in template with "_"


Hello,
I use mapserver 6.0.3


I created template for getting info from (OpenLayers WMSGetFeatureInfo
method) spatilite file.
I can't get access to the field "ogc_fid" from template. I think it is
because of symbol "_" in field name.


What I can do to get [ogc_fid] value from template?


Thank you


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


[mapserver-users] FOSS4G North America 2013

2012-07-25 Thread Lime, Steve D (DNR)
May 22-24, 2013
FOSS4G North America 2013
Marriott City 
Center
Minneapolis, MN - USA

Today the 2013 FOSS4G North America Conference Committee announced that the 
2013 FOSS4G North America Conference (FOSS4G-NA) will 
take place May 22-24 at the Marriott City 
Center
 in Minneapolis, MN.  FOSS4G brings together public and private-sector 
stakeholders, innovators and developers who are at the forefront of free and 
open source software for geospatial applications.

FOSS4G-NA 2013 will offer a broad program to discuss and build tools to help 
solve some of the world's most pressing problems and business needs.   Notably, 
2013 marks the 10 year anniversary of the first MapServer Users Meeting in 
Minnesota, the immediate predecessor of the FOSS4G Conference Series.

FOSS4G-NA 2013 follows on the success of the 2012 conference held in 
Washington, DC.  This regional event complements the larger 
FOSS4G International Conference, the leading global 
conference organized by OSGeo focusing on Free and Open Source Software for 
Geospatial. The 2013 FOSS4G International Conference  
is currently scheduled for September 17-21 in 
Nottingham, UK.
Sponsorship
Exhibition and Sponsorship information will be made available shortly. If 
you're interested in exhibiting or sponsoring please email sponsors [at] 
foss4g-na [dot] org for more information.
Related Links

  *   http://foss4g-na.org/ FOSS4G North America
  *   http://foss4g.org/ FOSS4G International Conference
  *   http://osgeo.org/ Open Source Geospatial Foundation
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapserver Template - BBOX

2012-07-24 Thread Lime, Steve D (DNR)
Wonder if [rawext] will work? Worth a quick try but I doubt it. That value will 
get you the un-altered extent used
for map draws or queries but only through CGI calls.

I think what's happening is that because WFS works generally outside the CGI 
object that that some of the tracking 
variables referenced by the template code aren't being populated.

The fix is relatively easy but there are a number of ways to go about it. 
Donald, can you create a ticket so this 
can get into 6.2 (I hope)...

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Donald Kerr
Sent: Tuesday, July 24, 2012 7:26 AM
To: 'Eichner, Andreas - SID-NLKM'; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Mapserver Template - BBOX

Andreas,

Thanks, but this only works for the individual features within [resultset].
I need to get the BBOX values which is basicallly the overall bounds of the 
query. [mapext] doesn't work either as that takes the bounds from the map file 
which are much greater than the BBOX for the query.

Many thanks.

Regards,

Donald

-Original Message-
From: Eichner, Andreas - SID-NLKM [mailto:andreas.eich...@sid.sachsen.de]
Sent: 24 July 2012 12:35
To: Donald Kerr; mapserver-users@lists.osgeo.org
Subject: AW: [mapserver-users] Mapserver Template - BBOX



You might try:
 [shpminx], [shpminy], [shpmaxx], [shpmaxy]
Minimum / maximum X or Y coordinate of shape extent. Available only when
processing query results.


See http://mapserver.org/mapfile/template.html#query

HTH

> -Ursprüngliche Nachricht-
> Von: mapserver-users-boun...@lists.osgeo.org
> [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag 
> von Donald Kerr
> Gesendet: Dienstag, 24. Juli 2012 11:57
> An: mapserver-users@lists.osgeo.org
> Betreff: [mapserver-users] Mapserver Template - BBOX
> 
> Hi list,
> 
> I am trying to use BBOX in a WFS query template where I need
> to get the
> minx, miny etc in the following format:
> 
> "258481,665862 258607,665956" i.e. a space between coordinate
> pairs which
> are separated by a comma.
> 
> In the template, [bbox] returns "258481,665862,258607,665956"
> with each
> value separated by a comma.
> 
> I have tried "[bbox.minx],[bbox.miny] [bbox.maxx],[bbox.maxy]" without 
> success.
> 
> Is there a way to achieve what I am looking for?
> 
> Many thanks.
> 
> Regards,
> 
> Donald
> 
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org 
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 

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


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


Re: [mapserver-users] Can Map Server serve non WMS services?

2012-07-20 Thread Lime, Steve D (DNR)
We would have to know more about what the extensions do and how they are 
implemented to comment more in detail. There are certainly options. For 
example, you could use MapScript OWS support and develop a custom service that 
way. Another option would be to use GetFeatureInfo request paired with 
different responses (via template perhaps) to change the nature of the 
information returned.

Depending on how the extensions are implemented you might also be able to 
support the different response types using mod-rewrite or something like that.

Steve


-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Sowmya Tiramdasu
Sent: Friday, July 20, 2012 9:32 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Can Map Server serve non WMS services?

Hi, 

 We have a wms server. It also has some extensions . There are three extra 
calls( like GetProfileView etc) other than getCapabilities, GetMap and 
GetFeatureInfo calls. Can I use map server to serve up my none wms calls? Any 
help would be greatly appreciated. 

Thanks, 
Sowmya. 
___
Sowmya Tiramdasu
QCoherent Software
9668 Madison Blvd., Suite 202
Madison, AL 35758
(256) 461-8289 Telephone 
(256) 461-8249 Fax
www.geocue.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


Re: [mapserver-users] mapserver crash on wfs query, looks like issue 4166, could someone confirm ?

2012-07-17 Thread Lime, Steve D (DNR)
Just a bbox query like the ticket referenced?

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Oliver Christen
Sent: Tuesday, July 17, 2012 7:09 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] mapserver crash on wfs query, looks like issue 4166, 
could someone confirm ?

dear all

I stumbled upon a Mapserver problem, which looks like the existing bug
https://github.com/mapserver/mapserver/issues/4166
but im not exactly sure,
I would really appreciate if someone could confirm (or not) if that's what 
happening in this case.

Here is the problem description:

I have two Shapefile layers.

When I do a wfs query on both of them, Mapserver crash.
(Strangely doing a wfs query on each of them, alone, gives a normal result)

As proposed in the bug description, I replaced the DATA by CONNECTIONTYPE 
OGR/CONNECTION and the problem was solved.

This problem could be reproduced with Mapserver 6.0.0 and 6.0.3

I dont really know how to do a WFS query on mapserver using commandline with 
gdb so I only have the raw stacktrace:
http://dev.camptocamp.com/files/mapserver/raw_backtrace.txt

thanks in advance for any info
best regards
Oliver


--

Camptocamp SA

Oliver Christen

PSE A

CH-1015 Lausanne



www.camptocamp.com



+41 21 619 10 23 (direct)

+41 21 619 10 10 (centrale)

+41 21 619 10 00 (fax)
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] mapserver tickets - unable to add

2012-07-17 Thread Lime, Steve D (DNR)
Hi Mark: We've moved from trac to github. All tickets were moved too. Visit 
http://github.com/mapserver to get started.

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Mark Volz
Sent: Tuesday, July 17, 2012 9:56 AM
To: MapserverList OSGEO
Subject: [mapserver-users] mapserver tickets - unable to add

Hello,

I would like to add a ticket to http://trac.osgeo.org/mapserver/report.  I 
logged into the website using my OSGeo user id, however I did not see "New 
Ticket."   What do I need to do so I can add a ticket or comment on existing 
tickets?

Thank You

Mark Volz
GIS Specialist



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


Re: [mapserver-users] Mapserver docs and i18n

2012-07-10 Thread Lime, Steve D (DNR)
What's the status on this one? I see the pull request is still open. Not sure 
how this impacts branch-6-2 or the master...

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Yves Jacolin 
(Free)
Sent: Thursday, July 05, 2012 3:43 AM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Mapserver docs and i18n

Hello,

I am now ok with this pull request from Thomas (we discussed on Francophone 
mailing list also). 

It could improve contribution from non technical user (if a pootle 
infrastructure exists, unfortunately which add more work for sysadmin).

Y.
Le mercredi 4 juillet 2012 21:51:03 Thomas Gratier a écrit :
> Hello,
> 
> My answer are inline with bold cross *XX* just before (for 
> mail in html) Uline of inline of inline start to be difficult to read 
> ;)
> 
> Regards
> 
> ThomasG77
> 
> 2012/7/4 thomas bonfort 
> 
> > Hi Thomas,
> > 
> > I'm all for simplifying the translation workflow. I tend to dislike 
> > the current one we have setup because it is difficult for 
> > translators to keep track of what has been added/modified in the 
> > english version, resulting in outdated translated docs which in my 
> > opinion is worse than having no translation at all.
> > 
> > More inline...
> > 
> > On Tue, Jul 3, 2012 at 10:13 PM, Thomas Gratier
> > 
> >  wrote:
> > > Hello Jeff, hello all,
> > > 
> > > # First think to understand
> > > 
> > > I praise the Mapserver community and the team behind the engine.
> > > I'm a big fan of Mapserver and Sphinx and I've always love the 
> > > really
> > 
> > great
> > 
> > > documentation but I know people who deal only with there native 
> > > language
> > 
> > to
> > 
> > > do the job. So translation is a core part of a project to extend
> > 
> > popularity
> > 
> > > accross countries (althought Mapserver popularity is already
> > > established)
> > > 
> > > My motivation is to deal with the french translation with i18n and 
> > > not
> > 
> > with
> > 
> > > RST.
> > > I want to make think better, the way we do it is good but can be 
> > > improve.
> > > Why? Some thoughts to explain below
> > > 
> > > 
> > > # Advantages
> > > 
> > > 1. Fulfillment
> > > 
> > > Really important for me because a community is based on humans who 
> > > search small and big achievements and it's more easy with i18n to 
> > > measure the
> > 
> > job.
> > 
> > > Imagine one rst file of 1000 lines (around 100 lines of empty 
> > > lines or special rst declarations)
> > > 
> > > You generate is equivalent in pot file.
> > > The number of string to translate is 430
> > > 
> > > Offline:
> > > Step by step you see what you've done and can by example, see that 
> > > you've done 86 lines so, 20% of the job is done for the file.
> > > Your objective to go until 30%. When you reach it, you're happy. 
> > > You've
> > 
> > done
> > 
> > > 10% more of the file translation.
> > > 
> > > Online:
> > > See this online app based on pottle for the Qgis community. You 
> > > can see
> > 
> > the
> > 
> > > http://translate.qgis.org/fr/qgis-user-guide/ example.
> > > In this case, you can make a survey of users who contribute, you 
> > > can
> > 
> > review
> > 
> > > with others, you now if a file translation is completed. You can
> > 
> > distribute
> > 
> > > task between the community of users and not only of advanced users 
> > > / developpers.
> > > 
> > > You can have a dedicated community of translators who care about 
> > > content
> > 
> > and
> > 
> > > not about the way to use sphinx and others technical things.
> > > 
> > > 2. Separate presentation from contents
> > > 
> > > When you generate pot files, the string length is quite short. You 
> > > don't have to care too much about rst indent : you will not break 
> > > anything.
> > > If the presentation change, you content don't. I'm thinking about 
> > > the
> > 
> > annual
> > 
> > > change for FOSS4G image. You have to backport it manually with a 
> > > merge in every langage version.
> > > 
> > > 3. History and maintainability
> > > 
> > > ## The typical workflow now
> > > 
> > > You cut and paste a rst file and you make the translation. Ok it's 
> > > nice!!
> > > Why does I need to care about i18n? This guy is crazy!!
> > > 
> > > Because now imagine, you've done the translation 3 years ago (your
> > 
> > community
> > 
> > > said "do it" and it was done).
> > > 
> > > The content was in english (the letter are use to represent a 
> > > block of content in master version and number for content of 
> > > translated example)
> > > 
> > > In the past
> > > 
> > > EnglishFrench
> > > 
> > > A  111
> > > B  22
> > > C  33
> > > D  44
> > > E  55
> > > 

Re: [mapserver-users] One template for every text type

2012-07-09 Thread Lime, Steve D (DNR)
The QUERYABLE parameter was never implemented so you still must define a layer 
TEMPLATE to mark a layer as being queryable. The template need not exist so 
typically I just do:

  TEMPLATE 'void'

The link between layers and OUTPUTFORMAT templates are in the templates 
themselves via the [resultset] tag.

Steve

From: Andrea Peri [mailto:aperi2...@gmail.com]
Sent: Monday, July 09, 2012 5:15 AM
To: Lime, Steve D (DNR)
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] One template for every text type

Hi Steve,
thx for hint.

I read the doc and also the RFC 36.
I'm having also some doubt.

I try to set this output format:

  OUTPUTFORMAT
NAME "delimitazione_fogli_xml"
MIMETYPE "text/xml"
DRIVER "TEMPLATE"
FORMATOPTION "FILE=/pat-to-ex-template-on-layer-level/template_xml.tmpl"
  END

  at WEB level I set this value:
WEB
   METADATA
  "wms_feature_info_mime_type" "text/xml"
   END
END

And how explained from RFC I comment the template from layer level and try to 
add the tag
QUERYABLE TRUE
(But this option seem to be not supported from MapServer 6.2 trunk)

If I remove the template tag from layer level I have this error:

msWMSFeatureInfo(): WMS server error. Requested layer(s) are not queryable.

And if I try to add the QUERYABLE TRUE tag I have
this error:

>Unknown identifier. Parsing error near (QUERYABLE)

So I need to maintain the template ad Layer level. This force the layer to use 
the template from that tag instead of the tag from FORMATOPTION.

Also I don't understand how to link the specific format option the a specific 
layer.

Thx,

Andrea.

2012/7/6 Lime, Steve D (DNR) 
mailto:steve.l...@state.mn.us>>
Hi Andrea: You can define multiple output formats that use the template driver. 
They can each have different names and mime-types. You can even use mime 
subtypes if you needed, say, two XML formats. The MapServer CGI supports a 
parameter called qformat that allows you to change the query template to be 
used. I'm not sure how this works with WFS, probably via mime-type.

Steve

From: 
mapserver-users-boun...@lists.osgeo.org<mailto:mapserver-users-boun...@lists.osgeo.org>
 
[mailto:mapserver-users-boun...@lists.osgeo.org<mailto:mapserver-users-boun...@lists.osgeo.org>]
 On Behalf Of Andrea Peri
Sent: Tuesday, July 03, 2012 5:42 PM
To: mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Subject: [mapserver-users] One template for every text type

Hi,

As report from documentation, MapServer will allow to define a template to set 
the return from an identify.

I need to define almost two distinct kind of returns:
One for user (text/plain or text/html) and one for business application 
(text/xml).

So I like to define not only a template for return an XML but also a template 
for return an html page.

I don't know how to say to MapServer what template us for text/html and what 
for text/xml.

Is this possibile ?

Thx.

--
-
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-



--
-
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] mapserver fastcgi warnings when msQueryByPoint() Search returns no results

2012-07-09 Thread Lime, Steve D (DNR)
Not a fcgi expert, but looking at the code any error calls writeError() in 
mapserv.c which ends with exit(0). So as written the behavior you're seeing is 
expected. I don't believe there is much overhead with restarting though.

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Thomas Joseph
Sent: Thursday, July 05, 2012 5:13 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] mapserver fastcgi warnings when msQueryByPoint() 
Search returns no results

I am not sure if this is a problem or not but I was wondering if anyone else 
has experienced fastcgi warnings with every msQueryByPoint that returns no 
results ?  Everything works as expected when querying a point that returns a 
result or simply panning or zooming the map.  However, when a user clicks on 
the map and the query returns no results the fastcgi terminates the pid and 
creates a new one.  Is this normal behavior ?  I am very much a novice with 
fastcgi but it seems like this will slow things down and is counter intuitive 
to using fastcgi.  The user experience is not affected but if we could make 
things faster that would always be good.

We are using the following setup:
Ubuntu 64bit Server - 10.10
Mapserver 6.0.1
Apache/2.2.16
mod-fastcgi 2.4.6-1

Below I have included a except of the mapserver MS_ERRORFILE and the apache2 
error log:

MS_ERRORFILE
[Thu Jul  5 21:42:22 2012].92065 CGI Request 2 on process 27946

[Thu Jul  5 21:42:22 2012].231782 msQueryByPoint(): Search returned no results. 
No matching record(s) found.

[Thu Jul  5 21:42:22 2012].231829 msFreeMap(): freeing map at 0x8f983d0.


/var/log/apache2/error.log
[Thu Jul 05 21:42:22 2012] [warn] FastCGI: server 
"/usr/lib/cgi-bin/mapserv.fcgi" (pid 27946) terminated by calling exit with 
status '0'

[Thu Jul 05 21:42:22 2012] [warn] FastCGI: server 
"/usr/lib/cgi-bin/mapserv.fcgi" restarted (pid 27948)






THIS EMAIL IS CONFIDENTIAL.  Its use or disclosure by any person other than the 
addressee is unauthorised.  Anyone other than the intended recipient must not 
rely on the content of this email or any attachment to it.  The sender cannot 
guarantee that this email or any attachment to it is free of computer viruses 
or other conditions which may damage or interfere with other computer systems.


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


Re: [mapserver-users] One template for every text type

2012-07-06 Thread Lime, Steve D (DNR)
Hi Andrea: You can define multiple output formats that use the template driver. 
They can each have different names and mime-types. You can even use mime 
subtypes if you needed, say, two XML formats. The MapServer CGI supports a 
parameter called qformat that allows you to change the query template to be 
used. I'm not sure how this works with WFS, probably via mime-type.

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Andrea Peri
Sent: Tuesday, July 03, 2012 5:42 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] One template for every text type

Hi,

As report from documentation, MapServer will allow to define a template to set 
the return from an identify.

I need to define almost two distinct kind of returns:
One for user (text/plain or text/html) and one for business application 
(text/xml).

So I like to define not only a template for return an XML but also a template 
for return an html page.

I don't know how to say to MapServer what template us for text/html and what 
for text/xml.

Is this possibile ?

Thx.

--
-
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Template Questions (was How to get layer name in an identify template?)

2012-07-06 Thread Lime, Steve D (DNR)
That's not to say the references are completely current. ;-)

If you do run a across missing information or whatever it's easiest to just 
file a ticket, or drop a note to the mailing list.

To answer your other questions:


* [bbox] is not a standard template tag. However, if you set a variable 
called "bbox" in your query request then that variable is available in template 
output (HTML escaped first to prevent cross-site scripting).

* [shpext] and other feature specific tags can only be used within a 
[feature] block or in the old-style feature templates. Perhaps this can be made 
clearer in the docs.

Steve


From: Donald Kerr [mailto:donald.k...@dkerr.co.uk]
Sent: Friday, July 06, 2012 10:19 AM
To: Lime, Steve D (DNR); 'Bistrais, Bob'; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] How to get layer name in an identify template?

Thank you for the references, Steve.

I'm sure I've used "[bbox]" in a template which is not listed in the first 
link. I think I also had some issues regarding where tags like "[shpext]" can 
be used within or outwith the "[resultset layer=LayerName]" and "[feature]" 
tags. I will need to revisit the work that I was doing since I've put it on the 
back burner just now. I don't want to hi-jack this thread which is now resolved.

Regards,

Donald

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


Re: [mapserver-users] How to get layer name in an identify template?

2012-07-06 Thread Lime, Steve D (DNR)
There are two references:


1)  http://mapserver.org/mapfile/template.html has all the substitution tag 
references.

2)  http://mapserver.org/output/template_output.html documents templated 
output formats.

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Donald Kerr
Sent: Friday, July 06, 2012 9:41 AM
To: 'Bistrais, Bob'; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] How to get layer name in an identify template?

It would be handy to have a reference to all tags that are available for 
templating their limitations in terms of where they can be placed in the 
template. I've just started looking at templating for a WFS response and 
there's not a lot of out there; at least, I'm finding difficulty in gathering 
the info that I need.

Regards,

Donald
-Original Message-
From: 
mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Bistrais, Bob
Sent: 06 July 2012 15:34
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] How to get layer name in an identify template?
Thanks to Steve Lime for finding the solution:
Use the [cl] (current layer name) tag in my template.  This does the trick.  
So, my template now looks like this:



[cl]


Tile:   [tilename]


Download Image:   [LINK]


...Thanks again Steve!

From: 
mapserver-users-boun...@lists.osgeo.org
 [mapserver-users-boun...@lists.osgeo.org] on behalf of Bistrais, Bob 
[bob.bistr...@maine.gov]
Sent: Thursday, July 05, 2012 2:01 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] How to get layer name in an identify template?
I am trying to set up a single template, which will format the results of an 
identify (query by point).  Many of the layers have the same item names, so I'd 
like to use the same template for those layers.   I have this working well, 
except that I'd like the layer name to appear at the top of each query result.  
How can I put this in as a variable that MapServer can interpret?
Below is my sample code of the template.  I put [wms_title] in as the variable 
for the layer name, but this doesn't work:



[wms_title]<---I want to replace 
[wms_title] with something that will return the layer name


Tile:   [tilename]


Download Image:   [LINK]

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


Re: [mapserver-users] How to get layer name in an identify template?

2012-07-05 Thread Lime, Steve D (DNR)
What do your query strings look like? - Steve


From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] on behalf of Bistrais, Bob 
[bob.bistr...@maine.gov]
Sent: Thursday, July 05, 2012 2:01 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] How to get layer name in an identify template?

I am trying to set up a single template, which will format the results of an 
identify (query by point).  Many of the layers have the same item names, so I’d 
like to use the same template for those layers.   I have this working well, 
except that I’d like the layer name to appear at the top of each query result.  
How can I put this in as a variable that MapServer can interpret?

Below is my sample code of the template.  I put [wms_title] in as the variable 
for the layer name, but this doesn’t work:




[wms_title]<---I want to replace 
[wms_title] with something that will return the layer name


Tile:   [tilename]


Download Image:   [LINK]


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


Re: [mapserver-users] will Mapserver ever support SLD inside Mapfile?

2012-06-22 Thread Lime, Steve D (DNR)
Hi Giovanni: Inline SLD has been talked about and was on the roadmap for 6.0 I 
believe. Sadly it didn't get done for that release and out resident SLD expert  
has had precious little time to spend on the project in recent months. I think 
it's going to take a particularly motivated developer or user to make it happen 
(patches gladly accepted). Conceptually it doesn't seem that difficult. That 
is, defining an SLD block within a class or a style or should it be within a 
layer. I guess that's where the complications lie. It really depends on the SLD 
capabilities already part of MapServer. Seems to me that if you can read SLD 
from a WMS request then pulling from the mapfile proper shouldn't be difficult.

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of G. Allegri
Sent: Friday, June 22, 2012 10:53 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] will Mapserver ever support SLD inside Mapfile?

I know this is a topic asked many times, but since it's quite a long time I 
don't work extensively with MS, I would like to know if roadmaps have ever been 
discussed to implement Mapfile Styling with SLD.

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


Re: [mapserver-users] Period in a getmap with time dimension

2012-06-19 Thread Lime, Steve D (DNR)
I'm not aware of plans to handle this. It's going to take a developer or a user 
with interest and energy.

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Marc-André 
Trottier
Sent: Friday, June 15, 2012 10:49 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Period in a getmap with time dimension

period in the time format
will it be supported in near future ?

example : 1995-04-22T12:00Z/2000-06-21T12:00Z/P1D
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] show only classes in legend within current extent

2012-06-18 Thread Lime, Steve D (DNR)
Nope. It's not a very hard problem, but it's computationally expensive. My 
thought is that we'd have to add class counters to the legendObj and populate 
them during a map draw. That means for mode=legend you'd also have to draw a 
map or at least mimic it.

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Richard Greenwood
Sent: Sunday, June 17, 2012 10:49 PM
To: mapserver
Subject: [mapserver-users] show only classes in legend within current extent

I'm pretty sure the answer to my question is "No" but just in case - is it 
possible to restrict the classes show in a simple legend (CGI
mode=legend) to only those classes within the current extent?

Thanks,
Rich

--
Richard Greenwood
richard.greenw...@gmail.com
www.greenwoodmap.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


Re: [mapserver-users] Map Not Available at This Scale Image

2012-06-14 Thread Lime, Steve D (DNR)
Why not a layer with STATUS DEFAULT but a MAXSCALE value that kicks in when 
your other data runs out?

From: Donald Kerr [mailto:donald.k...@dkerr.co.uk]
Sent: Thursday, June 14, 2012 4:07 PM
To: Lime, Steve D (DNR); 'MAPSERVER USERS'
Subject: RE: [mapserver-users] Map Not Available at This Scale Image

Steve,

I don't think that any of those options will work for me. I have fifteen zoom 
levels and the map coverage is complete except for three. Those three are a 
made up of an image returned after querying PostGIS so a blank image is 
effectively created since there are no points, lines or polygons returned from 
the PostGIS query at that zoom level i.e. to all intents and purposes, a valid 
map is returned except that there's noting in it. It's these particular zoom 
levels where I am trying to display the "no coverage' message. I had thought 
that it may be possible to create a permanent layer that's always there under 
all the layers and is effectively overwritten by any drawn layers above except 
where there's no data. I'm thinking now that this may not be possible.

Many thanks.

Regards,

Donald
-Original Message-
From: Lime, Steve D (DNR) [mailto:steve.l...@state.mn.us]
Sent: 14 June 2012 21:54
To: Donald Kerr; 'MAPSERVER USERS'
Subject: RE: [mapserver-users] Map Not Available at This Scale Image
Couple of options.


1)  You can create a layer that displays that text in the middle of the map 
and have it turn on below a certain scale. If doing tiling w/meta-tiling you'd 
want draw the text the same number of times as you have meta-tiles. That would 
take some mucking about but it's doable.

2)  There's a little used parameter in the WEB section called 
MINTEMPATE/MAXTEMPLATE. MapServer will redirect to the URL specified depending 
on scale. It's been ages since I used it but in theory you could reference an 
image with the necessary text by URL.

Steve

From: 
mapserver-users-boun...@lists.osgeo.org<mailto:mapserver-users-boun...@lists.osgeo.org>
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Donald Kerr
Sent: Thursday, June 14, 2012 1:42 PM
To: 'MAPSERVER USERS'
Subject: [mapserver-users] Map Not Available at This Scale Image

Hi list,

I have a number of layers that are on or off depending on the zoom level and 
some of those layers do not have coverage in certain areas. The question is, is 
there a way to display a map image saying something along the lines of, "Map 
not available at this level"?

I think I have read somewhere that it can be done in a round about way but I 
cannot find any information after having a good internet trawl.

Many thanks.

Regards,

Donald

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


Re: [mapserver-users] Map Not Available at This Scale Image

2012-06-14 Thread Lime, Steve D (DNR)
Couple of options.


1)  You can create a layer that displays that text in the middle of the map 
and have it turn on below a certain scale. If doing tiling w/meta-tiling you'd 
want draw the text the same number of times as you have meta-tiles. That would 
take some mucking about but it's doable.

2)  There's a little used parameter in the WEB section called 
MINTEMPATE/MAXTEMPLATE. MapServer will redirect to the URL specified depending 
on scale. It's been ages since I used it but in theory you could reference an 
image with the necessary text by URL.

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Donald Kerr
Sent: Thursday, June 14, 2012 1:42 PM
To: 'MAPSERVER USERS'
Subject: [mapserver-users] Map Not Available at This Scale Image

Hi list,

I have a number of layers that are on or off depending on the zoom level and 
some of those layers do not have coverage in certain areas. The question is, is 
there a way to display a map image saying something along the lines of, "Map 
not available at this level"?

I think I have read somewhere that it can be done in a round about way but I 
cannot find any information after having a good internet trawl.

Many thanks.

Regards,

Donald

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


Re: [mapserver-users] Anaimated images as map sources

2012-06-12 Thread Lime, Steve D (DNR)
I'm not an AGG expert but that's probably not the component in play here 
anyway. Presumably whatever the source imagery it would/should be considered a 
raster dataset. I guess I'd look into how GDAL deals with animated input and 
then figure out if that can be configured through MapServer. I guess it 
wouldn't surprise me if GDAL considered individual frames as bands. Maybe 
that's the way to think about.

Steve

From: Basques, Bob (CI-StPaul)
Sent: Tuesday, June 12, 2012 4:18 PM
To: Lime, Steve D (DNR)
Subject: RE: Anaimated images as map sources

Hi Steve,

So,

What AGG functions are used in MapServer?  I just went looking for what AGG 
stood for.  Found some animation examples, but they were final constructs, not 
specifically clipping an existing animated image.

What I was going to attempt, was to to try and set up a animated image from 
NOAA as a data source for Mapserver.  They have the separate images available 
as well, which I would need to assemble after clipping into a image, Hmmm, 
maybe a layer per time index, ten hit that from the CGI through MapServer, then 
into a animated image for use in the map.  Still sounds clunky though.

bobb



From: Basques, Bob (CI-StPaul)
Sent: Tuesday, June 12, 2012 4:05 PM
To: Lime, Steve D (DNR)
Subject: RE: Anaimated images as map sources


bobb

____________
From: Lime, Steve D (DNR)
Sent: Tuesday, June 12, 2012 4:03 PM
To: Basques, Bob (CI-StPaul); 
mapserver-us...@osgeo.org<mailto:mapserver-us...@osgeo.org>
Subject: RE: Anaimated images as map sources
Not that I'm aware of.

From: 
mapserver-users-boun...@lists.osgeo.org<mailto:mapserver-users-boun...@lists.osgeo.org>
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Basques, Bob 
(CI-StPaul)
Sent: Tuesday, June 12, 2012 4:02 PM
To: mapserver-us...@osgeo.org<mailto:mapserver-us...@osgeo.org>
Subject: [mapserver-users] Anaimated images as map sources

All,

Can Mapserver slice and dice an Animated (GIF or PN or ??) map source image and 
return a resulting animated image?

I found a refernce to it NOT owrking for a WMS to WMS call where the upstream 
WMS service would produce a Animated GIF, but the downstream Mapserver WMS 
client would only see (present) the first frame of the animation.

Thanks

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


Re: [mapserver-users] Anaimated images as map sources

2012-06-12 Thread Lime, Steve D (DNR)
Not that I'm aware of.

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Basques, Bob 
(CI-StPaul)
Sent: Tuesday, June 12, 2012 4:02 PM
To: mapserver-us...@osgeo.org
Subject: [mapserver-users] Anaimated images as map sources

All,

Can Mapserver slice and dice an Animated (GIF or PN or ??) map source image and 
return a resulting animated image?

I found a refernce to it NOT owrking for a WMS to WMS call where the upstream 
WMS service would produce a Animated GIF, but the downstream Mapserver WMS 
client would only see (present) the first frame of the animation.

Thanks

bobb

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


Re: [mapserver-users] Regular expression error

2012-06-12 Thread Lime, Steve D (DNR)
Yup, damn typos...

-Original Message-
From: Puneet Kishor [mailto:punk.k...@gmail.com] 
Sent: Tuesday, June 12, 2012 10:49 AM
To: Lime, Steve D (DNR)
Cc: Richard Greenwood; mapserver
Subject: Re: [mapserver-users] Regular expression error




On Jun 12, 2012, at 10:11 AM, "Lime, Steve D (DNR)"  
wrote:

> ogc_fid'  '^[0-9]{1-5}$'

You did mean '^[0-9]{1,5}$'

Not the comma not the dash in the quantifier (a minimum of one up to a maximum 
of 5, or however many you desire, digits)

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


Re: [mapserver-users] Regular expression error

2012-06-12 Thread Lime, Steve D (DNR)
Your regex only allows for 1 character after ogc_fid. I'd rewrite as:

  '^ogc_fid=[0-9]{1,5}$'

This restricts the number a bit more, plus doesn't allow characters before or 
after. Really you could to:

   VALIDATION
 'ogc_fid'  '^[0-9]{1-5}$'
   END
   FILTER "ogc_fid=%ogc_fid%"

That's a lot cleaner.

Steve

-Original Message-
From: Richard Greenwood [mailto:richard.greenw...@gmail.com] 
Sent: Tuesday, June 12, 2012 9:35 AM
To: Lime, Steve D (DNR)
Cc: mapserver
Subject: Re: [mapserver-users] Regular expression error

If I don't have any key/value in the query string I get a whole bunch regular 
expression errors in the error log. In other words, just the presence of that 
layer in the map file is generating error. An actual value would look like
   ogr_fid=123456

Thanks,
Rich

On Tue, Jun 12, 2012 at 8:29 AM, Lime, Steve D (DNR)  
wrote:
> What value are you trying to validate?
>
> -Original Message-
> From: mapserver-users-boun...@lists.osgeo.org 
> [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Richard 
> Greenwood
> Sent: Tuesday, June 12, 2012 9:26 AM
> To: mapserver
> Subject: [mapserver-users] Regular expression error
>
> I am getting the error:
>  msValidateParameter(): Regular expression error. Parameter pattern 
> validation failed.
>
> From the following in my LAYER definition:
>  METADATA
>    'filter_validation_pattern'  'ogc_fid.'
>  END
>  FILTER "%filter%"
>
> And I just can't see what I'm doing wrong. I'd sure appreciate another set of 
> eyes...
>
> Thanks,
> Rich
>
> --
> Richard Greenwood
> richard.greenw...@gmail.com
> www.greenwoodmap.com
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>



--
Richard Greenwood
richard.greenw...@gmail.com
www.greenwoodmap.com


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


Re: [mapserver-users] Regular expression error

2012-06-12 Thread Lime, Steve D (DNR)
What value are you trying to validate?

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Richard Greenwood
Sent: Tuesday, June 12, 2012 9:26 AM
To: mapserver
Subject: [mapserver-users] Regular expression error

I am getting the error:
  msValidateParameter(): Regular expression error. Parameter pattern validation 
failed.

>From the following in my LAYER definition:
  METADATA
'filter_validation_pattern'  'ogc_fid.'
  END
  FILTER "%filter%"

And I just can't see what I'm doing wrong. I'd sure appreciate another set of 
eyes...

Thanks,
Rich

--
Richard Greenwood
richard.greenw...@gmail.com
www.greenwoodmap.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


Re: [mapserver-users] MapFile ClassItem Expression on in-line features

2012-06-11 Thread Lime, Steve D (DNR)
Issues are created via Github, see:

  https://github.com/mapserver/mapserver/issues

Steve


From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] on behalf of StevenHin 
[steven_...@golder.com]
Sent: Monday, June 11, 2012 12:32 PM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] MapFile ClassItem Expression on in-line  features

Hi Steve,

I am a newbie here, could you point some directions where I can create a
trouble ticket?

Thanks for looking into this issue.

Regards,

Steven.

--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/MapFile-ClassItem-Expression-on-in-line-features-tp4979849p4980525.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


Re: [mapserver-users] MapFile ClassItem Expression on in-line features

2012-06-11 Thread Lime, Steve D (DNR)
I can replicate the behavior locally. Seems like a bug to me... Will 
investigate. Could I trouble you to create a ticket?

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of StevenHin
Sent: Thursday, June 07, 2012 8:36 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] MapFile ClassItem Expression on in-line features

Hi,

Hoping someone can help out here...

I am trying to configure MapFile that would generate an image based on the 
attributes setting, but could not get it creates correctly. 

What I am trying to do is when the 'color' attribute value is 1 then render a 
star symbol and when is 0 then render a circle. It works when I am reading the 
data from a shapfile, but it does not when using in-line.  

Is there something I have to add here for in-line feature set?

Here is my MapFile:

MAP
  NAME "myMap"
  STATUS ON
  UNITS METERS

  SYMBOL
NAME "circle"
TYPE ELLIPSE
FILLED TRUE
POINTS
  1 1
END
  END

  SYMBOL
NAME "star"
TYPE VECTOR
FILLED TRUE
POINTS
  0 0.375
  0.35 0.375
  0.5 0
  0.65 0.375
  1 0.375
  0.75 0.625
  0.875 1
  0.5 0.75
  0.125 1
  0.25 0.625
END
  END

  LAYER
NAME "myLayer"
TYPE POINT
PROCESSING "ITEMS=layer,pid,color"
STATUS ON
#CLASSITEM "color"
FEATURE
  POINTS
 123 123
  END
  ITEMS "address;123;0"
END
FEATURE
  POINTS
125 125
  END
  ITEMS "address;125;1"
END

CLASS
  EXPRESSION ('[color]' == '1')
  STYLE
ANGLE 0
COLOR 250 0 0
OFFSET 0 0
OUTLINECOLOR 255 255 255
SIZE 10
SYMBOL "star"
  END
END
CLASS
  EXPRESSION ('[color]' == '0')
  STYLE
ANGLE 0
COLOR 0 0 250
OFFSET 0 0
OUTLINECOLOR 255 255 255
SIZE 10
SYMBOL "circle"
  END
END
  END
END

Thanks,

Steven.


--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/MapFile-ClassItem-Expression-on-in-line-features-tp4979849.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


Re: [mapserver-users] Circles around points in miles

2012-06-11 Thread Lime, Steve D (DNR)
What are the UNITs set to with "proj=ortho"?

-Original Message-
From: Ian Walberg [mailto:ian.walb...@airborne.aero] 
Sent: Friday, June 08, 2012 7:19 PM
To: mapserver-users@lists.osgeo.org
Cc: Lime, Steve D (DNR)
Subject: RE: [mapserver-users] RE: Circles around points in miles

This question from earlier in the year has finally got to the top of our to do 
list.

The issue is how to draw a circle at a given size (ideally in miles) when using 
"proj=ortho".

Everything works well when using "proj=latlong" and SIZEUNITS miles.

Is this the expected behaviour and we do not understand something or is this a 
problem?

Many thanks

Ian

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Ian Walberg
Sent: Thursday, February 16, 2012 1:57 PM
To: mapserver-users@lists.osgeo.org
Cc: Lime, Steve D (DNR)
Subject: RE: [mapserver-users] RE: Circles around points in miles

This does not work in all cases as we hoped,  or we may not  understand how to 
use the overall ma projection correctly.

All the layers have the projection set to "proj=latlong,ellps=WGS84".

However if we set the overall map projection from this to "proj=ortho"
the layer with the sizeunits set disappears.

Is this an issue related to the projection or that the map units are now 
different.

If we remove the sizeunits from the layer with the circles they reappear but of 
course are not the correct size (in miles).

Many thanks

Ian

-Original Message-
From: Ian Walberg
Sent: Wednesday, February 15, 2012 11:40 AM
To: Stephen Woodbridge; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] RE: Circles around points in miles

Stephen,

That appears to do the trick.

Many thanks

Ian

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen Woodbridge
Sent: Wednesday, February 15, 2012 10:36 AM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] RE: Circles around points in miles

On 2/15/2012 1:23 PM, Ian Walberg wrote:
> Steve,
>
> Thanks again for the info so far.
>
> Testing this today we realise (not surprisingly) that both the size 
> and width of the symbol are now in miles.
>
> Ideally we would like to set the radius of the circle in miles and the

> width in pixels.
>
> Is there any way of doing this?

Yes, add minwidth 1 and maxwidth 1 to force the width to 1 pixel.

-Steve W

> Regards
>
> Ian
>
> -Original Message-
> From: Lime, Steve D (DNR) [mailto:steve.l...@state.mn.us]
> Sent: Monday, February 13, 2012 2:57 PM
> To: Ian Walberg; mapserver-users@lists.osgeo.org
> Subject: RE: Circles around points in miles
>
> I jumped the gun on the geomtransform idea. The support is there but 
> because it operates at the style level buffer distances must be given 
> in pixels and there's no easy way to convert a map distance (e.g. 10
> miles) to pixels. I really should make some runtime constants (for 
> example, extent, scale and cellsize) available to expressions- then 
> you could do this.
>
> Glad you picked option 2 to start.
>
> Steve
>
> -Original Message-
> From: Ian Walberg [mailto:ian.walb...@airborne.aero]
> Sent: Monday, February 13, 2012 4:38 PM
> To: Lime, Steve D (DNR); mapserver-users@lists.osgeo.org
> Subject: RE: Circles around points in miles
>
> Steve,
>
> Many thanks for the help and we have just tested option 2 and that 
> works.
>
> We are using 6.x but are not exactly sure how to use the geomtransform

> to do this. Do you have  an example?
>
> Regards
>
> Ian
>
> -Original Message-
> From: Lime, Steve D (DNR) [mailto:steve.l...@state.mn.us]
> Sent: Monday, February 13, 2012 9:37 AM
> To: Ian Walberg; mapserver-users@lists.osgeo.org
> Subject: RE: Circles around points in miles
>
> Couple of options depending on version:
>
>1) 6.x: buffer the points using a style geomtransform
>2) all versions: use layer SIZEUNITS to draw a circle symbol in 
> miles
>
> I think option 1 is more flexible but option 2 is probably faster.
>
> Steve
>
> -Original Message-
> From: mapserver-users-boun...@lists.osgeo.org
> [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Ian 
> Walberg
> Sent: Saturday, February 11, 2012 10:06 PM
> To: mapserver-users@lists.osgeo.org
> Subject: [mapserver-users] Circles around points in miles
>
>
> We need to draw circles of 50 and 100 miles around a list of points.
>
> How can we do this?
>
> Thanks
>
> Ian
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osge

Re: [mapserver-users] Mapserver/PostGIS Faster Initial Load Time

2012-06-08 Thread Lime, Steve D (DNR)
I've noticed latency the first time mapserv is executed, presumably as a result 
of loading into memory and dynamic linking. Once the OS caches everything it's 
nice and snappy. I tend to see that only on my development versions though 
because on our production boxes the executables are hit often enough that they 
are always in memory. Unless access is very infrequent I'd think latency due to 
loading a binary would be rare. 

I suppose you could simulate traffic on the server-side to make sure everything 
is memory resident. That is, make a small request every 5 minutes or whatever 
using cron or the Windows equivalent.

I'm not experienced enough with PostGIS to know if there's any tuning to do 
there. Maybe others have ideas.

Steve


From: Donald Kerr [donald.k...@dkerr.co.uk]
Sent: Friday, June 08, 2012 9:16 AM
To: Lime, Steve D (DNR); 'mapserver-users'
Subject: RE: [mapserver-users] Mapserver/PostGIS Faster Initial Load Time

Steve,

It's not a scientific measurement. For this particular example, the whole
setup (server and client) is on a XP SP3 machine with 4 Gb memory. From the
point when the mapping page is requested, the time taken to start seeing
tiles returned is about 15 seconds. After that initial time, the images come
in thick and fast. I'm pretty sure that it's the first load of mapserv.exe
and, if the requested layer is via postgis, the first load of postgis. I'm
trying to think of ways to speed up that initial load like, as I said in the
last post, requesting a map tile on the fly (and hidden) so that mapserv.exe
has been run once and is in memory ready for the next, or first 'real',
request. It's probably the only downside to a system that I've got running
like a little sweetie just now.

It's basically a classic asp website running on IIS but I can switch between
IIS and Apache for the mapping WMS/WFS. Both are quite fast and both run
FastCGI though Apache seems a little more stable when a lot of tiles are
requested with a lot of fast map drags; sometimes IIS gives up on individual
request. Whether IIS or Apache, there's still this initial load delay of
about 15 seconds. This may be something that I have to live with but I'm
trying to improve that initial load if possible.

To go back to your original question, my guess is that the load time is a
server issue rather than a client problem though I may be wrong.

Regards,

Donald

-Original Message-
From: Lime, Steve D (DNR) [mailto:steve.l...@state.mn.us]
Sent: 08 June 2012 15:03
To: Donald Kerr; 'mapserver-users'
Subject: RE: [mapserver-users] Mapserver/PostGIS Faster Initial Load Time


Where/how are you measuring times (server/client)?


From: mapserver-users-boun...@lists.osgeo.org
[mapserver-users-boun...@lists.osgeo.org] on behalf of Donald Kerr
[donald.k...@dkerr.co.uk]
Sent: Wednesday, June 06, 2012 2:35 PM
To: 'mapserver-users'
Subject: [mapserver-users] Mapserver/PostGIS Faster Initial Load Time

Basically my mapping setup is, from client to server, Openlayers WMS/WFS
(Internet Explorer on XP Pro SP3) - Mapserver CGI - Shapefile (Tiffs) or
PostGIS (XP Pro SP3 - IIS & FastCGI).

>From boot up, the initial, or first load of maps, takes up to 15 seconds.
After that, it flies along fine.

I've tried pre-loading in a hidden browser instance but that didn't work. I
cannot get that initial load time down at all.

Any tips to reduce the time taken for the first load of the software:
Specifically Mapserver whether it's creating the map from PostGIS or the
shapefile (Tiffs).

Many thanks.

Regards,

Donald

___
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/PostGIS Faster Initial Load Time

2012-06-08 Thread Lime, Steve D (DNR)
Where/how are you measuring times (server/client)?


From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] on behalf of Donald Kerr 
[donald.k...@dkerr.co.uk]
Sent: Wednesday, June 06, 2012 2:35 PM
To: 'mapserver-users'
Subject: [mapserver-users] Mapserver/PostGIS Faster Initial Load Time

Basically my mapping setup is, from client to server, Openlayers WMS/WFS
(Internet Explorer on XP Pro SP3) - Mapserver CGI - Shapefile (Tiffs) or
PostGIS (XP Pro SP3 - IIS & FastCGI).

>From boot up, the initial, or first load of maps, takes up to 15 seconds.
After that, it flies along fine.

I've tried pre-loading in a hidden browser instance but that didn't work. I
cannot get that initial load time down at all.

Any tips to reduce the time taken for the first load of the software:
Specifically Mapserver whether it's creating the map from PostGIS or the
shapefile (Tiffs).

Many thanks.

Regards,

Donald

___
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] 6.0.2 International Dateline Layer with HATCHED Symbol Causes Hanging Processes

2012-06-08 Thread Lime, Steve D (DNR)
I agree, please create a ticket along with a simple test case. -Steve


From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] on behalf of AngeloH 
[angelo.harps...@gmail.com]
Sent: Thursday, June 07, 2012 7:04 PM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] 6.0.2 International Dateline Layer with HATCHED 
Symbol Causes Hanging Processes

All my CPUs are at 100% now and not moving. This is a slowdown...wondering
how long they will stay there. The layer I'm rendering is tiny.

On second thought, you or I should report this as a bug. What do you think
gregcorradini?

--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/6-0-2-International-Dateline-Layer-with-HATCHED-Symbol-Causes-Hanging-Processes-tp4979026p4979844.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


Re: [mapserver-users] MapServer with Geodatabases

2012-06-06 Thread Lime, Steve D (DNR)
I've used MapServer via/OGR with the newish File GeoDatabase format and it does 
work. It's just markedly slower than using straight shapefiles and/or PostGIS.

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Bistrais, Bob
Sent: Wednesday, June 06, 2012 4:47 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] MapServer with Geodatabases

This is a "just wondering" question-  Has anyone used MapServer with ESRI 
Geodatabases as a data source?  In particular, I was wondering about file 
geodatabases?  Honestly, I don't have plans to do this myself, but I am 
preparing a presentation on Open Source web mapping, and I'm sure this question 
will come up.

So, if anyone has used a GDB with MapServer, I'd appreciated any feedback, good 
or bad, describing your experiences.

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


Re: [mapserver-users] Scripted geoprocessing

2012-06-05 Thread Lime, Steve D (DNR)
Hi Sam: MapScript does have GEOS functions built into it so you might be able 
to use just those. I remember doing something along these line using Perl 
MapScript. I don't have the script handy but I think I used a hash of shapes 
based on the attribute value in question. For each shape you simple add all the 
parts to the right hash element. Could either use the Union operator or just 
add the parts. Then once you have processed every feature in the shapefile(s) 
you do a buffer(0) on each of the hash elements with I think effectively does a 
dissolve. Of course you need to save the dissolved shape someplace too. In Perl 
this is not a very long script: a loop to build the hash of shapes and another 
loop to process the hash.

Steve 

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Sam Skinner
Sent: Friday, June 01, 2012 6:34 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Scripted geoprocessing

Hi all,
I am writing a python script that will (weekly) download and extract data 
(shapefiles) from an organization without a WMS or WFS. This script will reside 
on my linux-based mapserver (5.6). I am looking for a way for this script to 
dissolve polygons with a common attribute. This will help rendering speed and 
ease of visualization. Any ideas on how I could do this? From what I understand 
(which isn't much!), I could import the data into PostGIS, then run some query 
there. Is there a simpler way? Is anyone familiar with Sextante, and would that 
work?

Thanks!

--
Sam Skinner (Mapserver admin and newbie) Yukon Land Use Planning Council


___
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] GetStyles SLD does not include Opacity value

2012-06-05 Thread Lime, Steve D (DNR)
Hi Joanne: What happens if you move the opacity into the class style?

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of myOpenLayersUName
Sent: Tuesday, June 05, 2012 9:32 AM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] GetStyles SLD does not include Opacity value

"Are we missing a few things like the response and the mapfile snippet? Also 
are you talking layer opacity or style opacity?"

I guess the email-er that sent around the post didn't include anything within 
the "raw" tags. Here's the full text again (without the tags):

I have a Map file with a polygon layer that has an OPACITY value of 20 defined 
as:

  LAYER
   NAME "Poly_wOpacity"
   TYPE POLYGON
   OPACITY 20
   STATUS ON
   PROJECTION
 "init=epsg:3857"
   END
   INCLUDE "../../../mapserv/conf/sdeconnection.inc.map"
   DATA "...,SHAPE,SDE.DEFAULT"
   METADATA
 "wms_title" "Polygon Layer w/Opacity of 20"
 "wms_srs"   "epsg:3857"
   END
   CLASS
 NAME "Polygon Layer w/Opacity of 20"
 STYLE
   COLOR 255 0 0
 END
   END
  END

I see a correctly opaque display when I do a GetMap or a GetLegendGraphic, so I 
know the OPACITY value is set properly. However, when I perform a GetStyles 
request, the returned SLD doesn't include anything about the opacity. The 
response is:

  

Poly_wOpacity



Polygon Layer w/Opacity of 20


#ff






  

Am I wrong to expect to see a "fill-opacity" CssParameter for this layer? I am 
using Mapserver 6.0.1 and, since it might have some bearing of this question, 
the OUTPUTFORMAT for the map is defined as follows:
  
OUTPUTFORMAT
  NAME png32
  DRIVER "AGG/PNG"
  MIMETYPE "image/png"
  IMAGEMODE RGBA
  EXTENSION png
  FORMATOPTION "INTERLACE=OFF"
  TRANSPARENT ON
END

If there is some pointers someone can offer to get this information returned 
properly, I'd appreciate it.

Cheers,
jtm 


--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/GetStyles-SLD-does-not-include-Opacity-value-tp4979066p4979230.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


Re: [mapserver-users] AGG: Internal vs. External

2012-06-05 Thread Lime, Steve D (DNR)
MapServer ships with AGG and it's built by default. I believe in 6.0 the "PNG" 
output format references GD. If you want to use AGG try "PNG24" instead or roll 
your own OUTPUTFORMAT block.

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Alberto Najera
Sent: Tuesday, June 05, 2012 9:23 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] AGG: Internal vs. External

Hello

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

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


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

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


The map file has this image rendering setting:

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


Thanks in advance
 

Alberto Najera

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


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


Re: [mapserver-users] GetStyles SLD does not include Opacity value

2012-06-04 Thread Lime, Steve D (DNR)
Are we missing a few things like the response and the mapfile snippet? Also are 
you talking layer opacity or style opacity?

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of myOpenLayersUName
Sent: Monday, June 04, 2012 2:35 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] GetStyles SLD does not include Opacity value

Hello everyone,

I have a Map file with a polygon layer that has an OPACITY value of 20 defined 
as:

I see a correctly opaque display when I do a GetMap or a GetLegendGraphic, so I 
know the OPACITY value is set properly. However, when I perform a GetStyles 
request, the returned SLD doesn't include anything about the opacity. The 
response is:

Am I wrong to expect to see a "fill-opacity" CssParameter for this layer? I am 
using Mapserver 6.0.1 and, since it might have some bearing of this question, 
the OUTPUTFORMAT for the map is defined as follows:

If there is some pointers someone can offer to get this information returned 
properly, I'd appreciate it.

Cheers,
jtm

--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/GetStyles-SLD-does-not-include-Opacity-value-tp4979066.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


Re: [mapserver-users] Shift of half a pixel

2012-06-04 Thread Lime, Steve D (DNR)
What version are you talking about? How do you know there is a shift? That is, 
what is your reference? Is it possible there's a difference in the bounding box 
model? For WMS the bbox represents the outside dimensions of the pixels in an 
image.

Steve

Note: MapServer uses a pixel center bbox model but that difference (with WMS's 
representation) is taken into account in the WMS code.

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Fritz van Deventer
Sent: Monday, June 04, 2012 9:27 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Shift of half a pixel

Hi all,

We are trying to get VHR satellite imagery to run as a WMS in different GIS 
clients. When we compare the original image (we tried different formats, tif, 
ecw, virtual formats etc.) to the hosted image we see a shift in the pixels. 
Looks like a minor warp or transform.

We are unable to find what is causing this error. We tried using different 
output drivers, and different output and input formats. It looks like serving 
with GDAL as output format and Imagemode on FLOAT32 gives the best result, 
however in black and white.

If this is a known issue, is anyone able to tell me the (in)accuracy of the 
shift? Or is it not supposed to happen altogether?

Regards,

Fritz van Deventer - http://neo.nl

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


Re: [mapserver-users] multiple query layers

2012-06-04 Thread Lime, Steve D (DNR)
If you're not using queryable layers with "STATUS DEFAULT" then you can just 
use the normal layer or layers parameter. Of course the workaround mentioned in 
the referenced ticket is still valid.
Steve
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jessica Clarke
Sent: Thursday, May 31, 2012 11:23 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] multiple query layers

Hi,
I found this (uber old) ticket in issue tracker
http://trac.osgeo.org/mapserver/ticket/45

This is basically what I want to do - but as far as I can tell it wasn't 
implemented?
Does anyone know anything about querying multiple layers using the url?

Jess


-

This transmission is intended solely for the person or organisation to whom it 
is addressed.

It is confidential and may contain legally privileged information.

If you have received this transmission in error, you may not use, copy or 
distribute it.

Please advise us by return e-mail or by phoning 61 3 6235 8333 and immediately 
delete the transmission in its entirety.

We will meet your reasonable expenses of notifying us.

Despite our use of anti-virus software, Forestry Tasmania cannot guarantee that 
this transmission is virus-free.


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


Re: [mapserver-users] Border style of polygon

2012-05-29 Thread Lime, Steve D (DNR)
Created a documentation ticket:

  https://github.com/mapserver/mapserver/issues/4332

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Denis Rykov
Sent: Tuesday, May 29, 2012 10:39 AM
To: thomas bonfort
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Border style of polygon

Awesome! It is works now in my 6.1-dev. Unfortunatly I can't find any reference 
about this feature in docs.
On Tue, May 29, 2012 at 4:09 PM, thomas bonfort 
mailto:thomas.bonf...@gmail.com>> wrote:
No, this is currently not possible.
http://mapserver.org/fr/development/rfc/ms-rfc-72.html addresses your
issue, with that you could do:

style
  outlinecolor 255 0 0
  geomtransform (buffer([shape], -1))
end
style
  outlinecolor 255 0 0
  width 1
 geomtransform (buffer([shape], 1))
end

I have no idea of the timeframe expected for rfc72's implementation,
maybe Steve can give you some info on that.

On Tue, May 29, 2012 at 10:58 AM, Denis Rykov 
mailto:ryk...@gmail.com>> wrote:
> Thanks for quick response!
>
> Are any ways to draw internal line (255 255 255 color in your example) with
> transparency (-1 -1 -1 doesnt work, in this case I see red line, but I would
> like to see underlying layer).
>
>
> On Tue, May 29, 2012 at 3:49 PM, thomas bonfort 
> mailto:thomas.bonf...@gmail.com>>
> wrote:
>>
>> something like this should work, with no "symbol"
>>
>> style
>>  outlinecolor 255 0 0
>>  width 3
>> end
>> style
>>  outlinecolor 255 255 255
>>  width 1
>> end
>>
>> --
>> thomas
>>
>> On Tue, May 29, 2012 at 10:45 AM, Denis Rykov 
>> mailto:ryk...@gmail.com>> wrote:
>> > I have WMS polygonal layer and want to draw polygon's border with the
>> > following style:
>> >
>> > http://i.stack.imgur.com/J2A7x.png
>> >
>> > My symbol's description:
>> >
>> > SYMBOL
>> >   NAME "double_line"
>> >   TYPE vector
>> >   POINTS
>> > 0 0 1 0 -99 -99 0 1 1 1
>> >   END
>> > END
>> >
>> > CLASS section in mapfile:
>> >
>> > CLASS
>> >   STYLE
>> > OUTLINECOLOR 255 0 0
>> > SYMBOL 'double_line'
>> > SIZE 3
>> > WIDTH 1
>> >   END
>> >
>> > But in this case you can see self intersection in polygon's edge:
>> >
>> > http://i.stack.imgur.com/5Etem.png
>> >
>> > What is the righ way to get correct border style?
>> >
>> > ___
>> > 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] Border style of polygon

2012-05-29 Thread Lime, Steve D (DNR)
The geomtransform Thomas mentions below is currently supported. It was added as 
part of RFC 64. Give it a try...

RFC 72 will likely be in the next release.

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of thomas bonfort
Sent: Tuesday, May 29, 2012 4:09 AM
To: Denis Rykov
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Border style of polygon

No, this is currently not possible.
http://mapserver.org/fr/development/rfc/ms-rfc-72.html addresses your issue, 
with that you could do:

style
  outlinecolor 255 0 0
  geomtransform (buffer([shape], -1))
end
style
  outlinecolor 255 0 0
  width 1
  geomtransform (buffer([shape], 1))
end

I have no idea of the timeframe expected for rfc72's implementation, maybe 
Steve can give you some info on that.

On Tue, May 29, 2012 at 10:58 AM, Denis Rykov  wrote:
> Thanks for quick response!
>
> Are any ways to draw internal line (255 255 255 color in your example) 
> with transparency (-1 -1 -1 doesnt work, in this case I see red line, 
> but I would like to see underlying layer).
>
>
> On Tue, May 29, 2012 at 3:49 PM, thomas bonfort 
> 
> wrote:
>>
>> something like this should work, with no "symbol"
>>
>> style
>>  outlinecolor 255 0 0
>>  width 3
>> end
>> style
>>  outlinecolor 255 255 255
>>  width 1
>> end
>>
>> --
>> thomas
>>
>> On Tue, May 29, 2012 at 10:45 AM, Denis Rykov  wrote:
>> > I have WMS polygonal layer and want to draw polygon's border with 
>> > the following style:
>> >
>> > http://i.stack.imgur.com/J2A7x.png
>> >
>> > My symbol's description:
>> >
>> > SYMBOL
>> >   NAME "double_line"
>> >   TYPE vector
>> >   POINTS
>> >     0 0 1 0 -99 -99 0 1 1 1
>> >   END
>> > END
>> >
>> > CLASS section in mapfile:
>> >
>> > CLASS
>> >   STYLE
>> >     OUTLINECOLOR 255 0 0
>> >     SYMBOL 'double_line'
>> >     SIZE 3
>> >     WIDTH 1
>> >   END
>> >
>> > But in this case you can see self intersection in polygon's edge:
>> >
>> > http://i.stack.imgur.com/5Etem.png
>> >
>> > What is the righ way to get correct border style?
>> >
>> > ___
>> > mapserver-users mailing list
>> > mapserver-users@lists.osgeo.org
>> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
>> >
>
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Fwd: collect value from xml and show it in html template

2012-05-28 Thread Lime, Steve D (DNR)
You might be be able to use AJAX to access the XML and parse it using 
JavaScript. That's one idea. You could also consider offline parsing of the 
XML. For example a cron job could be run every so often to extract the 
necessary value into a text file. You could then include that value into 
template or even mapfile content. If the XML data doesn't change that often 
then this might be a good option.

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] on behalf of gianluca massei 
[agr.gianluca.mas...@gmail.com]
Sent: Monday, May 28, 2012 3:30 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Fwd: collect value from xml and show it in html  
template

I'm trying to use MODIS WMS in my study purpose mapweb. The images are
"time support" but I don't know the last day that MODIS image is
available. This data is the default value in xml definition file
(http://neowms.sci.gsfc.nasa.gov/wms/wms?version=1.1.1&service=WMS&request=GetCapabilities).
I'd like collect the last data value available and use it for print the
data that I'm using for my web application. Without this value, I can
show the map but I don't know it's acquiring data.

Thanks G M
___
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: legend not visible with maxscaledenom set

2012-05-25 Thread Lime, Steve D (DNR)
How are you creating the legend? One work-around would be to fake a map 
associated with a call to create a legend. That is, set EXTENT and SIZE to 
values that would generate a computed scale below your MaxScaleDenom. I've done 
that when using mode=legend where you set mapext and mapsize as needed. 
Otherwise we'd really need to implement an override parameter (perhaps a 
processing directive) to ignore scale when compiling the legend.

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Bistrais, Bob
Sent: Thursday, May 24, 2012 12:44 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] legend not visible with maxscaledenom set

This appears to be an old problem, but I am still having trouble with it in 
MapServer 6.0.2.   If I have a layer without a Maxscaledenom set, the layer 
legend displays properly.  But if I set the Maxscaledenom, the legend does not 
appear in my application.  This happens when Maxscaledenom is set at the layer 
level or the class level.

I've looked though the archives and have seen this problem since version 5, but 
don't see a resolution for MS 6.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] CLASS NAME Runtime substitution Variable

2012-05-25 Thread Lime, Steve D (DNR)
Hi Steve: Have you tried just tagging 
&map.layer[RSS_MPOC].class[classe1_sign]=TITLE+NEWTITLE on to a 
GetLegendGraphic request?

Supporting runtimes for name isn't a technical issue, just hasn't been asked 
for...

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of 
steve.tout...@inspq.qc.ca
Sent: Thursday, May 24, 2012 1:52 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] CLASS NAME Runtime substitution Variable


Hi
My users will have the option to request a new map by changing YEAR. With 
Openlayers I use vendorParams to add new parameters in the getMap request. I 
use the YEAR parameters as a  Runtime substitution Variable for FILTER in the 
mapfile, pretty simple

My problem is for GetLegendGraphics because the class name will have to change 
on each request. I know that it is not possible yet to use Runtime substitution 
Variable on CLASS NAME. Is it because no one request for it or it is 
technically not possible?

The thread below discuss on using CLASS TITLE to do that
http://osgeo-org.1560.n6.nabble.com/runtime-substitution-class-name-td4228412.html

the GetLegendGraphic request look like
...&map.layer[RSS_MPOC].class[classe1_sign]=TITLE+'>= 2.38 <=56'

If I need to use this technique how can I send 
&map.layer[RSS_MPOC].class[classe1_sign]=TITLE+NEWTITLE as a parameter to the 
GetLegendGraphic  request?
thanks
steve
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] RE: How to do a static text label

2012-05-21 Thread Lime, Steve D (DNR)
See the TEXT class variable.

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Bistrais, Bob
Sent: Monday, May 21, 2012 10:19 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] How to do a static text label

I'm trying to label point features with a static text string, not using an item 
value.  For example, if a feature is in a layer, show the point symbol, and 
label it "A", another layer, label it "B".

I seem to remember seeing this map file parameter somewhere, but can't find it 
anywhere.  Does anyone remember this?  If so, what is the syntax of it?
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] any answer for this question

2012-05-19 Thread Lime, Steve D (DNR)
Set a *vector* layer that places the text you're interested in with a 
MAXSCALEDENOM that matches the MINSCALEDENOM of your raster layer. You might 
have to play with it a bit to deal with tiling.

Steve


From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] on behalf of arul 
[arul...@rediffmail.com]
Sent: Saturday, May 19, 2012 9:00 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] any answer for this question

http://gis.stackexchange.com/questions/16285/mapserver-set-no-image-available

I am also looking for a answer for this question Could you update the
methodology

Thanks and Regards
Arulraj.M

--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/any-answer-for-this-question-tp4975718.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


RE: [mapserver-users] Mapfile verification tool

2012-05-15 Thread Lime, Steve D (DNR)
Shp2img already provides this capability and is more portable than MapScript. I 
think ideally we'd develop 
a validator that spits out all errors but that's probably not possible either 
since many common error states 
(like a missing END or quote) will trigger a whole bunch of false positives. 
Best to take it an error at a 
time for most cases. This might be useful more for between version migration 
where the mapfile is structurally
sound but keywords have changed.

We could write a dumber version of shp2img that only tries to load the mapfile 
and report an error but I'm not
sure it's worth the effort.

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Ivan Mincik
Sent: Tuesday, May 15, 2012 10:24 AM
To: mapserver-users
Subject: Re: [mapserver-users] Mapfile verification tool

> I don't think this will work because the mapfile is read all at once 
> and parsed into an internal data structure. You can't access it in 
> mapscript until the parser has read it and the parser will error out on any 
> errors.

Understand, but i mean only valid/invalid output from test script. If some 
error will raised - mapfile is invalid, with no other information where 
otherwise mapfile is OK.


--
Ivan Mincik
___
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] Mapfile verification tool

2012-05-15 Thread Lime, Steve D (DNR)
Other than using shp2img or one of the other command-line executables I'm 
afraid there isn't a validator.

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Alberto Najera
Sent: Monday, May 14, 2012 8:35 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Mapfile verification tool

Hello all,

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

Thanks  

Alberto Najera

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


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


  1   2   3   4   5   >