MapWindow 4 - ActiveX Control Programming : MapWindow Discussion Forum
Hi All, Relatively new to this space so any advice would be appreciated. I'm trying to load a SID image to a mapcontrol using.. Dim success As Boolean Dim img As New MapWinGIS.Image success = img.Open("E:\2007_mrsid\BCC_02.sid",MapWinGIS.
exception in loadraster function
Posted by:
matthew a ()
Date: August 15, 2011 06:40PM
Hi All,
Relatively new to this space so any advice would be appreciated.
I'm trying to load a SID image to a mapcontrol using..
Dim success As Boolean
Dim img As New MapWinGIS.Image
success = img.Open("E:\2007_mrsid\BCC_02.sid",MapWinGIS.ImageType.SID_FILE, False)
If Not success Then
MsgBox("image not opened")
End If
Map1.AddLayer(img, False)
When this executes an "exception in loadraster function" error is raised. I can only find one example of this on the forum and it states
"Problem solved, It was a DLL problem.
It seems that it was not the correct version."
Can someone step out how to fix this problem?
I can load SID images when I use "Mapwindow.exe".
Version 4.8.3 of the mapwingis.ocx
Using visual studio 2010 (dotnet)
Relatively new to this space so any advice would be appreciated.
I'm trying to load a SID image to a mapcontrol using..
Dim success As Boolean
Dim img As New MapWinGIS.Image
success = img.Open("E:\2007_mrsid\BCC_02.sid",MapWinGIS.ImageType.SID_FILE, False)
If Not success Then
MsgBox("image not opened")
End If
Map1.AddLayer(img, False)
When this executes an "exception in loadraster function" error is raised. I can only find one example of this on the forum and it states
"Problem solved, It was a DLL problem.
It seems that it was not the correct version."
Can someone step out how to fix this problem?
I can load SID images when I use "Mapwindow.exe".
Version 4.8.3 of the mapwingis.ocx
Using visual studio 2010 (dotnet)
Re: exception in loadraster function
Posted by:
pmeems ()
Date: August 16, 2011 03:58PM
You need to put these dlls in the folder of your application:
geos_c.dll
lti_dsdk.dll
lti_lidar_dsdk.dll
NCScnet4.dll
NCSEcw4_RO.dll
NCSUtil4.dll
tbb.dll
proj.dll
Let us know if this is solving your problem.
--
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
geos_c.dll
lti_dsdk.dll
lti_lidar_dsdk.dll
NCScnet4.dll
NCSEcw4_RO.dll
NCSUtil4.dll
tbb.dll
proj.dll
Let us know if this is solving your problem.
--
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
Re: exception in loadraster function
Posted by:
matthew a ()
Date: August 17, 2011 06:10PM
Thanks Paul,
its now working.
its now working.
Re: exception in loadraster function
Posted by:
andal ()
Date: February 03, 2012 04:12AM
hi,
I have already had this problem with ECWs, I put the dlls in the same folder than the app,like paul said, it solved the problem for ECWs, but I always have the same error "execption in load raster function" for SID image....
I have already had this problem with ECWs, I put the dlls in the same folder than the app,like paul said, it solved the problem for ECWs, but I always have the same error "execption in load raster function" for SID image....
Re: exception in loadraster function
Posted by:
pmeems ()
Date: February 03, 2012 05:30AM
The most easiest way to handle these kind of issues is to use the ocx-only installer.
It makes sure you'll have all the necessary dlls.
You can download it at [mapwingis.codeplex.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
It makes sure you'll have all the necessary dlls.
You can download it at [mapwingis.codeplex.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
Re: exception in loadraster function
Posted by:
andal ()
Date: February 03, 2012 06:47AM
It's ok, just needed lti_dsdk.dll with the app instead of lti_dsdk_dll.dll.
thanks for help
Edited 1 time(s). Last edit at 02/03/2012 07:18AM by andal.
thanks for help
Edited 1 time(s). Last edit at 02/03/2012 07:18AM by andal.
Sorry, only registered users may post in this forum.


