User Tools

Site Tools


map_suite_wpf_desktop_edition_miscellaneous_samples

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
map_suite_wpf_desktop_edition_miscellaneous_samples [2015/09/07 11:09]
admin
map_suite_wpf_desktop_edition_miscellaneous_samples [2017/03/17 02:12] (current)
tgwikiupdate
Line 1: Line 1:
-====== Map Suite Wpf Desktop Edition Miscellaneous Samples ======+====== ​ Map Suite Wpf Desktop Edition Miscellaneous Samples ​ ======
  
 +{{section>​upgrade_map_suite_to_10.0}}
  
- 
-==== Custom Scale Bar ==== 
 <div sampleitem>​ <div sampleitem>​
 +====  Custom Scale Bar  ====
 +<div screenshot>​
 {{wpfedition:​codesamples:​Map Suite Wpf Desktop Edition Sample Custom Scale Bar.jpg?​300x180}} {{wpfedition:​codesamples:​Map Suite Wpf Desktop Edition Sample Custom Scale Bar.jpg?​300x180}}
-\\  +</​div>​ 
-[[Source_Code_WebEditionSample_CustomScaleBar_CS_100810.zip|View Source]] ​ +<div content>​ 
-{{:File:​WebEditionSample_CustomScaleBar_CS_100810.zip|C#​ Download}} ​| [[Map Suite Samples Alternate Languages | Need it in another language?]] \\ \\ +<div download_viewsource_buttons>​ 
 +[[Source_Code_WebEditionSample_CustomScaleBar_CS_100810.zip|View Source]] 
 +{{filehistory:​WebEditionSample_CustomScaleBar_CS_100810.zip|C#​ Download}} 
 +</​div>​ 
 +<div sample_otherlinks>​
 [[Map Suite Samples Applies To|Applies To: Desktop \ Web \ Silverlight \ Services \ Wpf ]] [[Map Suite Samples Applies To|Applies To: Desktop \ Web \ Silverlight \ Services \ Wpf ]]
 +\\ 
 +[[Map Suite Samples Alternate Languages | Need it in another language?​]] 
 +</​div>​
 In today’s Web project, we learn how to extend ScaleBarAdornmentLayer to create a custom scale bar that is based on a projection of choice instead of the projection of the map. This can be useful when the displayed projection of the map has highly distortable distances especially at high latitudes such as Spherical Mercator (used by Google Map, Virtual Earth, Yahoo maps etc). Using a scale bar based on distance geometry of the Geodetic (WGS84) projection will give a more accurate result. Note that the CustomScaleBar class is based on MapSuiteCore and can be used in any other versions of MapSuite such as Desktop. In today’s Web project, we learn how to extend ScaleBarAdornmentLayer to create a custom scale bar that is based on a projection of choice instead of the projection of the map. This can be useful when the displayed projection of the map has highly distortable distances especially at high latitudes such as Spherical Mercator (used by Google Map, Virtual Earth, Yahoo maps etc). Using a scale bar based on distance geometry of the Geodetic (WGS84) projection will give a more accurate result. Note that the CustomScaleBar class is based on MapSuiteCore and can be used in any other versions of MapSuite such as Desktop.
 +</​div>​
 </​div>​ </​div>​
  
 ---- ----
- 
- 
-==== Draw Custom Exception ==== 
 <div sampleitem>​ <div sampleitem>​
 +====  Draw Custom Exception ​ ====
 +<div screenshot>​
 {{wpfedition:​codesamples:​Map Suite Wpf Desktop Edition Sample Draw Custom Exception.png?​300x180}} {{wpfedition:​codesamples:​Map Suite Wpf Desktop Edition Sample Draw Custom Exception.png?​300x180}}
-\\  +</​div>​ 
-[[Source_Code_DesktopEditionSample_DrawCustomException_CS_100127.zip|View Source]] ​ +<div content>​ 
-{{:File:​DesktopEditionSample_DrawCustomException_CS_100127.zip|C#​ Download}} ​| [[Map Suite Samples Alternate Languages | Need it in another language?]] \\ \\ +<div download_viewsource_buttons>​ 
 +[[Source_Code_DesktopEditionSample_DrawCustomException_CS_100127.zip|View Source]] 
 +{{filehistory:​DesktopEditionSample_DrawCustomException_CS_100127.zip|C#​ Download}} 
 +</​div>​ 
 +<div sample_otherlinks>​
 [[Map Suite Samples Applies To|Applies To: Desktop \ Web \ Silverlight \ Services \ Wpf ]] [[Map Suite Samples Applies To|Applies To: Desktop \ Web \ Silverlight \ Services \ Wpf ]]
 +\\ 
 +[[Map Suite Samples Alternate Languages | Need it in another language?​]] 
 +</​div>​
 This sample shows how you can suppress and draw exceptions in desktop overlays instead of throwing them. There is a little-known feature in the Map Suite Desktop Edition Overlay class that allows you to draw an exception in the event an exception is thrown during the drawing process. We have a default image we draw in this case; however, you can override this using the DrawExceptionCore method and draw whatever you want. By default we always throw expections, but to start drawing them you can use the Overlay.DrawExceptionMode property. This sample shows how you can suppress and draw exceptions in desktop overlays instead of throwing them. There is a little-known feature in the Map Suite Desktop Edition Overlay class that allows you to draw an exception in the event an exception is thrown during the drawing process. We have a default image we draw in this case; however, you can override this using the DrawExceptionCore method and draw whatever you want. By default we always throw expections, but to start drawing them you can use the Overlay.DrawExceptionMode property.
 +</​div>​
 </​div>​ </​div>​
  
 ---- ----
- 
- 
-==== MDI Form ==== 
 <div sampleitem>​ <div sampleitem>​
 +====  MDI Form  ====
 +<div screenshot>​
 {{wpfedition:​codesamples:​Map Suite Wpf Desktop Edition Sample MDI Form.jpg?​300x180}} {{wpfedition:​codesamples:​Map Suite Wpf Desktop Edition Sample MDI Form.jpg?​300x180}}
-\\  +</​div>​ 
-[[Source_Code_DesktopEditionSample_MDIform_CS_100405.zip|View Source]] ​ +<div content>​ 
-{{:File:​DesktopEditionSample_MDIform_CS_100405.zip|C#​ Download}} ​| [[Map Suite Samples Alternate Languages | Need it in another language?]] \\ \\ +<div download_viewsource_buttons>​ 
 +[[Source_Code_DesktopEditionSample_MDIform_CS_100405.zip|View Source]] 
 +{{filehistory:​DesktopEditionSample_MDIform_CS_100405.zip|C#​ Download}} 
 +</​div>​ 
 +<div sample_otherlinks>​
 [[Map Suite Samples Applies To|Applies To: Desktop \ Web \ Silverlight \ Services \ Wpf ]] [[Map Suite Samples Applies To|Applies To: Desktop \ Web \ Silverlight \ Services \ Wpf ]]
 +\\ 
 +[[Map Suite Samples Alternate Languages | Need it in another language?​]] 
 +</​div>​
 In today’s project, we show how to have the WinformsMap control in a MDI form. Using an MDI form with a map background can represent a challenge. You will see in this project the technique to display properly a child form on top of the map. You can also notice how the map is accessed from the child form by plotting points on it from the child form. In today’s project, we show how to have the WinformsMap control in a MDI form. Using an MDI form with a map background can represent a challenge. You will see in this project the technique to display properly a child form on top of the map. You can also notice how the map is accessed from the child form by plotting points on it from the child form.
 +</​div>​
 </​div>​ </​div>​
  
 ---- ----
- 
- 
-==== Topology Validation ==== 
 <div sampleitem>​ <div sampleitem>​
 +====  Topology Validation ​ ====
 +<div screenshot>​
 {{wpfedition:​codesamples:​Map Suite Desktop Edition Sample Topology Validation.jpg?​300x180}} {{wpfedition:​codesamples:​Map Suite Desktop Edition Sample Topology Validation.jpg?​300x180}}
-\\  +</​div>​ 
-[[Source_Code_DesktopEditionSample_TopologyValidation_CS_120904.zip|View Source]] ​ +<div content>​ 
-{{:File:​DesktopEditionSample TopologyValidation CS 120904.zip|C#​ Download}} ​| [[Map Suite Samples Alternate Languages | Need it in another language?]] \\ \\ +<div download_viewsource_buttons>​ 
 +[[Source_Code_DesktopEditionSample_TopologyValidation_CS_120904.zip|View Source]] 
 +{{filehistory:​DesktopEditionSample TopologyValidation CS 120904.zip|C#​ Download}} 
 +</​div>​ 
 +<div sample_otherlinks>​
 [[Map Suite Samples Applies To|Applies To: Desktop \ Web \ Silverlight \ Services \ Wpf ]] [[Map Suite Samples Applies To|Applies To: Desktop \ Web \ Silverlight \ Services \ Wpf ]]
- +\\ 
-Starting with version 6.0.113.0, Map Suite includes topology validation capabilities. ​ This Topology Validator sample application makes it simple to visualize and test topology rules. You simply select the case you want to test, use our drawing tools to create the shapes necessary, and then hit the play button to run the test. The error cases are highlighted on the screen and saved to the test, and their Well-Known Text (WKT) is copied to your clipboard. At any time, you can view or edit the WKT which makes up the case. We save our test cases as XML files that contain not only the test case features but also the errors. This makes it a snap for you to share your cases with us or other colleagues. ​ \\  \\ For more details including a list of topology cases that you can test, see [[http://​gis.thinkgeo.com/​Support/​DiscussionForums/​tabid/​143/​aff/​16/​aft/​10443/​afv/​topic/​Default.aspx#​topology|this article]] or watch the {{Videolink|[[http://​youtu.be/​IuLGTRsVtQc|video overview]]}}+[[Map Suite Samples Alternate Languages | Need it in another language?​]] 
 +</​div>​ 
 +Starting with version 6.0.113.0, Map Suite includes topology validation capabilities. ​ This Topology Validator sample application makes it simple to visualize and test topology rules. You simply select the case you want to test, use our drawing tools to create the shapes necessary, and then hit the play button to run the test. The error cases are highlighted on the screen and saved to the test, and their Well-Known Text (WKT) is copied to your clipboard. At any time, you can view or edit the WKT which makes up the case. We save our test cases as XML files that contain not only the test case features but also the errors. This makes it a snap for you to share your cases with us or other colleagues. ​ \\  \\ For more details including a list of topology cases that you can test, see [[http://​gis.thinkgeo.com/​Support/​DiscussionForums/​tabid/​143/​aff/​16/​aft/​10443/​afv/​topic/​Default.aspx#​topology|this article]] or watch the [[http://​youtu.be/​IuLGTRsVtQc|video overview]] 
 +</​div>​
 </​div>​ </​div>​
  
 ---- ----
- 
- 
-==== Use Map with MVC Framework ==== 
 <div sampleitem>​ <div sampleitem>​
 +====  Use Map with MVC Framework ​ ====
 +<div screenshot>​
 {{wpfedition:​codesamples:​Map Suite Wpf Desktop Edition Sample Use Map with MVC Framework.png?​300x180}} {{wpfedition:​codesamples:​Map Suite Wpf Desktop Edition Sample Use Map with MVC Framework.png?​300x180}}
-\\  +</​div>​ 
-[[Source_Code_WebEditionSample_UseMapWithMVCFramework_CS.zip|View Source]] ​ +<div content>​ 
-{{:File:​WebEditionSample UseMapWithMVCFramework CS 141211.zip|C#​ Download}} ​| [[Map Suite Samples Alternate Languages | Need it in another language?]] \\ \\ +<div download_viewsource_buttons>​ 
 +[[Source_Code_WebEditionSample_UseMapWithMVCFramework_CS.zip|View Source]] 
 +{{filehistory:​WebEditionSample UseMapWithMVCFramework CS 141211.zip|C#​ Download}} 
 +</​div>​ 
 +<div sample_otherlinks>​
 [[Map Suite Samples Applies To|Applies To: Desktop \ Web \ Silverlight \ Services \ Wpf ]] [[Map Suite Samples Applies To|Applies To: Desktop \ Web \ Silverlight \ Services \ Wpf ]]
 +\\ 
 +[[Map Suite Samples Alternate Languages | Need it in another language?​]] 
 +</​div>​
 This project demonstrates how to create a web-based map using Microsoft ASP.NET MVC 1.0 and Map Suite Web Edition. To meet the requirements of MVC, we inherit the interface IMapInitializer in the controller, which has a function InitializeMap that is overridden in the controller. We then implement the class "​MapInitializerHelper"​ to initialize the map instance. This project demonstrates how to create a web-based map using Microsoft ASP.NET MVC 1.0 and Map Suite Web Edition. To meet the requirements of MVC, we inherit the interface IMapInitializer in the controller, which has a function InitializeMap that is overridden in the controller. We then implement the class "​MapInitializerHelper"​ to initialize the map instance.
 +</​div>​
 </​div>​ </​div>​
  
 ---- ----
  
- 
-==== ShapeFile to SQLite Convertion Tool ==== 
 <div sampleitem>​ <div sampleitem>​
 +====  ShapeFile to SQLite Convertion Tool  ====
 +<div screenshot>​
 {{wpfedition:​codesamples:​Convert Shapefile to SQLite.jpg?​300x180}} {{wpfedition:​codesamples:​Convert Shapefile to SQLite.jpg?​300x180}}
-\\  +</​div>​ 
-[[Source_Code_SQLiteExtensionSample_ConvertShapefiletoSQLite_CS_150625.zip|View Source]] ​ +<div content>​ 
-{{:File:​SQLiteExtensionSample_ConvertShapefiletoSQLite_CS_150625.zip|C#​ Download}} ​| [[Map Suite Samples Alternate Languages | Need it in another language?​]] ​\\ \\  +<div download_viewsource_buttons>​ 
-[[Map Suite Samples Applies To|Applies To: ]]+[[Source_Code_SQLiteExtensionSample_ConvertShapefiletoSQLite_CS_150625.zip|View Source]] 
 +{{filehistory:​SQLiteExtensionSample_ConvertShapefiletoSQLite_CS_150625.zip|C#​ Download}} 
 +</​div>​ 
 + \\ \\ This sample demonstrates how to save the features in a shape file (.shp) into a Sqlite file (.sqlite) for a higher query performance. This takes the built-in functionalities of recent daily builds after 9.0.0.1/​9.0.1.0 or later, which you can download from the ThinkGeo Customer Portal or Map Suite Product Center. 
 +</​div>​ 
 +</​div>​
  
-ShapeFile to SQLite Convertion Tool====^ Screenshot ^ width=78|Sample ^ width=66|Product ^ Description ^| {{wiki:Convert Shapefile to SQLite.jpg?250}}   | [[Source_Code_SQLiteExtensionSample_ConvertShapefiletoSQLite_CS_150625.zip|View Source]]\\ \\ [[:File:​SQLiteExtensionSample_ConvertShapefiletoSQLite_CS_150625.zip|C# Download]]\\ ​\\ //[[Map Suite Samples Alternate Languages|Need it in another language?​]]/​/   | [[Map Suite Desktop Edition|Desktop \\ \\ ]] \\ \\ //   ​| ​This sample ​demonstrates ​how to save the features in a shape file (.shp) into a Sqlite ​file (.sqlite) ​for a higher query performanceThis takes the built-in functionalities of recent daily builds after 9.0.0.1/9.0.1.0 or later, which you can download from the ThinkGeo Customer Portal or Map Suite Product Center.+---- 
 +<div sampleitem>​ 
 +====  ​Indexed Raster Layer  ===
 +<div screenshot>​ 
 +{{wpfedition:codesamples:​map_suite_wpf_desktop_edition_indexed_raster_layer_sample.png?300x180}} 
 +</​div>​ 
 +<div content>​ 
 +<div download_viewsource_buttons>​ 
 +[[Source_Code_DesktopEditionSample_IndexedRasterLayer_CS_151105.zip|View Source]] 
 +{{filehistory:DesktopEditionSample_IndexedRasterLayer_CS_151105.zip|C# Download}} 
 +</​div>​ 
 +<div sample_otherlinks>​ 
 +[[Map Suite Samples Applies To|Applies To: Desktop \ Web \ Silverlight \ Services \ Wpf ]] 
 +\\ 
 +[[Map Suite Samples Alternate Languages | Need it in another language?]] 
 +</div> 
 +This sample ​shows how to create indexed raster layerThe sample supports rTree index file and create it if not existIt is high performance ​for multiple raster layers. 
 +</div>
 </​div>​ </​div>​
  
 ---- ----
 +<div sampleitem>​
 +====  Finding Nearest Cross Streets ​ ====
 +<div screenshot>​
 +{{wpfedition:​codesamples:​map_suite_wpf_desktop_edition_redisence_search_sample.png?​300x180}}
 +</​div>​
 +<div content>
 +<div download_viewsource_buttons>​
 +[[Source_Code_WpfDesktopEditionSample_RedisenceSearch_CS_161217.zip|View Source]]
 +{{filehistory:​WpfDesktopEditionSample_RedisenceSearch_CS_161217.zip|C#​ Download}}
 +</​div>​
 +<div sample_otherlinks>​
 +[[Map Suite Samples Applies To|Applies To: Desktop \ Web \ Silverlight \ Services \ Wpf ]]
 +\\
 +[[Map Suite Samples Alternate Languages | Need it in another language?]]
 +</​div>​
 +This sample demonstrates how to geocode an address using Map Suite Geocoder. It then returns and highlights the low and high cross streets.
 +</​div>​
 +</​div>​
  
 +---- 
 +<div sampleitem>​ 
 +====  Labeling Flight Lines  ==== 
 +<div screenshot>​ 
 +{{wpfedition:​codesamples:​map_suite_wpf_desktop_edition_label_flight_lines.png?​300x180}} 
 +</​div>​ 
 +<div content>​ 
 +<div download_viewsource_buttons>​ 
 +[[Source_Code_map_suite_wpf_desktop_edition_label_flight_lines.zip|View Source]] 
 +{{filehistory:​map_suite_wpf_desktop_edition_label_flight_lines.zip|C#​ Download}} 
 +</​div>​ 
 +<div sample_otherlinks>​ 
 +[[Map Suite Samples Applies To|Applies To: Desktop \ Web \ Silverlight \ Services \ Wpf ]] 
 +\\ 
 +[[Map Suite Samples Alternate Languages | Need it in another language?​]] 
 +</​div>​ 
 +This sample shows how to offset arc shaped flight lines so multiple from point to point are visible and then show popup labels providing information on the flights the lines represent. 
 +</​div>​ 
 +</​div>​ 
 +---- 
 +{{page>​map_suite_services_edition_miscellaneous_samples}}
map_suite_wpf_desktop_edition_miscellaneous_samples.1441624158.txt.gz · Last modified: 2015/09/07 11:09 by admin