Hi there
I want to add .DEM Elevation layer using Mapsuite. I cannot see any sample that adds .DEM layer for the elevation. Please do some needful. Thanks
Regards,
Zeeshan
Hi there
I want to add .DEM Elevation layer using Mapsuite. I cannot see any sample that adds .DEM layer for the elevation. Please do some needful. Thanks
Regards,
Zeeshan
Zeeshan,
Thanks for your post.
Just want to make sure is the .DEM USGS ASCII DEM file? The detail you can look at following link:
gdal.org/frmt_usgsdem.html
There is a FdoExtension.DLL in DesktopEdition package, you can reference it and use the related API to show your data on the map. You can follow the quickstart guide (the link below) to do it
gis.thinkgeo.com/tabid/143/afv/topic/aff/20/aft/6203/Default.aspx
But I am not 100 percent sure it’s working for your data, because the Fdo extension is based on a third-party open-source code library, you may experience unexpected issues beyond our map control when using the .dem file data format.
Thanks
Li Fan
I tried the stuff u mentioned FdoExtension.DLL using reference API GdalRasterLayer to load DEM file but not works. Its not showng any thing neither error. I dont know the type of DEM file USGS ASCII or what but what i know it is “Digital Elevattion Model File” and it works using any DEM viewer. Kindly help me if possible for u. i can send a DEM file so u can check through ur developers. i will wait for ur reply. Here is the code i m trying
Dim Dem_Layer As New GdalRasterLayer("…\Sample_DEM.dem")
Dem_Layer.UpperThreshold = Double.MaxValue
Dem_Layer.LowerThreshold = 0
'Dim staticOverlay As New LayerOverlay()
'staticOverlay.Layers.Add(“Dem_Layer”, Dem_Layer)
'WinformsMap1.Overlays.Add(staticOverlay)
WinformsMap1.Refresh()
Thanks
Zeeshan
Zeeshan,
It could be not working, but we still can do somethings to make sure.
Does your sample code complete or just a part of them? Because from your code, you didn’t set map unit and current extent, please look at other how do I sample to know how to set them. It won’t display without correct map unit and map extent even the data is loaded properly.
Which dem viewer you use? Does it reference gdal.dll? Our GdalRasterLayer just reference it, so if it has problem can not parse the DEM data, it’s very hard to update it and fix the problem.
You can send your data to support@thinkgeo.com, and let he forwards to me, I can confirm the problem but not sure can fix it.
Thanks
James
Thanks for your response James !
In my Last message i have send a part of the sample code. For more understanding i m sending you complete code.
winformsMap1.MapUnit = GeographyUnit.DecimalDegree
winformsMap1.BackgroundOverlay.BackgroundBrush = New GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean)
Dim worldMapKitDesktopOverlay As WorldMapKitWmsDesktopOverlay = New WorldMapKitWmsDesktopOverlay()
winformsMap1.Overlays.Add(worldMapKitDesktopOverlay)
Dim DEM_Layer As New GdalRasterLayer("…\Sample_DEM.dem")
DEM_Layer.UpperThreshold = Double.MaxValue
DEM_Layer.LowerThreshold = 0
Dim staticOverlay As New LayerOverlay()
staticOverlay.Layers.Add("DEM_Layer", DEM_Layer)
winformsMap1.Overlays.Add(staticOverlay)
winformsMap1.CurrentExtent = New RectangleShape(46.38, 30.1, 48.5, 28.5)
winformsMap1.Refresh()
here is the reference link from where i downloaded the software to view DEM file as :
usna.edu/Users/oceano/pguth/website/microdem/microdem.htm
For the confirmation i am sending the DEM file attachment to support@thinkgeo.com. I hope you will succeed loading DEM file.
Thanks
Regards,
Zeeshan
Zeeshan,
I think your sample code is right. I will get the data from support and test by using microdem tool and our API.And then let you know the result.
Thanks
James
Zeeshan,
I have tested your sample data, it is shown black screen instead of background color but no error. If you can open the data by another tool, can you get schema name and class name? And you can try to call the full parameters constructor new GdalRasterLayer(pathFilename, featureSchemaName, featureClassName).
Thanks
James
James,
I have tried to check tools to get schema name and class name but could not found. Can you help to solve this problem and can send me the solution with sample code ?.
Regards,
Zeeshan
Zeeshan,
I checked with our developers, unfortunately we might not supports your dem data so far, as i just mentioned, our mapsuite use fdo as extension to load .dem data, I checked the microdem tool which can load your data, it not use gdal library not the same as fdo.
I will keep an eye on fdo, if it has any update, we will try it again, if it works I will let you know then.
Sorry for inconvenience.
James
Zeeshan,
Just to update you, we are looking to add ASCII DEM support over the next week. We are actually evaluating it right now and if we decide to move forward I will let you know. I hope that maybe by the end of next we we might have it.
David