This project has moved and is read-only. For the latest updates, please go here.

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 8:06 AM

How to display files? (DAT,TAB)?

Nov 10, 2011 at 8: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 7:25 AM
Edited Nov 11, 2011 at 8:31 AM

first thanks FObermaier comment question.

Nov 11, 2011 at 8:31 AM


 can you send ogr_wrap.dll (C#) ?

Nov 11, 2011 at 8: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

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 3:07 AM

In folder bin , i had ogr_wrapp.dll

Webconfig had code following:

    <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"/>

But error

Is it related to version SharpMap?

can you guide me fix this?

Nov 15, 2011 at 10: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 2:05 PM

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