MapWindow 4 - Desktop Application : MapWindow Discussion Forum
hi is there anyone who can help me? I have problems with photo viewer plug in. I am not able to associate a photo to a feature of a point shapefile. Has the access file that is required to have some particular features or fields i don't know in order to connect the photos to th
photo viewer
Posted by: sandro ()
Date: December 26, 2009 02:55AM

hi
is there anyone who can help me?
I have problems with photo viewer plug in. I am not able to associate a photo to a feature of a point shapefile.
Has the access file that is required to have some particular features or fields i don't know in order to connect the photos to the point features?
Is there any tutorial about it?
thanks

sandro

Options: ReplyQuote
Re: photo viewer
Posted by: pmeems ()
Date: December 27, 2009 03:39AM

The photo viewer plug-in is contributed but someone but isn't maintained/supported by the community (yet).

If you have any programming skills you could download the source code and see how it should work.

I haven't used the photo viewer myself, but if you could tell me how you think it should work and provide some sample files I can try and make a small tutorial.

Thanks,

Paul

--
Don't forget to read the new documentation: www.mapwindow.org/documentation/mapwingis4.8
Join us Google+: MapWindow GIS Google+ Community
Join the MapWindow Group on LinkedIn! LinkedIn - MapWindow Group

Download the latest beta installer at:
tinyurl.com/mwMonthly 32-Bit
tinyurl.com/mwMonthlyx64 64-Bit
Follow me on Twitter MapWindow_nl to read when a new installer is published.

---
Paul Meems
The Netherlands
[www.bontepaarden.nl]
Release manager, configuration manager and
forum moderator of MapWindow GIS

Owner of MapWindow.nl - Support for
Dutch speaking users: www.mapwindow.nl

*******
Everything I say or write is my personal opinion and
not the opinion of the company I work for.
*******
View my profile on LinkedIn

Options: ReplyQuote
Re: photo viewer
Posted by: sandro ()
Date: December 28, 2009 02:02AM

I think that Photo Viewer should work like the camera-icons in Google Earth.
In my project, I created a point-shapefile localizing the archaeologic ruins of the land I am studying.
I would like to link every feature of it to a photo of the plan of the ruins.
So, I created an access file with a table containing a field which is the same of one of the attribute table of the shapefile, and a field in which I put the singles photos.
Then I clicked the photo viewer plug-in, followed the instructions, and the square symbols of the shapefile turned in a camera icon; but selecting one of these icons, an error message appeared. What is wrong? Perhaps something about the access database?
I hope I let me be understood enough. As you can see, I am not particularly clever.
Thank you for your attention and patience, Paul!

sandro

Options: ReplyQuote
Re: photo viewer
Posted by: pmeems ()
Date: December 28, 2009 04:57AM

Sandro,

Could you add the error message and perhaps attach the database and the shapefile?
You can also send them to me directly: bontepaarden[AT]gmail[D0T]com

--
Paul

--
Don't forget to read the new documentation: www.mapwindow.org/documentation/mapwingis4.8
Join us Google+: MapWindow GIS Google+ Community
Join the MapWindow Group on LinkedIn! LinkedIn - MapWindow Group

Download the latest beta installer at:
tinyurl.com/mwMonthly 32-Bit
tinyurl.com/mwMonthlyx64 64-Bit
Follow me on Twitter MapWindow_nl to read when a new installer is published.

---
Paul Meems
The Netherlands
[www.bontepaarden.nl]
Release manager, configuration manager and
forum moderator of MapWindow GIS

Owner of MapWindow.nl - Support for
Dutch speaking users: www.mapwindow.nl

*******
Everything I say or write is my personal opinion and
not the opinion of the company I work for.
*******
View my profile on LinkedIn

Options: ReplyQuote
Re: photo viewer
Posted by: pmeems ()
Date: December 29, 2009 04:51AM

Sandro,

I've received your test data and I've been looking at the code of the PhotoViewer plug-in.
In the mean time I've also made some minor improvements ;)

The code is looking for two fields in the shapefile:
LOC_ID and LOC_NAME

The table in the Access database is called Photos and these fields are mandatory:
Location_ID
Location_Description
File_Name
Photo_ID
Photo_Description
Photo_Date
Direction
Notes

Photo_ID and Location_ID are the primary key.
Multiple photos can be on one location (shape).
The photos don't need to be included in the database.

A second table called Comments is needed if you also want to add comments.

I've just committed a new version, you can download it at mwPhotoViewer.dll. Just replace it with your current one.

I also uploaded some sample data based on your files: mwPhotoViewer/SampleData/

If you don't want your data available, please let me know and I'll remove them again.

Hope it helps,

Paul

--
Don't forget to read the new documentation: www.mapwindow.org/documentation/mapwingis4.8
Join us Google+: MapWindow GIS Google+ Community
Join the MapWindow Group on LinkedIn! LinkedIn - MapWindow Group

