SV: [mapserver-users] Generic template for WMS GetFeatureInfo

2011-09-19 Thread Hollingbery, Julian
Hi Steve, 
 
thanks for the tip. Most of my users have desktop GIS systems (MapInfo,
ArcMap, etc.), but I might test whether these support a JavaScript-based
solution. 
In the mean time, could you expand a bit on the new-style templates?
All I have done so far is according to
http://mapserver.org/mapfile/template.html#template, and I don't
remember that this says anything about inclusion of subtemplates.
 
Julian



Fra: Steve Lime [mailto:sdl...@gmail.com] 
Sendt: 15. september 2011 20:43
Til: Hollingbery, Julian
Cc: mapserver-users@lists.osgeo.org
Emne: Re: [mapserver-users] Generic template for WMS GetFeatureInfo


Hi Julian: You might try the [items] and [values] template tags combined
with a little JavaScript. Those tags output a delimited list of items
and values for a feature or set of features. You could split the output
into arrays and display however you like. The attributes are just
slammed together into 1 comma delimited string, so this approach won't
work if your attribute data contains commas I fear. The same template in
theory could be used for any layer then... You could use new-style
templates (e.g. Via output formats) with template includes and handle
this with 2 files- the main template and the shared include...

I notice those tags aren't documented so I'll create a ticket to do so.
Should also probably enhance those tags, at least the values one, to
take some simple formatting options.

Steve

Sent from my iPad

On Sep 14, 2011, at 8:39 AM, Hollingbery, Julian ju...@kms.dk wrote:



Hi list, 

I too want to serve GetFeatureInfo requests. However, I wonder
if it is necessary to have a template per layer, when all I want to do
is show all attribute values in a HTML table. The thing is, I have a
handful of services with approx. 40 layers in each. Each layer has on
average a dozen attributes, so all in all, I am looking to simplify
maintenance of 2000 HTML table cells. Has anyone done anything in a
script or otherwise, so that one can use the same template file on
layers with varying attribute lists?

I am considering utilising the fact that a TEMPLATE statement
can reference a URL: I imagine that this might refer to a PHP-script,
which takes e.g. a database table name, and returns a HTML response with
the column names. Has anyone done anything like this?

Regards, 
Julian Hollingbery 

___
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] Vectorizing/digitizing points that have

2011-08-19 Thread Hollingbery, Julian
Hi,

You could also consider using service=WMSrequest=GetFeatureInfo, see
http://mapserver.org/ogc/wms_server.html

/julian 

-Oprindelig meddelelse-

Message: 7
Date: Fri, 19 Aug 2011 13:55:00 +
From: Rahkonen Jukka jukka.rahko...@mmmtike.fi
Subject: Re: [mapserver-users] Vectorizing/digitizing points that have
beenrendered as raster
To: 'Wim Vanbelle' wimvanbe...@gmail.com,
'mapserver-users@lists.osgeo.org'
mapserver-users@lists.osgeo.org
Message-ID:
84446def76453c439e9e97e438e13a6301d...@suutari.haapa.mmm.fi
Content-Type: text/plain; charset=us-ascii

Hi,

Mapserver 6.0 is listing these filter capabilities
ogc:Equals/
ogc:Disjoint/
ogc:Touches/
ogc:Within/
ogc:Overlaps/
ogc:Crosses/
ogc:Intersect/
ogc:Contains/
ogc:DWithin/
ogc:BBOX/

I am not totally sure that all of them really works.  Now it depends a
bit about your need what filter to use.  DWithin from the point should
give exact results but probably you would need to adjust the distance
according to the map scale.  BBOX might be faster but then you must make
a rectangle around the clicked point.

About the same result can be obtained also with WMS GetFeatureInfo.
Configure a suitable outputformat (text/plain, text/html or gml), use
big enough feature_count and reasonable pixel based tolerance in the
mapfile.

-Jukka Rahkonen-


Wim Vanbelle  wrote
Hi,

Currently we have a lot of big datasets with points (think 50k points
for instance) that we can now cluster service side with mapserver
(cool).
That works like a charm, but now we would like to fetch information if
you click on them. (be it a clustered icon, or a non clustered).

The client we are using is google maps with custom javascript code.

As far as I'm aware, I need to perform a WFS request for this. I haven't
got any problems setting that up, but what should be passed as a filter?

Can we just pass a point as a filter in the request, or are we forced to
supply a bounding box. I'm wondering if there are common solutions to
tackle a similar problem.

Thanks in advance.

Best regards.
-- next part --
An HTML attachment was scrubbed...
URL:
http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110819/9e
718318/attachment.html

--

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


End of mapserver-users Digest, Vol 43, Issue 39
***
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] SLD support: Anyone for fixing 5 yr old tickets?

2011-04-15 Thread Hollingbery, Julian
Hi list,

I have just joined the list for the following reason: We have been
running SLD-enabled WMS services for some years now, on a closed source
platform. For that, and several other reasons, we are now looking at
using MapServer as a replacement. I have compared our existing platform
and MapServer 5.6.6, and have noticed a couple of incompatibilities.
After having looked around, I find that both of these issues exist as
old tickets:

http://trac.osgeo.org/mapserver/ticket/1602
http://trac.osgeo.org/mapserver/ticket/1166

We do not have the developer resources to provide patches, so I am
looking for someone to do it for us. Our migration is organized as a
project, for which we have some funds. Therefore, I am looking for
someone who would be willing to provide me with an estimate of what it
would cost (time and/or money) to come up with a patch.

Regarding #1602, what I would like to achieve is to highlight an object
given by a ogc:Filter, while rendering the remaining objects in that
layer in the default style. I could of course use an ElseFilter, but
since this is a question of providing backward compatibility, I'd prefer
not to. It is not exactly the same thing as in #1602, but it seems to me
that it might be the same fix.
My particular SLD looks something like this:

StyledLayerDescriptor version=1.0.0
xmlns=http://www.opengis.net/sld;
xmlns:ogc=http://www.opengis.net/ogc;
NamedLayer
NameJordstykke/Name
UserStyle
FeatureTypeStyle
Rule
ogc:Filter
And

ogc:PropertyIsEqualTo

ogc:PropertyNamelandsejerlavskode/ogc:PropertyName

ogc:Literal90552/ogc:Literal

/ogc:PropertyIsEqualTo

ogc:PropertyIsEqualTo

ogc:PropertyNamematrikelnummer/ogc:PropertyName

ogc:Literal7fv/ogc:Literal

/ogc:PropertyIsEqualTo
/And
/ogc:Filter
PolygonSymbolizer
Fill
CssParameter
name=fill#FF/CssParameter
CssParameter
name=fill-opacity1/CssParameter
/Fill
Stroke
CssParameter
name=stroke#FF/CssParameter
CssParameter
name=stroke-width3/CssParameter
/Stroke
/PolygonSymbolizer
/Rule
/FeatureTypeStyle
/UserStyle
/NamedLayer
NamedLayer
NameJordstykke/Name
NamedStyle
Namedefault/Name
/NamedStyle
/NamedLayer
/StyledLayerDescriptor


Thanks in advance,
Julian Hollingbery
Danish Ministry of The Environment, National Survey and Cadastre

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