[Qgis-user] including images in (database) attributes
kimaidou
kimaidou at gmail.com
Tue Nov 26 11:38:11 PST 2013
Hi all
We also implemented Image dynamic link in Lizmap Web Client. You need to
store the image file in a "media" folder relative the the project, fill an
attribute of the layer with relative path to the image files
(e.gg"media/pictures/photo1.jpg" ) . In the web client the image is
displayed in
the information popup (getFeatureInfo). If the file is not a photo, Lizmap
popup shows a link to the file (pdf, zip, etc.).
Example here :
http://demo.lizmap.3liz.com/index.php/view/map/?repository=montpellier&project=montpellier&zoom=1&lat=5405666.66058&lon=431227.17957&layers=B0FTFFFFFFFTFTT
You can click on one "district" polygon to show the popup. The attribute
"illustration" contains the relative path to the image (with a link to open
it in a new tab).
The photo widget in QGIS forms is the right way to go. We must make the
stored path relative to the project though, to help people move or publish
the project and data easily.
Michael
2013/11/25 Brent Wood <pcreso at pcreso.com>
>
> Cheers Niklaas,
>
> The website is developed using the Silverstripe CMS,
> rainer at silverstripe.com is the guy behind the web mapping stuff. The
> images are retrieved using a custom web service, from a local image
> database (now with several 100,000 images). Commercial application called
> Atlas (www.atlamd.com).
>
> We funded the development of a map search for images in Atlas, which we
> are looking to update at present. See the map search tool at
> https://atlas.niwa.co.nz/public.jsp
>
> Enable Assets - images (right of map)
> update the map (button top right of map)
> (don't zoom right now - the back end web map server is broken)
>
> Choose the left hand Marquee selection tool (box)
> draw a box around some area with images on the map
> the images in that box will be displayed...
> (note that I've just added about 16,000 echogram images - they are being
> processed, with thumbnails, etc being generated in a low priority
> background job - so you'll see lots of entries with no thumbnails until
> that completes)
>
> This also seems to be very similar to the sort of facility you are looking
> at implementing - images associated with features (or locations) on a map
> which can be previewed & downloaded.
>
> I'm considering developing a QGIS plugin to provide similar access from a
> map based desktop - part of this initiative:
> http://www.niwa.co.nz/software/quantum-map
>
>
> Brent
>
> ------------------------------
> *From:* Niklaas Baudet von Gersdorff <niklaas at kulturflatrate.net>
> *To:* "qgis-user at lists.osgeo.org" <qgis-user at lists.osgeo.org>
> *Sent:* Tuesday, November 26, 2013 10:10 AM
> *Subject:* Re: [Qgis-user] including images in (database) attributes
>
> Hi Brent,
>
> Brent Wood [2013-11-25 12:38 -0800] :
>
> >Not quite sure how this fits your needs, but the QGIS "actions" facility
> was
> >implemented originally to do just this on the desktop - and it works well.
>
> OK, great I'll have a look at it!
>
> >Also, we did not use QGIS for this, but built an (Open Source) web
> >facility to
> >do this, with a set of images at each location:
> >[1]http://www.os2020.org.nz/project-map/
> >Click a green triangle (DTIS location) to drill down to the images at each
> >site...
>
> This looks great! I could at least digg in the code and get some ideas.
>
> >May give you some ideas if nothing else....
>
> Definitely! Thank you,
>
>
> Niklaas
>
> --
> Niklaas Baudet von Gersdorff
> niklaas at kulturflatrate.net
>
> http://www.kulturflatrate.net/niklaas
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20131126/866fa419/attachment.html>
More information about the Qgis-user
mailing list