Hey Guys
I’m evaluating the software for a map component on a desktop vehicle tracking app where the vehicle transmits location info directly to the client.
1) new to maps - which file format will suite me the best? I need to have topographic, road, satellite overlays, to draw waypoints, routes and polygons such as “fenced area” etc.
2) Related - I need to query the altitude in a given map point or a vector of points.
3) it would be super helpful and even a must to have some sample maps to work with while developing until we get maps from clients.
4) unrelated - is there a way to add an image to the popup of a point?
Please advise :-)
How to query altitude at a point
Hi Lior,
Welcome to Map Suite Forums!
Here are my advises for your questions:
1): It depends on whether we need to store the shapes in local file. The most popular file is used in Gis System is shape file(.shp), this kind file includes both shapes and all kinds of extra information for the shape. So, if you want to load your existing shape layer or save some drawn shape into a local file, then the shape file is a good option. Excepting the shape file, we also support to use the other layer like inMemoryFeatureLayer to manager the shapes in memory(we may use it as fenced area). Besides, we even can use some satellite layers like Bing or Google map as the background layer.
2): Sorry, I am not very clear what’s the means of altitude. If you means the point extra information like the name,then it should be very easy to get them by using Feature object, which includes the shape and columns information.
3): Since you are new on our product, so I recommend strongly to have a look at our HowDoI sample in your installation folder C:\Program Files (x86)\ThinkGeo\Map Suite Wpf Desktop Full Edition 7.0\Samples
Excepting the basic sample in HowDoI samples, there are a lot of useful sample in our wiki sample: wiki.thinkgeo.com/wiki/Map_S…ll_Samples
4): Yes, we can add an image to the popup, as the Popup is inherited from ContentControl and we can add any element into its content property.
Here is a sample for it: wiki.thinkgeo.com/wiki/Map_S…pupOverlay
Hope you have a good journal on Map Suite.
Thanks,
Troy
Thanks for the quick and timely reply!
1) re: altitude - the vehicle in my application transmits its location and I need to transmit back the altitude for that location from the map info. how can I do that?
2) I have looked at the samples and did not find the map/shape files themselves?
3) I have managed to download some topographical info in the form of png+kml files, can I use them with thinkgeo mapsuite?
Hi Lior,
Have you run our howDoI sample successfully in the installation folder?
If yes, then I think the samples under Samples=>Markers should be fit for your case. For instance, in the Samples=>Markers=> Add an inmemoryMarkerOverlay:
Feature newFeature = new Feature(-95.2806, 38.9554);
newFeature.ColumnValues.Add(“Name”, “Lawrence”);
And we can modify it as:
PointShape GpsleLocation = new PointShape(-95.2806, 38.9554);
Feature vehicleFeature = new Feature(GpsleLocation);
vehicleFeature.ColumnValues.Add(“Name”,"#1“)
For 2) question "did not find the map/shape files themselves? ", I am a bit of confusions, when we open those projects with visual studio, we should can get all the source codes and data source includes all the shape files, images etc… (All the sample should be under C:\Program Files (x86)\ThinkGeo\Map Suite Wpf Desktop Full Edition 7.0\Samples)
I also don’t understand the means “png+kml” files, if you means you want to open kml file which includes the topographical data, then yes, please try to download the sample wiki.thinkgeo.com/wiki/Map_S…_Extension
Thanks,
Troy
Hi, thanks for the answers. two questions:
1) I still don’t find the maps.
For example in the HowDOI, I Opened the first sample “Display A simple Map”
went into the code, and to the definition of the class WorldMapKitWmsWpfOverlay and didn’t find where does it get the map info from…
2) Re: Querying altitude, I am receiving altitude of points in a DTED file and want to add it to a GRID so I can query it later dynamically and quickly. how can I do it? is there a better way or format to do it?
Thanks for your help
Lior,
For the first question, There are two ways to display a map image, one is getting the map image online, and the other one is displaying the map through local files. In the Display A Simple map, because it is using WorldMapKitWmsWpfOverlay and this overlay can render the map image(tiles) requested from a map server through Internet, the similar overlays like GoogleOverlay,BingOverlay etc… If you switch to the sample “LoadAShapeFileFeatureLayer”, then you can see except the WorldMapKitWmsWpfOverlay, it also uses the local shape file as a layer over the worldmapkit layer.
I strongly recommend you to go through our Map_Suite_Wpf_Desktop_Edition_Quick_Start_Guide, this guide includes a lot of basic knowledge on map suite.
As for the second question, Sorry to say we don’t support the DTED file, I think this is a new feature for us and you can take a vote on it in our enhancement system. helpdesk.thinkgeo.com/EnhancementTracker/. Another thing is you mentioned you plan to store the points from DTED file to GRID, but as I know, the GRID file is used to do the ISO line layer, So, I am wondering what’s your scenario? I want to know it because I don’t want we are going to a wrong direction.
Thanks,
Troy
Hi
I have gone through them. I thought the shape files just displayed the overlay and not the original image?
2) I saw that you can query and load DTED through the FDO object. that said, I can’t get the FDO sample to work even after I copy the proper references. (Load GeoDatabaseFeatureLayer). yes I want to use grids for the isoline.
Hi Lior,
Sorry for the delay.
I don’t understand what’s the original image. But the shape file has includes the shapes for example lines, then we use map suite to apply all kinds of styles to render the lines, even the labels from shape file.
As for why the FDO Samples not work, would you let us how you copy the dlls? we can follow the guide at [installnation]\Developer Reference\System32\readme.txt
let me know if any questions.
Thanks,
Troy