可參考這篇文章
http://plus-now.com/?p=230

give 發表在 痞客邦 留言(0) 人氣()

文章出處:
http://www.bostongis.com/PrinterFriendly.aspx?content_name=sql2008_tut02

Shape2SQL載點
http://www.sharpgis.net/page/SQL-Server-2008-Spatial-Tools.aspx
http://www.sharpgis.net/file.axd?file=SqlSpatialTools_build3413.zip

give 發表在 痞客邦 留言(0) 人氣()

OSGeo下有個OGR專案(GDAL的子專案), 這個專案開發了一些工具可用來對圖資進行轉檔
例如 shape file 轉 kml, 轉檔的方式是透過command line的方式來進行, 使用如下的參數即可

ogr2ogr –f KML TWN_county.kml TWN_county.shp

其他ogr2ogr相關的參數可參考
http://www.gdal.org/ogr2ogr.html

ogr2ogr只是這專案中的一個程式, 還有其他對於圖資轉換的一些方便性工具, 都是以command line
的方式開發, 我想透過批次檔的撰寫(.bat or linux shell script, windows下可用cygwin來模擬), 可以對
圖資轉換的部分省略不少功夫, 供大家參考

ps. 這裡有圖形介面版 - ogr2gui
http://www.inventis.ca/ogr2gui/index_en.htm

OGR專案首頁
http://gdal.org/ogr/index.html

give 發表在 痞客邦 留言(0) 人氣()

OSGeo
The Open Source Geospatial Foundation.

GDAL
GDAL is a translator library for raster geospatial data formats.
A library and set of commandline utility applications for reading
and writing a variety of geospatial raster (GDAL) and vector (OGR)
formats.

OGR
The related OGR library (which lives within the GDAL source tree)
provides a similar capability for simple features vector data.

FDO
FDO Data Access Technology is an API for manipulating, defining
and analyzing geospatial information regardless of where it is
stored.

GRASS
Commonly referred to as GRASS, this is free Geographic Information
System (GIS) software used for geospatial data management and analysis,
image processing, graphics/maps production, spatial modeling, and
visualization.

FWTools
FWTools includes OpenEV, GDAL, MapServer, PROJ.4 and OGDI as well as
some supporting components.

OpenEV
OpenEV is a software library and application for viewing and analysing
raster and vector geospatial data.
A high performance raster/vector desktop data viewer and analysis tool.

uDig
uDig is an open source (LGPL) desktop application framework, built with
Eclipse Rich Client (RCP) technology.

QGIS
Quantum GIS (QGIS) is a user friendly Open Source Geographic Information
System (GIS) that runs on Linux, Unix, Mac OSX, and Windows. QGIS supports
vector, raster, and database formats.

MapServer
A web mapping package.

Proj.4

OGDI
OGDI is the Open Geographic Datastore Interface. OGDI is an application
programming interface (API) that uses a standardized access methods to work
in conjunction with GIS software packages (the application) and various
geospatial data products.
A multi-format raster and vector reading techology noteworthy for inclusion
of support for various military formats including VPF (ie. VMAP, VITD), RPF
(ie. CADRG, CIB), and ADRG.

Mapnik
Mapnik is a OpenSource C++/Python toolkit for developing mapping applications.
At the core is a C++ shared library providing algorithms/patterns for spatial
data access and visualization.

OpenLayers
OpenLayers makes it easy to put a dynamic map in any web page. It can display
map tiles and markers loaded from any source.


give 發表在 痞客邦 留言(1) 人氣()

如果您的MVC專案部署到IIS6以後發生找不到網頁的狀況, 請參考下列方法


原文取自(英)







在此使用Option1的做法






Step1: 選擇MVC專案, 點選內容





Step2: 點選設定









Step3: 萬用字元對應程式的地方, 選擇插入









Step4: 插入C:WINDOWSMicrosoft.NETFrameworkv2.0.50727aspnet_isapi.dll, 並將確認該檔案是否存在Unchecked









完成






其他參考文件 - 使用其他自訂字元對應















give 發表在 痞客邦 留言(0) 人氣()

1. 更改語言設定
自訂 -> 使用者自訂 -> 一般 -> 語言 -> 中文繁體


2. 將Tab符號改以空白位移
自訂 -> 使用者自訂 -> 編輯區 -> 欄標 -> 以space取代


3. 修改預設編碼

4. 啟用字詞與備份

5. 新增.aspx連結
自訂 -> 設定程式語言格式




give 發表在 痞客邦 留言(0) 人氣()

1. 以JSON型態為主體
優點: 當HTML頁面載入時, 物件即被初始化
缺點: 會載入不需要的程式碼

範例:
var OneClass =
{
AVariable : "Value",

AMethod : function(A) {
// your code
}
};

使用方式
OneClass.AVariable; // return "Value"
OneClass.AMethod; // return function(A)

注意, 使用JSON的方式時, 成員與程式碼中間是以 : 區隔, 每個成員則是以 , 區隔

2. 以prototype的方式為主體
優點: 當HTML頁面載入時, 物件不被初始化
缺點: 需要初始化

function OneClass()
{
this.AVariable = "Value";

this.AMethod = function(A) {
// your code
};
}

使用方式:
var aClass = new OneClass();
aClass.AVariable; // return "Value"
aClass.AMethod; // return function(A)

注意, 使用prototype的方式時, 成員和程式碼中間是以 = 區隔, 每個成員則是以 ; 區隔

give 發表在 痞客邦 留言(0) 人氣()


MapFile 內的 wms_onlineresource 屬性會影響發佈後重新取得圖資的路徑, 如上圖, 使用者看到的WMS發佈網址是http://10.0.0.110:81/mptest/Service1.svc/Map/1,
當發出Request要求服務時, WMS Client會根據這個URL向Server發出 GetCapabilities 服務參數來取得相關服務資訊, 首次取得WMS結果(GetMap)時還會呼叫一次, 但之後
圖片的放大與縮小, 就是透過 mapserv.exe 的核心來處理了, 如左上角圖片內所顯示的路徑

give 發表在 痞客邦 留言(0) 人氣()

Example:

XmlDocument xml = new XmlDocument();
Element root = xml.DocumentElement;
XmlProcessingInstruction pi = xml.CreateProcessingInstruction("xml-stylesheet", "type='text/xsl' href='ticket.xsl'");
xml.InsertBefore(pi, root);

give 發表在 痞客邦 留言(0) 人氣()

這是今天碰到的問題, 我建立了一個Anonymous Class,

var _a = new
{
UserName = user.Name, // user是另外一個物件
UserInfo = userInfo // userInfo是另外一個物件(UserInfo)
};

接著使用

XmlSerializer writer = new XmlSerializer(_a.GetType());

要進行序列化的動作, 沒想到編譯器回應:
無法序列化 <>f_AnonymousType()`2 因為它沒有參數建構函數

嗯!? 所以Anonymous Class沒有Constructor可供呼叫!?

give 發表在 痞客邦 留言(0) 人氣()