《WebGIS从基础到开发实践》
刘光等编著的《WebGIS从基础到开发实践(基于ArcGIS API for javascript)》示例源码,从作者在书中写的地址下载的,为方便大家寻找,在这传一份。侵删。
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-02-12 08:51 Chapter01
目录 0 2014-02-12 13:39 Chapter01Sample1-1
文件 1460 2014-02-12 16:20 Chapter01Sample1-1IRESTService.cs
目录 0 2014-02-12 08:51 Chapter01Sample1-1Properties
文件 1389 2014-02-12 08:51 Chapter01Sample1-1PropertiesAssemblyInfo.cs
文件 176 2014-02-12 10:39 Chapter01Sample1-1RESTService.svc
文件 1556 2014-02-12 11:07 Chapter01Sample1-1RESTService.svc.cs
文件 5259 2014-02-12 16:20 Chapter01Sample1-1Sample1-1.csproj
文件 1086 2014-02-12 16:20 Chapter01Sample1-1Sample1-1.csproj.user
文件 907 2014-02-12 08:51 Chapter01Sample1-1Sample1-1.sln
文件 25600 2014-02-12 17:04 Chapter01Sample1-1Sample1-1.v11.suo
文件 1299 2014-02-12 08:51 Chapter01Sample1-1Web.Debug.config
文件 1360 2014-02-12 08:51 Chapter01Sample1-1Web.Release.config
文件 943 2014-02-12 13:10 Chapter01Sample1-1Web.config
目录 0 2014-02-12 10:12 Chapter01Sample1-1in
文件 7680 2014-02-12 16:20 Chapter01Sample1-1inSample1-1.dll
文件 15872 2014-02-12 16:20 Chapter01Sample1-1inSample1-1.pdb
目录 0 2014-02-12 08:51 Chapter01Sample1-1obj
目录 0 2014-02-12 16:20 Chapter01Sample1-1objDebug
文件 8313 2014-02-12 13:39 Chapter01Sample1-1objDebugDesignTimeResolveAssemblyReferencesInput.cache
文件 531 2014-02-12 10:12 Chapter01Sample1-1objDebugSample1-1.csproj.FileListAbsolute.txt
文件 3667 2014-02-12 10:12 Chapter01Sample1-1objDebugSample1-1.csprojResolveAssemblyReference.cache
文件 7680 2014-02-12 16:20 Chapter01Sample1-1objDebugSample1-1.dll
文件 15872 2014-02-12 16:20 Chapter01Sample1-1objDebugSample1-1.pdb
目录 0 2014-12-30 13:34 Chapter01Sample1-1objDebugTempPE
文件 0 2014-02-12 08:51 Chapter01Sample1-1objDebugTemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
文件 0 2014-02-12 08:51 Chapter01Sample1-1objDebugTemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
文件 0 2014-02-12 08:51 Chapter01Sample1-1objDebugTemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
目录 0 2014-02-25 11:24 Chapter02
目录 0 2014-02-18 14:09 Chapter02Sample2-1
文件 1044 2014-05-22 07:44 Chapter02Sample2-1HelloWord.html
............此处省略1525个文件信息
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
namespace Sample1_1
{
[DataContract]
public class Person
{
[DataMember]
public string ID;
[DataMember]
public string Name;
[DataMember]
public string Age;
}
// NOTE: You can use the “Rename“ command on the “Refactor“ menu to change the interface name “IRESTService“ in both code and config file together.
[ServiceContract]
public interface IRESTService
{
//POST 操作
[OperationContract]
[WebInvoke(UriTemplate = ““ Method = “POST“)]
Person CreatePerson(Person createPerson);
//Get 操作
[OperationContract]
[WebGet(UriTemplate = ““ ResponseFormat = WebMessageFormat.Json)]
List GetAllPerson();
[OperationContract]
[WebGet(UriTemplate = “{id}“ ResponseFormat = WebMessageFormat.Json)]
Person GetAPerson(string id);
//PUT 操作
[OperationContract]
[WebInvoke(UriTemplate = “{id}“ Method = “PUT“)]
Person UpdatePerson(string id Person updatePerson);
//DELETE 操作
[OperationContract]
[WebInvoke(UriTemplate = “{id}“ Method = “DELETE“)]
void DeletePerson(string id);
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-02-12 08:51 Chapter01
目录 0 2014-02-12 13:39 Chapter01Sample1-1
文件 1460 2014-02-12 16:20 Chapter01Sample1-1IRESTService.cs
目录 0 2014-02-12 08:51 Chapter01Sample1-1Properties
文件 1389 2014-02-12 08:51 Chapter01Sample1-1PropertiesAssemblyInfo.cs
文件 176 2014-02-12 10:39 Chapter01Sample1-1RESTService.svc
文件 1556 2014-02-12 11:07 Chapter01Sample1-1RESTService.svc.cs
文件 5259 2014-02-12 16:20 Chapter01Sample1-1Sample1-1.csproj
文件 1086 2014-02-12 16:20 Chapter01Sample1-1Sample1-1.csproj.user
文件 907 2014-02-12 08:51 Chapter01Sample1-1Sample1-1.sln
文件 25600 2014-02-12 17:04 Chapter01Sample1-1Sample1-1.v11.suo
文件 1299 2014-02-12 08:51 Chapter01Sample1-1Web.Debug.config
文件 1360 2014-02-12 08:51 Chapter01Sample1-1Web.Release.config
文件 943 2014-02-12 13:10 Chapter01Sample1-1Web.config
目录 0 2014-02-12 10:12 Chapter01Sample1-1in
文件 7680 2014-02-12 16:20 Chapter01Sample1-1inSample1-1.dll
文件 15872 2014-02-12 16:20 Chapter01Sample1-1inSample1-1.pdb
目录 0 2014-02-12 08:51 Chapter01Sample1-1obj
目录 0 2014-02-12 16:20 Chapter01Sample1-1objDebug
文件 8313 2014-02-12 13:39 Chapter01Sample1-1objDebugDesignTimeResolveAssemblyReferencesInput.cache
文件 531 2014-02-12 10:12 Chapter01Sample1-1objDebugSample1-1.csproj.FileListAbsolute.txt
文件 3667 2014-02-12 10:12 Chapter01Sample1-1objDebugSample1-1.csprojResolveAssemblyReference.cache
文件 7680 2014-02-12 16:20 Chapter01Sample1-1objDebugSample1-1.dll
文件 15872 2014-02-12 16:20 Chapter01Sample1-1objDebugSample1-1.pdb
目录 0 2014-12-30 13:34 Chapter01Sample1-1objDebugTempPE
文件 0 2014-02-12 08:51 Chapter01Sample1-1objDebugTemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
文件 0 2014-02-12 08:51 Chapter01Sample1-1objDebugTemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
文件 0 2014-02-12 08:51 Chapter01Sample1-1objDebugTemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
目录 0 2014-02-25 11:24 Chapter02
目录 0 2014-02-18 14:09 Chapter02Sample2-1
文件 1044 2014-05-22 07:44 Chapter02Sample2-1HelloWord.html
............此处省略1525个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)