Download the latest beta installer at:
tinyurl.com/mwMonthly 32-Bit
tinyurl.com/mwMonthlyx64 64-Bit
Follow me on Twitter MapWindow_nl to read when a new installer is published.

---
Paul Meems
The Netherlands
[www.bontepaarden.nl]
Release manager, configuration manager and
forum moderator of MapWindow GIS

Owner of MapWindow.nl - Support for
Dutch speaking users: www.mapwindow.nl

*******
Everything I say or write is my personal opinion and
not the opinion of the company I work for.
*******
View my profile on LinkedIn

Options: ReplyQuote
Re: photo viewer
Posted by: sandro ()
Date: December 30, 2009 01:28AM

Paul
I am quite grateful for your help and clear explanations.
Photo viewer works well and is very useful for my purposes. I learned even how to add other photos to single shapefiles (by myself!!).
My data may remain available without any problem, so that they may be helpful to other people.
Thank you a lot.

sandro

Options: ReplyQuote
Re: photo viewer
Posted by: tomc ()
Date: January 13, 2010 04:41PM

Paul,

Have been testing your latest version of this. Works ok viewing the sample data, but ran into some problems adding other sites, particularly from the 'add location' button or add photo buttons. Particularly for each option, get the error -

Conversion from type DBNull to type 'xxxx' is not valid.
ie when adding a location the type 'Double' is listed, adding a photo type String shows.

Also found some more fields needed in database and shapefiles, ie photos table needs fields X_Coordinate and Y_Coordinate for add locations system

Shapefile needs X_Coord and Y_Coord fields also.

Is it better to put in mantis, or do I send the stuff directly?
Tom

Options: ReplyQuote
Re: photo viewer
Posted by: pmeems ()
Date: January 15, 2010 12:43AM

Tom,

I've created a node under the MapWindow Plug-in project in Mantis called 'PhotoViewer plug-in'.
Would you mind adding your sample data and remarks to it, so we can keep track of it?

Thanks,

Paul

--
Don't forget to read the new documentation: www.mapwindow.org/documentation/mapwingis4.8
Join us Google+: MapWindow GIS Google+ Community
Join the MapWindow Group on LinkedIn! LinkedIn - MapWindow Group

Download the latest beta installer at:
tinyurl.com/mwMonthly 32-Bit
tinyurl.com/mwMonthlyx64 64-Bit
Follow me on Twitter MapWindow_nl to read when a new installer is published.

---
Paul Meems
The Netherlands
[www.bontepaarden.nl]
Release manager, configuration manager and
forum moderator of MapWindow GIS

Owner of MapWindow.nl - Support for
Dutch speaking users: www.mapwindow.nl

*******
Everything I say or write is my personal opinion and
not the opinion of the company I work for.
*******
View my profile on LinkedIn

Options: ReplyQuote
Re: photo viewer
Posted by: sandro ()
Date: October 23, 2010 03:41AM

hello
I have a new problem with photo-viewer plug-in.
It doesn't make the connection to the access file. The message is the following
"could not load file or assembly system.EnterpriseServices.wrapper.dll or one of its dependancies. Impossibile trovare il file specificato (impossible to find the file specified)".
As I have non been using this plug-in since a long time, I don't know wether it is a problem of my own computer or a problem of the plug-in in the new release of MWG.
I am using windows XP.
thank you.

sandro

Options: ReplyQuote
Re: photo viewer
Posted by: sandro ()
Date: October 23, 2010 07:03AM

sorry.
I have understood and solved. It is a problem with microsoft.net.framework 3.5 SP1 on my computer. MWG is OK.

Options: ReplyQuote
Re: photo viewer
Posted by: sandro ()
Date: February 10, 2012 09:01AM

I get a little problem that is driving me crazy.
I am using protoviewer to link a point shapefile (the attributes attached- 1) with a an access file with a "tabella" like fig. 2.
I don't understand why the plug-in works only when into the mandatory Photo_ID field I write "1" for all photos. If I write different numbers (1,2,3,etc), as it should be logical, the plug-in reads correctly only "1" and opens the photo linked only to that specific feature; for the other it doesn't and sends the message attached in 3.
Instead, when I open an other link with other files I created two years ago, it is all right.
i am using the last version on a XP computer.
happy if someone can explain.

sandro

Attachments: 1.jpg (101.4 KB)   2.jpg (83.8 KB)   3.jpg (20.7 KB)  
Options: ReplyQuote
Re: photo viewer
Posted by: sandro ()
Date: February 10, 2012 11:15PM

sorry for having posted this.
I understood by myself. It is all right: one photo for one feature = n. 1 in Photo_ID field.
sorry again; I was tired and frustrated.

sandro

Options: ReplyQuote


Sorry, only registered users may post in this forum.





Banner Exchange




GISCP.com




Send us your banner logo (160x120) for the space above, and add this MapWindow banner ad to your site:

Just paste this text in your page: