Addlayer .DAT .TAB

Topics: Algorithms, CompactFramework, Data Access, Español, General Topics, Italiano, SharpMap Project, SharpMap v0.9 / v1.x, SharpMap v2.0, Web Controls, WinForms Controls
Nov 10, 2011 at 7:06 AM

How to display files? (DAT,TAB)?


Coordinator
Nov 10, 2011 at 7:18 AM

I suppose you want to add MapInfo data? If so, you need to use OgrProvider in SharpMap.Extensions project.

Please also see this.

Hth FObermaier

Nov 11, 2011 at 6:25 AM
Edited Nov 11, 2011 at 7:31 AM

first thanks FObermaier comment question.

Nov 11, 2011 at 7:31 AM

error

http://i262.photobucket.com/albums/ii120/manh8x9/Untitled-4.png

 can you send ogr_wrap.dll (C#) ?

Coordinator
Nov 11, 2011 at 7:51 AM

You are having either a mismatch of you ogr_csharp.dll and the binaries provided by your FWTools version, or you havn't set up your FWTools related properties in [app|web].config properly.

Ogr_csharp.dll is a managed wrapper for Ogr_wrap.dll which is supposed to be in the FWTools\bin folder.
Ogr_wrap is a native library that references other dll's in FWTools\bin folder. To resolve these, use http://www.dependencywalker.com.

This problem may also arise, if you have a different GDAL installation on your machine, that is accessible via environments path variable.

Hth FObermaier

Nov 15, 2011 at 2:07 AM

In folder bin , i had ogr_wrapp.dll

Webconfig had code following:

 <appSettings>
    <add key="FWToolsBinPath" value="c:\FWTools2.4.7\bin"/>
    <add key="FWToolsProjLib" value="c:\FWTools2.4.7\proj_lib"/>
    <add key="FWToolsGeoTiffCsv" value="c:\FWTools2.4.7\data"/>
    <add key="FWToolsGdalData" value="c:\FWTools2.4.7\data"/>
    <add key="FWToolsGdalDriver" value="c:\FWTools2.4.7\plugins"/>
  </appSettings>

But error http://i262.photobucket.com/albums/ii120/manh8x9/Untitled-4.png

Is it related to version SharpMap?

can you guide me fix this?

Coordinator
Nov 15, 2011 at 9:44 AM

If you derived your web project from the demo project in the sharpmap solution, you are probably referencing the wrong *_csharp.dll.

Please replace the *_csharp.dll s in your app_bin folder with the ones in c:\fwtools2.4.7\csharp

Hth FObermaier

Jan 2, 2012 at 1:05 PM

Have you resolved the question? I met the same question,and fllower the steps that sade by FObermaier , by problem still existence.