Hi,
Is it possible to see a mif/mid file in a wpfmap control ?
I think, I have to reference the fdo dll in my project and I tested that
OgrFeatureLayer og = new OgrFeatureLayer(@"…\export_epandage.mif", “IDPARCELLE”);
og.FeatureSource.Projection = projFrance;
og.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
og.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.CreateSimpleAreaStyle(GeoColor.SimpleColors.Transparent, GeoColor.SimpleColors.BrightYellow, 5);
og.Open();
But I have an error ;-( This doesn’t work.
Thanks for your help.
Regards.
Steph.
Mif/mid file
Hi Steph,
would you please try to use FdoFeatureLayer instead of OgrFeatureLayer? here we attached a sample to load a mif file, please check it.
If anything confused, please let us know.
Thanks,
Johnny
Post11641.zip (1.14 MB)
Hi Johnny,
Thanks, that works.
Regards.
Stéphanie
Hi Steph,
Good to hear it works for you.
Any questions please don’t hesitate to let us know.
Johnny