This project is read-only.

USING PROJECTION VIEWER

Nov 20, 2012 at 3:48 PM
Edited Nov 20, 2012 at 3:50 PM

Hi Friends.

I want to use Projection Viewer, which I have downloaded, from http://svn.mapwindow.org/MapWindow4Dev/ProjectionViewer

in my MapWinGis project.

I tried the project as is and I have this error:

File opened that is not a database file

file is encrypted or is not a database

Can someone assist me to know what the problem is. I traced and discovered this line

this.projectionTreeView1.Initialize(files[0], null);               

int gcsCount, pcsCount;               

And following line produced exception

this.projectionTreeView1.RefreshList(out gcsCount,out pcsCount);

Thanks.

Kehinde Isijola

kehindeoaisijola@yahoo.com

Nov 21, 2012 at 12:49 PM

I'm not sure how old the ProjectionViewer is. It might be a bit outdated.
The database it is looking for is here: http://svn.mapwindow.org/svnroot/MapWindow4Dev/Bin/Projections/ you'll need Projections.db3

 

--
Paul

Nov 23, 2012 at 1:46 PM
Edited Nov 27, 2012 at 12:44 PM

Thanks Paul so far.

I included .db3 file and changed the codeline below to use .db3;  and the problem was solved. 

            string[] files = Directory.GetFiles(path, "*.db3");

Thank you.

 

Kehinde Isijola