[Geoserver-users] Use attribute URL to clickable link

Hi there, as a complete newbi at Geoserver I have come across a question that
might be easy to answer:

I have several sets (layers if one so wish) of polygons with an unique URL
(http://…) for each object as an attribute value in the table
(shape-file). This URL would be really, really handy if I could use it as a
"clickable link" when the rest of the attribute data is presented upon mouse
click.

I haven't been using Geoserver for more than a couple of hours and what I've
seen is really cool. But I'm not all that handy when it comes to writing XML
and such.

I would be immensely grateful if this could be solved as it almost alone
would save my department over ten thousand dollars annually...

Tobias
--
View this message in context: http://www.nabble.com/Use-attribute-URL-to-clickable-link-tf4915424.html#a14069893
Sent from the GeoServer - User mailing list archive at Nabble.com.

There's a couple options. The first one would be to customize a javascript client like openlayers to issue a WFS GetFeature request, which gets the raw data - the attributes of the shapefile - as xml. Then add some custom code to do the click through on the URL attribute.

The cleaner option I believe would be to use the brand new HTML ImageMap output format, which is becoming a community module. See http://docs.codehaus.org/display/GEOS/HTML+ImageMap+support It looks like the code hasn't quite made it in to the community module yet, but it's attached to an issue, see http://jira.codehaus.org/browse/GEOS-1406 Mauro wrote it and can probably answer questions for you.

This is still pretty bleeding edge, but it should be more scalable and quicker than the first approach. So it's possible, but you'll have to dig in to it. If you have success with it let us know, as we'd like to get this feature in to the core of geoserver.

best regards,

Chris

tobiases wrote:

Hi there, as a complete newbi at Geoserver I have come across a question that
might be easy to answer:

I have several sets (layers if one so wish) of polygons with an unique URL
(http://…) for each object as an attribute value in the table
(shape-file). This URL would be really, really handy if I could use it as a
"clickable link" when the rest of the attribute data is presented upon mouse
click.

I haven't been using Geoserver for more than a couple of hours and what I've
seen is really cool. But I'm not all that handy when it comes to writing XML
and such.

I would be immensely grateful if this could be solved as it almost alone
would save my department over ten thousand dollars annually...

Tobias