[mapserver-users] how MapServer manage the hyperlinks in the shapefile data table

Dan Little danlittle at yahoo.com
Mon Jan 12 08:35:08 PST 2009


Yes there is.  Look into the query and template functions in MapServer.

In the shapefile you should try to store a minimal representation of the hyperlink.  Like a ID or a relative URL.  That way if the look up system, or server, changes you do not need to do a complete update of your shapefile.

So, for example, say you had a column called "OBJECTID" that contained a unique identifier for the feature that is used in other systems.

In a template file you can do the following:
 <a href="http://my.other.server/the/path/to/script.cgi?object_id=[OBJECTID]" target="_blank">View in The Other System</a>



----- Original Message ----
> From: Geosig <geosigmat at yahoo.ca>
> To: mapserver-users at lists.osgeo.org
> Sent: Friday, January 9, 2009 3:31:40 PM
> Subject: [mapserver-users] how MapServer manage the hyperlinks in the shapefile data table
> 
> 
> Hi everybody
> 
> I am new in using MapServer so excuse me if my question it seems to you
> somehow... strange.
> 
> There is any possibility to ad hyperlinks to the shapefile data table used
> by MapServer, so that when we see a querry table to be capable to follow
> these links?
> 
> Thank you
> -- 
> View this message in context: 
> http://n2.nabble.com/how-MapServer-manage-the-hyperlinks-in-the-shapefile-data-table-tp2135378p2135378.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users



      



More information about the MapServer-users mailing list