• 大小:
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-02-11
  • 语言: C#
  • 标签: C#  

资源简介

开源Gis工具SharpMap例子,实现读取ShapeFile,放大缩小,标注,平移等功能

资源截图

代码片段和文件信息

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Ajax : System.Web.UI.Page
{
protected void Page_Load(object sender EventArgs e)
{
ajaxMap.Map = MapHelper.InitializeMap(new System.Drawing.Size(10 10));
if (!Page.IsPostBack && !Page.IsCallback)
{
//Set up the map. We use the method in the App_Code folder for initializing the map
ajaxMap.Map.Center = new SharpMap.Geometries.Point(0 20);
ajaxMap.FadeSpeed = 10;
ajaxMap.ZoomSpeed = 10;
ajaxMap.Map.Zoom = 360;

}
ajaxMap.ResponseFormat = “maphandler.ashx?MAP=S

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       2361  2009-03-03 00:43  SharpMap Demo\DemoWebSite\Ajax.aspx

     文件        875  2009-03-03 00:43  SharpMap Demo\DemoWebSite\Ajax.aspx.cs

     文件      19965  2009-03-03 00:43  SharpMap Demo\DemoWebSite\App_Code\MapHelper.cs

     文件      25464  2009-03-03 00:42  SharpMap Demo\DemoWebSite\App_Data\cities.DBF

     文件        142  2009-03-03 00:42  SharpMap Demo\DemoWebSite\App_Data\cities.prj

     文件      13484  2009-03-03 00:42  SharpMap Demo\DemoWebSite\App_Data\cities.SHP

     文件       3924  2009-03-03 00:42  SharpMap Demo\DemoWebSite\App_Data\cities.SHX

     文件       7301  2009-03-03 00:42  SharpMap Demo\DemoWebSite\App_Data\countries.dbf

     文件        142  2009-03-03 00:42  SharpMap Demo\DemoWebSite\App_Data\countries.prj

     文件     459332  2009-03-03 00:42  SharpMap Demo\DemoWebSite\App_Data\countries.shp

     文件       1276  2009-03-03 00:43  SharpMap Demo\DemoWebSite\App_Data\countries.shx

     文件        487  2009-03-03 00:43  SharpMap Demo\DemoWebSite\App_Data\icon.png

     文件      24030  2009-03-03 00:43  SharpMap Demo\DemoWebSite\App_Data\MapInfo\citiesMapInfo.dat

     文件       1912  2009-03-03 00:43  SharpMap Demo\DemoWebSite\App_Data\MapInfo\citiesMapInfo.id

     文件       9216  2009-03-03 00:43  SharpMap Demo\DemoWebSite\App_Data\MapInfo\citiesMapInfo.map

     文件        175  2009-03-03 00:43  SharpMap Demo\DemoWebSite\App_Data\MapInfo\citiesMapInfo.tab

     文件       6713  2009-03-03 00:43  SharpMap Demo\DemoWebSite\App_Data\MapInfo\countriesMapInfo.dat

     文件        588  2009-03-03 00:42  SharpMap Demo\DemoWebSite\App_Data\MapInfo\countriesMapInfo.id

     文件     243200  2009-03-03 00:42  SharpMap Demo\DemoWebSite\App_Data\MapInfo\countriesMapInfo.map

     文件        150  2009-03-03 00:43  SharpMap Demo\DemoWebSite\App_Data\MapInfo\countriesMapInfo.tab

     文件       8036  2009-03-03 00:43  SharpMap Demo\DemoWebSite\App_Data\MapInfo\riversMapInfo.dat

     文件        392  2009-03-03 00:43  SharpMap Demo\DemoWebSite\App_Data\MapInfo\riversMapInfo.id

     文件      44032  2009-03-03 00:43  SharpMap Demo\DemoWebSite\App_Data\MapInfo\riversMapInfo.map

     文件        151  2009-03-03 00:43  SharpMap Demo\DemoWebSite\App_Data\MapInfo\riversMapInfo.tab

     文件       8036  2009-03-03 00:43  SharpMap Demo\DemoWebSite\App_Data\rivers.dbf

     文件        142  2009-03-03 00:43  SharpMap Demo\DemoWebSite\App_Data\rivers.prj

     文件      69344  2009-03-03 00:43  SharpMap Demo\DemoWebSite\App_Data\rivers.shp

     文件        884  2009-03-03 00:43  SharpMap Demo\DemoWebSite\App_Data\rivers.shx

     文件      12337  2009-03-03 00:43  SharpMap Demo\DemoWebSite\App_Data\USA\latlong.dbf

     文件        164  2009-03-03 00:43  SharpMap Demo\DemoWebSite\App_Data\USA\latlong.prj

............此处省略610个文件信息

评论

共有 条评论