{"id":11244,"date":"2022-12-22T06:00:00","date_gmt":"2022-12-21T21:00:00","guid":{"rendered":"https:\/\/www.muscle-hypertrophy.com\/?p=11244"},"modified":"2023-02-02T16:24:22","modified_gmt":"2023-02-02T07:24:22","slug":"%e7%ac%ac-7-%e7%ab%a0%e3%80%80%e3%82%b8%e3%82%aa%e3%82%b3%e3%83%bc%e3%83%87%e3%82%a3%e3%83%b3%e3%82%b0-beginning-spatial-with-sql-server-2008","status":"publish","type":"post","link":"https:\/\/www.muscle-hypertrophy.com\/?p=11244","title":{"rendered":"\u7b2c 7 \u7ae0\u3000\u30b8\u30aa\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0 (Beginning Spatial with SQL Server 2008)"},"content":{"rendered":"\n<p>\u3000\u3053\u308c\u307e\u3067\u6570\u7ae0\u306b\u308f\u305f\u3063\u3066\uff0c\u591a\u304f\u306e\u7570\u306a\u308b\u6280\u8853\u3092\u7d39\u4ecb\u3057\u3066\u304d\u305f\uff0e\u305d\u306e\u6280\u8853\u306b\u3088\u308a SQL Server 2008 \u5185\u306b\u7a7a\u9593\u30c7\u30fc\u30bf\u3092\u8ffd\u52a0\u3067\u304d\u308b\uff0egeometry \u578b\u304a\u3088\u3073 geography \u578b\u306e\u9759\u7684\u30e1\u30bd\u30c3\u30c9\u3092 WKT, WKB \u304a\u3088\u3073 GML \u306a\u3069\u306e\u30b8\u30aa\u30e1\u30c8\u30ea\u8868\u73fe\u3068\u5171\u306b\u76f4\u63a5\u4f7f\u7528\u3059\u308b\uff0cVirtual Earth \u30a6\u30a7\u30d6\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u4e0a\u306b\u30d7\u30ed\u30c3\u30c8\u30dd\u30a4\u30f3\u30c8\u306b\u3088\u308a\u7a7a\u9593\u306e\u7279\u5fb4\u3092\u8996\u899a\u7684\u306b\u30de\u30fc\u30af\u3059\u308b\uff0c\u3042\u308b\u3044\u306f\uff0c\u69d8\u3005\u306a\u4ed6\u306e\u7a7a\u9593\u30c7\u30fc\u30bf\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u304b\u3089\u65e2\u306b\u5b58\u5728\u3059\u308b\u7a7a\u9593\u30c7\u30fc\u30bf\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\uff0e\u672c\u7ae0\u3067\u306f\uff0cSQL Server \u306b\u304a\u3044\u3066\u7a7a\u9593\u60c5\u5831\u306e\u30a2\u30a4\u30c6\u30e0\u3092\u5b9a\u7fa9\u3059\u308b\u306e\u3092\u52a9\u3051\u3066\u304f\u308c\u308b\u6700\u5f8c\u306e\u4e00\u3064\u306e\u6280\u8853\u306b\u3064\u3044\u3066\u8003\u5bdf\u3057\u3088\u3046\uff0e\u30b8\u30aa\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3067\u3042\u308b\uff0e<\/p>\n<p>\u6ce8\u610f\u3000\u672c\u7ae0\u3067\u8b70\u8ad6\u3057\u3066\u3044\u308b\u30b8\u30aa\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306e\u65b9\u6cd5\u306f .NET \u30a2\u30bb\u30f3\u30d6\u30ea\u306e\u751f\u6210\u3092\u5fc5\u8981\u3068\u3059\u308b\uff0e\u305d\u308c\u306b\u3088\u308a SQLCLR \u306e\u6a5f\u80fd\u3092\u62e1\u5f35\u3057\uff0c\u5916\u90e8\u30a6\u30a7\u30d6\u30b5\u30fc\u30d3\u30b9\u3068\u306e\u9023\u643a\u304c\u53ef\u80fd\u3068\u306a\u308b\uff0e\u3053\u306e\u30a2\u30bb\u30f3\u30d6\u30ea\u3092\u751f\u6210\u3059\u308b\u306e\u306b\u4f7f\u308f\u308c\u305f\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306b\u5f93\u3046\u306b\u306f\uff0cMicrosoft Visual Studio \u3092\u4f7f\u308f\u306a\u304f\u3066\u306f\u306a\u3089\u306a\u3044\uff0e\u4f7f\u7528\u53ef\u80fd\u306a Visual Studio \u306b\u306f\u591a\u304f\u306e\u30a8\u30c7\u30a3\u30b7\u30e7\u30f3\u304c\u5b58\u5728\u3059\u308b\uff0e\u672c\u7ae0\u3067\u306e\u30b3\u30fc\u30c9\u306f Microsoft Visual Basic 2008 Express Edition \u3067\u3082 Microsoft Visual C# 2008 Express Edition \u3067\u3082\u52d5\u4f5c\u3057\uff0c\u3069\u3061\u3089\u3082\u7121\u6599\u3067 http:\/\/www.microsoft.com\/express\/download\/ \u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u308b\uff0e<\/p>\n<p><!--more--><\/p>\n<h3>\u30b8\u30aa\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3068\u306f\u4f55\u304b\uff1f<\/h3>\n<p>\u3000SQL Server 2008 \u3067\u5c0e\u5165\u3055\u308c\u305f\u65b0\u3057\u3044\u6a5f\u80fd\u3067\u3042\u308b geometry \u578b\u3067\u3082 geography \u578b\u3067\u3082\u7a7a\u9593\u30c7\u30fc\u30bf\u578b\u304c\u4f55\u3067\u3042\u308c\uff0c\u307b\u307c\u3059\u3079\u3066\u306e\u65e2\u5b58\u306e SQL Server \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u3059\u3067\u306b\u7a7a\u9593\u60c5\u5831\u306e\u5f62\u614b\u306e\u3044\u304f\u3064\u304b\u3092\u542b\u3093\u3067\u3044\u308b\uff0e\u3064\u307e\u308a\uff0c\u30c7\u30fc\u30bf\u306e\u30a2\u30a4\u30c6\u30e0\u306e\u4f4d\u7f6e\u3092\u8a18\u8ff0\u3059\u308b\u3053\u3068\u3092\u8a31\u3059\u60c5\u5831\u3067\u3042\u308b\uff0e\u3053\u306e\u7a7a\u9593\u60c5\u5831\u306f\u9867\u5ba2\u3084\u30b5\u30d7\u30e9\u30a4\u30e4\u30fc\u306e\u4f4f\u6240\uff0c\u90f5\u4fbf\u756a\u53f7\uff0c\u914d\u9001\u7d4c\u8def\u3084\u3042\u308b\u3044\u306f\u55b6\u696d\u90e8\u9577\u306e\u62c5\u5f53\u3059\u308b\u90fd\u5e02\u3084\u5730\u57df\u306e\u540d\u524d\u3067\u3042\u308b\u304b\u3082\u3057\u308c\u306a\u3044\uff0e\u3053\u306e\u65e2\u5b58\u306e\u60c5\u5831\u306b\u57fa\u3065\u3044\u3066\u7a7a\u9593\u89e3\u6790\u3092\u5b9f\u884c\u3067\u304d\u305f\u3089\u6709\u7528\u3067\u306f\u306a\u3044\u3060\u308d\u3046\u304b\uff1f\u305d\u308c\u3053\u305d\u307e\u3055\u306b\u30b8\u30aa\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u304c\u53ef\u80fd\u306b\u3057\u3066\u304f\u308c\u308b\u3053\u3068\u3067\u3042\u308b\uff0e<\/p>\n<p>\u3000\u30b8\u30aa\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306e\u5b9f\u969b\u306f\uff0c\u30a2\u30a4\u30c6\u30e0\u3084\u5834\u6240\uff0c\u4f8b\u3048\u3070\u4f4f\u6240\uff0c\u30e9\u30f3\u30c9\u30de\u30fc\u30af\u306e\u540d\u524d\uff0c\u3042\u308b\u3044\u306f\u90f5\u4fbf\u756a\u53f7\u306a\u3069\u306e\u4f4d\u7f6e\u3092\u8a18\u8ff0\u3057\u305f\u6587\u5b57\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u3068\uff0c\u7a7a\u9593\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u4f7f\u308f\u308c\u308b\u60c5\u5831\u306b\u95a2\u9023\u3057\u305f\u69cb\u9020\u7684\u306a\u7a7a\u9593\u8868\u73fe\u3092\u6e21\u3059\u3053\u3068\u3067\u3042\u308b\uff0e\u591a\u304f\u306e\u30b8\u30aa\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u6cd5\u306f\uff0c\u305d\u308c\u305e\u308c\u306e\u30c7\u30fc\u30bf\u306e\u30a2\u30a4\u30c6\u30e0\u306b\u95a2\u9023\u3059\u308b\u6b63\u78ba\u306a\u4f4d\u7f6e\u3092\u8868\u73fe\u3059\u308b\u5358\u4e00\u306e Point \u30b8\u30aa\u30e1\u30c8\u30ea\u306e\u5ea7\u6a19\u3092\u8fd4\u3059\uff0e\u4f8b\u3048\u3070\uff0c\u30db\u30ef\u30a4\u30c8\u30cf\u30a6\u30b9\u306e\u4f4f\u6240\u306f\u5408\u8846\u56fd\u5927\u7d71\u9818\u306e\u516c\u90b8\u3067\u3042\u308b\u304c\uff0c1600 Pennsylvania Avenue NW, Washington DC, 20500 \u3067\u3042\u308b\uff0e\u4eee\u306b\u3053\u306e\u4f4f\u6240\u3092\u30b8\u30aa\u30b3\u30fc\u30c9\u3057\u3088\u3046\u3068\u3057\u305f\u3089\uff0c\u3053\u306e\u4f4f\u6240\u306e\u4f4d\u7f6e\u3059\u308b Point \u306b\u95a2\u9023\u3059\u308b\u7def\u5ea6 38.8980\u00b0, \u7d4c\u5ea6 -77.0365 \u00b0 \u3092\u5f97\u308b\u3060\u308d\u3046\uff0e\u30b8\u30aa\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306e\u904e\u7a0b\u3092 Figure 7-1 \u306b\u793a\u3059\uff08\u7565\uff09\uff0e<\/p>\n<p>\u3000\u30b8\u30aa\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u6a5f\u80fd\u3092\u63d0\u4f9b\u3059\u308b\u306b\u306f\u3044\u304f\u3064\u3082\u306e\u7570\u306a\u308b\u65b9\u6cd5\u304c\u3042\u308b\uff0e\u3042\u308b\u30b8\u30aa\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30c4\u30fc\u30eb\u306f\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30d9\u30fc\u30b9\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u3042\u308b\u4e00\u65b9\uff0c\u4ed6\u306e\u30b5\u30fc\u30d3\u30b9\u306f\u30a6\u30a7\u30d6\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3082\u306e\u3067\u3042\u308b\uff0e\u672c\u7ae0\u3067\u306f\uff0c\u8aad\u8005\u304c Microsoft \u306e MapPoint Web Service \u304b\u3089 Find service \u3092\u96c6\u7d04\u3057 SQL Server 2008 \u306b\u76f4\u63a5\u30b8\u30aa\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u6a5f\u80fd\u3092\u4ed8\u52a0\u3059\u308b\u65b9\u6cd5\u3092\u793a\u305d\u3046\u3068\u601d\u3046\uff0e<\/p>\n<p>\u30c1\u30c3\u30d7\u30b9\u3000\u5358\u4e00\u306e\u4f4f\u6240\u3092\u30b8\u30aa\u30b3\u30fc\u30c9\u3057\u305f\u3044\u3060\u3051\u306a\u3089\uff0chttp:\/\/maps.live.com \u306b\u3042\u308b Microsoft Live Search Maps \u3092\u4f7f\u3063\u3066\u30aa\u30f3\u30e9\u30a4\u30f3\u3067\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u308b\uff0e\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u306e\u30b5\u30fc\u30c1\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u4f7f\u3063\u3066\u4f4f\u6240\u3092\u691c\u7d22\u3059\u308b\u3068\uff0c\u554f\u984c\u306e\u4f4d\u7f6e\u306b\u3064\u3044\u3066\u5730\u56f3\u3092\u8003\u3048\u305f\u3068\u304d\uff0c\u30b7\u30a7\u30a2\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\uff08\u5730\u56f3\u306e\u53f3\u4e0a\u306e\u30b3\u30fc\u30ca\u30fc\u306b\u4f4d\u7f6e\u3057\u3066\u3044\u308b\uff09\uff0e\u751f\u6210\u3055\u308c\u305f URL \u30ea\u30f3\u30af\u5185\u306b\uff0c&amp;cp= \u76f4\u5f8c\u306e2\u3064\u306e\u6570\u5b57\u306b\u6ce8\u76ee\u3059\u308b\uff0e\u3053\u308c\u304c\u305d\u306e\u4f4f\u6240\u306e\u7def\u5ea6\u3068\u7d4c\u5ea6\u306e\u5ea7\u6a19\u3067\u3042\u308a\uff0c\u305d\u306e\u5730\u56f3\u304c\u8003\u3048\u305f\u3082\u306e\u3067\u3042\u308b\uff08EPSG:4326 \u7a7a\u9593\u53c2\u7167\u7cfb\u3092\u4f7f\u3063\u3066\u3044\u308b\uff09\uff0e<\/p>\n<h3>Map Point Web Service<\/h3>\n<p>\u3000Microsoft \u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306b\u3088\u308b\u3068\uff0cMapPoint Service \u3068\u306f<\/p>\n<blockquote>\n<p>Microsoft \u306b\u3088\u308a\u30db\u30b9\u30c8\u3055\u308c\u308b SOAP API \u3092\u4f7f\u3063\u305f XML \u30a6\u30a7\u30d6\u30b5\u30fc\u30d3\u30b9\u3067\u3042\u308a\uff0c\u30a8\u30f3\u30bf\u30fc\u30d7\u30e9\u30a4\u30ba\u304a\u3088\u3073\u72ec\u7acb\u3057\u305f\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u4f01\u696d\u306b\u4f7f\u308f\u308c\uff0c\u4f4d\u7f6e\u30d9\u30fc\u30b9\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u96c6\u7d04\u3059\u308b\uff0ehttp:\/\/www.microsoft.com\/virtualearth\/platform\/mappoint.aspx<\/p>\n<\/blockquote>\n<p>\u4ed8\u8a18\u3000MapPoint Web Service \u306f Microsoft MapPoint \u3068\u540c\u4e00\u3067\u306f\u306a\u3044\uff0e\u305d\u308c\u306f Microsoft Windows \u5411\u3051\u306e\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u3042\u308a\uff0c\u65c5\u884c\u306e\u8a08\u753b\u306b\u4e3b\u306b\u4f7f\u308f\u308c\u308b\uff0e<\/p>\n<p>\u3000\u7b2c5\u7ae0\u3067\u7d39\u4ecb\u3057\u305f Virtual Earth \u30a6\u30a7\u30d6\u30b5\u30fc\u30d3\u30b9\u540c\u69d8\uff0cMapPoint Web Service \u306f\u5730\u7406\u7a7a\u9593\u30b3\u30f3\u30c6\u30f3\u30c4\u306b\u95a2\u9023\u3059\u308b\u7bc4\u56f2\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u63d0\u4f9b\u3057\uff0c\u305d\u308c\u306b\u306f\u95a2\u5fc3\u306e\u3042\u308b\u5730\u70b9\u8fd1\u508d\u3092\u767a\u898b\u3057\u5730\u70b9\u9593\u306e\u7d4c\u8def\u3092\u767a\u898b\u3059\u308b\u80fd\u529b\u304c\u542b\u307e\u308c\u308b\uff0eVirtual Earth API \u304c\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u306e\u30de\u30c3\u30d7\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306b JavaScript \u7d4c\u7531\u3067\u958b\u767a\u8005\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u767a\u884c\u3055\u305b\u308b\u306e\u306b\u5bfe\u3057\u3066\uff0cMapPoint Web Service \u306f\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u7d4c\u7531\u3067 Simple Object Access Protocol (SOAP) \u6cd5\u306b\u3088\u308a\u30a2\u30af\u30bb\u30b9\u3055\u308c\u308b\uff0e\u672c\u7ae0\u3067\u30b8\u30aa\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3092\u5b9f\u884c\u3059\u308b MapPoint \u306f\u300c\u767a\u898b\u300d\u30b5\u30fc\u30d3\u30b9\u3067\u3042\u308a\uff0c\u6b21\u306e\u30e1\u30bd\u30c3\u30c9\u3067\u63d0\u4f9b\u3055\u308c\u308b\u3082\u306e\u3067\u3042\u308b\uff0e<\/p>\n<ul>\n<li>Find()<\/li>\n<li>FindAddress()<\/li>\n<li>FindByID()<\/li>\n<li>FindByProperty()<\/li>\n<li>FindNearby()<\/li>\n<li>FindPolygon()<\/li>\n<li>FindNearRoute()<\/li>\n<li>GetLocationInfo()<\/li>\n<li>ParseAddress()<\/li>\n<\/ul>\n<p>\u3000\u3053\u308c\u3089\u306e\u30e1\u30bd\u30c3\u30c9\u306f\u3059\u3079\u3066\u5730\u7403\u4e0a\u306e\u5730\u7269\u306e\u30b8\u30aa\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306b\u95a2\u9023\u3059\u308b\u69d8\u3005\u306a\u6a5f\u80fd\u3092\u63d0\u4f9b\u3059\u308b\uff0e\u591a\u304f\u306e\u4e00\u822c\u7684\u306a\u30b8\u30aa\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306e\u5fdc\u7528\u306f\uff0c\u4f8b\u3048\u3070\u9867\u5ba2\u3084\u30b5\u30d7\u30e9\u30a4\u30e4\u30fc\u306e\u4f4f\u6240\u304b\u3089\u5730\u70b9\u306e\u5ea7\u6a19\u3092\u53d6\u5f97\u3059\u308b\u3082\u306e\u3067\u3042\u308b\uff0e\u3053\u308c\u306f Find \u30b5\u30fc\u30d3\u30b9\u306e\u884c\u3046 FindAddress() \u30e1\u30bd\u30c3\u30c9\u3067\u3042\u308a\uff0c\u672c\u7ae0\u3067\u6271\u3046\u30e1\u30bd\u30c3\u30c9\u3067\u3042\u308b\uff0e<\/p>\n<p>\u30c1\u30c3\u30d7\u30b9\u3000FindServiceSoap \u30af\u30e9\u30b9\u306e\u5b8c\u5168\u306a\u8a73\u7d30\u306f MSDN \u30e9\u30a4\u30d6\u30e9\u30ea http:\/\/msdn.microsoft.com\/en-us\/library\/aa502416.aspx \u3067\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u308b\uff0e<\/p>\n<h4>SQL Server \u304b\u3089 MapPoint Web Service \u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b<\/h4>\n<p>\u3000\u30b8\u30aa\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u6a5f\u80fd\u3092 SQL Server \u306b\u8ffd\u52a0\u3059\u308b\u305f\u3081\uff0c.NET Base Class Libray (BCL) \u3067\u63d0\u4f9b\u3055\u308c\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u5229\u7528\u3057\u3066\uff0c\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u7d4c\u7531\u3067 MapPoint Web Service \u306b\u63a5\u7d9a\u3059\u308b .NET \u30e1\u30bd\u30c3\u30c9\u3092\u751f\u6210\u3059\u308b\uff0eSQL Server 2008 \u306f .NET Framework CLR \u3092\u30db\u30b9\u30c8\u3057\u3066\u3044\u308b\u305f\u3081\uff0cSQL Server \u304b\u3089 T-SQL \u3092\u4f7f\u3063\u3066 MapPoint Web Service \u306b\u76f8\u4e92\u4f5c\u7528\u3067\u304d\uff0c\u4f4f\u6240\u306e\u8a73\u7d30\u3092\u63d0\u4f9b\u3057\uff0cSQL Server \u5185\u3067\u76f4\u63a5\u306b CLR \u304b\u3089\u30b8\u30aa\u30b3\u30fc\u30c9\u3055\u308c\u305f\u7d50\u679c\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\uff0e\u3053\u308c\u306f T-SQL \u5358\u72ec\u3067\u306f\u4e0d\u53ef\u80fd\u306a\u6a5f\u80fd\u3092\u63d0\u4f9b\u3059\u308b\u305f\u3081\u306b SQL Server \u5185\u3067 .NET \u304c\u3069\u3046\u4f7f\u308f\u308c\u308b\u304b\u306e\u5225\u306e\u4f8b\u3067\u3042\u308b\uff0e<\/p>\n<p>\u3000\u672c\u7ae0\u3067\u306f\uff0cSQL Server 2008 \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u30b8\u30aa\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u6a5f\u80fd\u3092\u8ffd\u52a0\u3059\u308b\u305f\u3081\u306b\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u3092\u793a\u305d\u3046\uff0e<\/p>\n<ol>\n<li>MapPoint Find \u30b5\u30fc\u30d3\u30b9\u306b\u63a5\u7d9a\u3059\u308b .NET \u30af\u30e9\u30b9\u3092\u751f\u6210\u3057\uff0c\u90f5\u4fbf\u756a\u53f7\u3092\u8a18\u8ff0\u3057\u305f\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u30bb\u30c3\u30c8\u3092\u9001\u308b\uff0e\u5bb6\u5c4b\u540d\/\u5bb6\u5c4b\u30ca\u30f3\u30d0\u30fc\uff0c\u4f4f\u6240\uff0c\u5e02\uff0c\u5730\u57df\uff0c\u90f5\u4fbf\u756a\u53f7\u304a\u3088\u3073\u56fd\u540d\uff0e\u305d\u306e\u30af\u30e9\u30b9\u306f\u30b5\u30fc\u30d3\u30b9\u304b\u3089\u53cd\u5fdc\u3092\u53d7\u3051\uff0c\u4e0e\u3048\u3089\u308c\u305f\u4f4f\u6240\u3092\u8868\u73fe\u3059\u308b Point \u306e WKT \u69cb\u6587\u306b\u5909\u63db\u3059\u308b\uff0e<\/li>\n<li>SQL Server 2008 \u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u53ef\u80fd\u306a\u30b3\u30f3\u30d1\u30a4\u30eb\u6e08\u307f\u30a2\u30bb\u30f3\u30d6\u30ea\u30d5\u30a1\u30a4\u30eb (.dll \u62e1\u5f35\u5b50) \u306b .NET \u30af\u30e9\u30b9\u3092\u30d3\u30eb\u30c9\u3059\u308b\uff0e<\/li>\n<li>SQL Server \u5185\u3067\uff0c\u30a2\u30bb\u30f3\u30d6\u30ea\u3067\u5b9a\u7fa9\u3055\u308c\u305f .NET \u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3059\u306e\u306b\u4f7f\u308f\u308c\u308b\u65b0\u3057\u3044\u00a0T-SQL \u95a2\u6570\u3092\u5b9a\u7fa9\u3059\u308b\uff0e<\/li>\n<li>\u30b8\u30aa\u30b3\u30fc\u30c9\u3055\u308c\u305f\u7d50\u679c\u306e WKT \u8868\u73fe\u3092 STPointFromText() \u30e1\u30bd\u30c3\u30c9\u306b\u63d0\u4f9b\u3057\u3066\uff0c\u4f4f\u6240\u304b\u3089\u65b0\u3057\u3044 Point \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u751f\u6210\u3059\u308b\uff0e<\/li>\n<\/ol>\n<p>\u3000\u59cb\u3081\u308b\u524d\u306b\uff0cMapPoint Web Service \u3067\u4f7f\u3046\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u30b5\u30a4\u30f3\u30a2\u30c3\u30d7\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\uff0e\u3053\u308c\u306b\u3064\u3044\u3066\u306f\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u8ff0\u3079\u308b\uff0e<\/p>\n<h4>MapPoint Web Service \u306b\u30b5\u30a4\u30f3\u30a2\u30c3\u30d7\u3059\u308b<\/h4>\n<p>\u3000MapPoint Wev Service \u306f2\u3064\u306e\u7570\u306a\u308b\u74b0\u5883\u3092\u63d0\u4f9b\u3059\u308b\uff0e<\/p>\n<ul>\n<li>\u304a\u8a66\u3057\u74b0\u5883\u306f\u7121\u6599\u3067\u4f7f\u3048\u308b\u30b5\u30fc\u30d3\u30b9\u3067\uff0c\u304a\u8a66\u3057\uff0c\u30c7\u30e2\u30f3\u30b9\u30c8\u30ec\u30fc\u30b7\u30e7\u30f3\u3084\u6982\u5ff5\u5b9f\u8a3c\u76ee\u7684\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u6642\u306b\u4f7f\u308f\u308c\u308b\uff0e<\/li>\n<li>\u672c\u756a\u74b0\u5883\u306f\u5546\u7528\u74b0\u5883\u3067\u3042\u308a\uff0cMapPoint \u3092\u4f7f\u3046\u751f\u304d\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u914d\u5099\u3059\u308b\u6642\u306f\u5fc5\u305a\u3053\u308c\u3092\u4f7f\u308f\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\uff0e<\/li>\n<\/ul>\n<p>\u3000\u3069\u3061\u3089\u306e\u74b0\u5883\u3092\u4f7f\u3046\u524d\u3067\u3082\uff0cVirtual Earth Platform \u30c7\u30d9\u30ed\u30c3\u30d1\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u307e\u305a\u767b\u9332\u3057\u306a\u304f\u3066\u306f\u306a\u3089\u306a\u3044\uff08MapPoint Web Service \u3068 Virtual Earth \u306f\u59c9\u59b9\u30b5\u30fc\u30d3\u30b9\u3067\u3042\u308a\uff0c\u540c\u3058\u30a2\u30ab\u30a6\u30f3\u30c8\u8a73\u7d30\u3092\u4f7f\u3063\u3066\u30a2\u30af\u30bb\u30b9\u3055\u308c\u308b\uff09\uff0e\u672c\u7ae0\u3067\u306e\u30b3\u30fc\u30c9\u4f8b\u3067\u306f\uff0c\u7b46\u8005\u306f\u304a\u8a66\u3057\u74b0\u5883\u3092\u4f7f\u3046\u304c\uff0c\u8aad\u8005\u306f\u7121\u6599\u306e\u30c7\u30d9\u30ed\u30c3\u30d1\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u308b\uff0e\u4eee\u306b\u8aad\u8005\u304c\u5546\u7528\u74b0\u5883\u3092\u4f7f\u3046\u305f\u3081\u306b\u767b\u9332\u3055\u308c\u305f\u306a\u3089\uff0c\u8981\u6c42\u3055\u308c\u308b\u8cc7\u683c\u8a3c\u660e\u3068\u9069\u5207\u306a\u53c2\u7167\u3092\u4ee3\u66ff\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\uff0e\u8a55\u4fa1\u958b\u767a\u8005\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u8981\u6c42\u3059\u308b\u306b\u306f\uff0c\u6b21\u306e\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u306e\u6307\u793a\u306b\u5f93\u3046\u3088\u3046\u306b\uff0ehttps:\/\/mappoint-css.live.com\/MwsSignUp\/Default.aspx.<\/p>\n<p>\u3000\u5fc5\u8981\u306a\u767b\u9332\u30d5\u30a9\u30fc\u30e0\u3092\u4e00\u5ea6\u5b8c\u4e86\u3055\u305b\u308b\u3068\uff0c\u958b\u767a\u8005\u30a2\u30ab\u30a6\u30f3\u30c8 ID \u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u8a2d\u5b9a\u65b9\u6cd5\u306e\u6307\u793a\u304c\u542b\u307e\u308c\u305f e-mail \u3092\u53d7\u3051\u53d6\u308b\u3060\u308d\u3046\uff0e\u4e00\u5ea6\u767b\u9332\u30d7\u30ed\u30bb\u30b9\u304c\u5b8c\u4e86\u3057\u305f\u3089\uff0c\u30a2\u30ab\u30a6\u30f3\u30c8 ID \u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5b89\u5168\u306a\u624b\u5143\u306b\u4fdd\u5b58\u3059\u308b\u3088\u3046\u6ce8\u610f\u3059\u308b\u3053\u3068\uff0c\u30b8\u30aa\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u6a5f\u80fd\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306b\u5f8c\u307b\u3069 SQL Server \u306b MapPoint Web Service \u306b\u30a2\u30af\u30bb\u30b9\u3055\u305b\u308b\u5fc5\u8981\u304c\u3042\u308b\u305f\u3081\u3067\u3042\u308b\uff0e<\/p>\n<p>\u6ce8\u610f\u3000MapPoint Web Service \u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u30a2\u30ab\u30a6\u30f3\u30c8\u306f Windows Live ID \u306b\u30ea\u30f3\u30af\u3057\u3066\u3044\u308b\u304c\uff0c\u540c\u3058\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u4f7f\u3063\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u306a\u3044\uff0e<\/p>\n<h3>.NET \u30a2\u30bb\u30f3\u30d6\u30ea\u3092\u751f\u6210\u3059\u308b<\/h3>\n<p>\u3000SQL Server \u5185\u90e8\u304b\u3089\u30b8\u30aa\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\uff0cSQLCLR \u306b\u3088\u308a\u5b9f\u884c\u3055\u308c\u308b\u30ab\u30b9\u30bf\u30e0\u306e .NET \u30a2\u30bb\u30f3\u30d6\u30ea\u3092\u30d3\u30eb\u30c9\u3057\u3088\u3046\uff0e\u3053\u308c\u306f SQL Server \u5185\u90e8\u3067 .NET CLR \u3092\u4f7f\u3046\u5229\u76ca\u306e\u5225\u306e\u4f8b\u3067\u3042\u308b\uff0eBCL \u5185\u306b\u542b\u307e\u308c\u308b\u3044\u304b\u306a\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u3082\u4f7f\u3046 SQL Server \u306e\u6a5f\u80fd\u3092\u62e1\u5f35\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u308b\uff0e.NET \u30a2\u30bb\u30f3\u30d6\u30ea\u3092\u751f\u6210\u3057\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u306e\u306b\u6700\u3082\u7c21\u5358\u306a\u65b9\u6cd5\u306f\uff0cMicrosoft Visual Studio \u306e\u3088\u3046\u306a\u7d71\u5408\u958b\u767a\u74b0\u5883 (IDE) \u3092\u4f7f\u3046\u3053\u3068\u3067\u3042\u308b\uff0e\u4f7f\u7528\u53ef\u80fd\u306a Visual Studio \u306e\u30a8\u30c7\u30a3\u30b7\u30e7\u30f3\u306f\u3044\u304f\u3064\u304b\u3042\u308b\u304c\uff0c\u672c\u7ae0\u306e\u30b3\u30fc\u30c9\u30ea\u30b9\u30c8\u306f Visual Studio 2005 \u307e\u305f\u306f Visual Studio 2008 \u3067\u52d5\u4f5c\u3057\uff0c\u7121\u6599\u3067\u5229\u7528\u53ef\u80fd\u306a Visual Basic \u304a\u3088\u3073 Visual C# Express \u30a8\u30c7\u30a3\u30b7\u30e7\u30f3\u306b\u542b\u307e\u308c\uff0chttp:\/\/www.microsoft.com\/express\/download\/ \u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u308b\uff0e<\/p>\n<p>\u3000.NET \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u8a00\u8a9e\u306b\u5bfe\u3057\u3066\u4e2d\u7acb\u3067\u3042\u308b\u3053\u3068\u3092\u9298\u8a18\u3055\u308c\u305f\u3044\uff0e\u3064\u307e\u308a\uff0c.NET \u30b3\u30fc\u30c9\u306f C# \u3084 VB.NET \u3092\u542b\u3080\u591a\u304f\u306e\u5171\u901a\u8a00\u8a9e\u4ed5\u69d8 (CLS) \u306e\u4e00\u3064\u3067\u8a18\u8ff0\u3055\u308c\u3066\u3044\u308b\uff0e\u3069\u306e CLS \u8a00\u8a9e\u3067\u66f8\u304b\u308c\u305f\u30b3\u30fc\u30c9\u3082 BCL \u306b\u30a2\u30af\u30bb\u30b9\u3057\u5171\u901a\u8a00\u8a9e\u30e9\u30f3\u30bf\u30a4\u30e0 (CLR) \u30a8\u30f3\u30b8\u30f3\u3092\u4f7f\u3063\u3066\u5b9f\u884c\u3055\u308c\u308b\uff0e\u5fc5\u8981\u306a\u30b3\u30fc\u30c9\u306f C# \u304a\u3088\u3073 Visual Basic \u306e\u4e21\u65b9\u3067\u8a18\u8ff0\u3057\uff0c\u697d\u306b\u611f\u3058\u308b\u8a00\u8a9e\u3092\u9078\u629e\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3088\u3046\uff0e<\/p>\n<p>\u4ed8\u8a18\u3000\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u3067\u306f Visual Basic 2008 Express \u30a8\u30c7\u30a3\u30b7\u30e7\u30f3\u3092\u4f7f\u3063\u3066 .NET \u30a2\u30bb\u30f3\u30d6\u30ea\u306e\u751f\u6210\u3092\u8a18\u8ff0\u3059\u308b\uff0eVisual Studio \u306e\u7570\u306a\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4f7f\u3063\u3066\u30a2\u30bb\u30f3\u30d6\u30ea\u3092\u751f\u6210\u3059\u308b\u3068\u304d\u306f\uff0c\u3044\u304f\u3064\u304b\u306e\u30e1\u30cb\u30e5\u30fc\u30a2\u30a4\u30c6\u30e0\u306f\u7570\u306a\u308b\u30d8\u30c3\u30c0\u30fc\u3067\u898b\u3048\u3066\u3044\u308b\u304b\u3082\u3057\u308c\u306a\u3044\uff0e<\/p>\n<h4>\u65b0\u3057\u3044\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b<\/h4>\n<p>\u3000\u6700\u521d\u306e\u30bf\u30b9\u30af\u306f\u65b0\u3057\u3044\u30af\u30e9\u30b9\u30d5\u30a1\u30a4\u30d6\u30e9\u30ea\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u751f\u6210\u3059\u308b\u3053\u3068\u3067\u3042\u308a\uff0c\u6b21\u306e\u3053\u308c\u3089\u306e\u30b9\u30c6\u30c3\u30d7\u3092\u53c2\u7167\u306e\u3053\u3068\uff0e<\/p>\n<ol>\n<li>Visual Studio \u30e1\u30cb\u30e5\u30fc\u30d0\u30fc\u304b\u3089\uff0c\u300c\u30d5\u30a1\u30a4\u30eb\u300d\u2192\u300c\u65b0\u3057\u3044\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u300d\u3092\u9078\u3076\uff08Ctrl+N\u3092\u62bc\u4e0b\u3059\u308b\uff09\uff0e<\/li>\n<li>\u300c\u65b0\u3057\u3044\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u300d\u30c0\u30a4\u30a2\u30ed\u30b0\u30dc\u30c3\u30af\u30b9\u5185\u3067\uff0cFigure 7-2 \u306b\u793a\u3059\uff08\u7565\uff09\u304c\uff0cClass Library \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u9078\u629e\u3057\uff0c\u65b0\u3057\u3044\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d\u3092\u30bf\u30a4\u30d7\u3059\u308b\uff0e\u3053\u306e\u4f8b\u3067\u306f\uff0c\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b Geocoder \u3068\u540d\u4ed8\u3051\u305f\uff0e<\/li>\n<li>OK\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\uff0e<\/li>\n<\/ol>\n<p>\u30c1\u30c3\u30d7\u30b9\u3000Visual Studio Professional \u30a8\u30c7\u30a3\u30b7\u30e7\u30f3\u3084 Team System \u3092\u4f7f\u3063\u3066\u3044\u308b\u306a\u3089\uff0c\u30b8\u30a7\u30cd\u30ea\u30c3\u30af Class Library \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3088\u308a\u3082 SQL Server Project \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u308b\uff0e\u305d\u308c\u306f Visual Studio \u304b\u3089 SQL Server \u306b\u30a2\u30bb\u30f3\u30d6\u30ea\u3092\u81ea\u52d5\u3067\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\uff0c\u3064\u3044\u3067\u306b\u30c7\u30d0\u30c3\u30b0\u8a02\u6b63\u6a5f\u80fd\u3092\u63d0\u4f9b\u3057\u3066\u304f\u308c\u308b\uff0e<\/p>\n<p>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30a6\u30a3\u30f3\u30c9\u30a6\u4e0b\u90e8\u306b\u3042\u308b\u30b9\u30c6\u30fc\u30bf\u30b9\u30d0\u30fc\u306b\u306f\u6b21\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\uff0e<\/p>\n<p>Creating project &#8216;Geocoder&#8217;&#8230; project creation successful.<\/p>\n<p>\u3000\u4e00\u5ea6\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u751f\u6210\u3055\u308c\u308b\u3068\uff0c\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u304c\u51fa\u73fe\u3057\uff0c\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u5185\u90e8\u306b Class1.vb \u30d5\u30a1\u30a4\u30eb\u304c\u30e1\u30a4\u30f3\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u898b\u3048\u308b\u3088\u3046\u306b\u306a\u308b\uff08\u3042\u308b\u3044\u306f Visual C# \u3092\u4f7f\u3046\u306a\u3089 Class1.cs\uff09\uff0e<\/p>\n<h4>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u8a2d\u5b9a\u3059\u308b<\/h4>\n<p>\u3000\u30b8\u30aa\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u6a5f\u80fd\u3092\u8ffd\u52a0\u3059\u308b\u524d\u306b\uff0c\u305d\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8a2d\u5b9a\u306b\u3044\u304f\u3064\u3082\u306e\u5909\u66f4\u3092\u52a0\u3048\u308b\u5fc5\u8981\u304c\u3042\u308b\uff0e\u3053\u308c\u3089\u306e\u5909\u66f4\u3092\u884c\u3046\u305f\u3081\uff0c\u307e\u305a\u30e1\u30a4\u30f3\u30e1\u30cb\u30e5\u30fc\u30d0\u30fc\u304b\u3089\u300c\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u300d\u2192\u300cGeocoder \u30d7\u30ed\u30d1\u30c6\u30a3\u300d\u3092\u9078\u3093\u3067\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u30da\u30fc\u30b8\u3092\u307e\u305a\u958b\u304f\uff0e<\/p>\n<h5>\u51fa\u529b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u8a2d\u5b9a\u3059\u308b<\/h5>\n<p>\u3000Visual Studio \u304c\u30b3\u30f3\u30d1\u30a4\u30eb\u6e08\u307f\u30a2\u30bb\u30f3\u30d6\u30ea (DLL) \u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210\u3059\u308b\u305f\u3081\u306e\u51fa\u529b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\uff0e\u30e1\u30e2\u3067\u304d\u3066\u7c21\u5358\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u4f4d\u7f6e\u3092\u9078\u3076\u3053\u3068\u304c\u91cd\u8981\u3067\u3042\u308b\uff0e\u306a\u305c\u306a\u3089\u5f8c\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u6e08\u307f\u30a2\u30bb\u30f3\u30d6\u30ea\u3092 SQL Server \u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u3068\u304d\u306f\u624b\u52d5\u3067\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\u3092\u6307\u5b9a\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u304b\u3089\u3067\u3042\u308b\uff0e\u30b3\u30f3\u30d1\u30a4\u30eb\u6e08\u307f\u30a2\u30bb\u30f3\u30d6\u30ea\u3092\u7f6e\u304f\u4f4d\u7f6e\u3092\u8a2d\u5b9a\u3059\u308b\u306b\u306f<\/p>\n<ol>\n<li>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u30da\u30fc\u30b8\u306e\u5de6\u5074\u306e\u30bf\u30d6\u306e\u30ea\u30b9\u30c8\u304b\u3089\u300c\u30b3\u30f3\u30d1\u30a4\u30eb\u300d\u3092\u9078\u3076\uff0eFigure 7-3 \u306b\u793a\u3059\u3088\u3046\u306b\uff08\u7565\uff09\uff08Visual C# 2008 Express \u3092\u4f7f\u3046\u306a\u3089\uff0c\u3053\u306e\u30bf\u30d6\u306f\u4ee3\u308f\u308a\u306b\u300c\u30d3\u30eb\u30c9\u300d\u3068\u547c\u3070\u308c\u308b\uff09\uff0e<\/li>\n<li>\u300c\u30d3\u30eb\u30c9\u51fa\u529b\u30d1\u30b9\u300d\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u751f\u6210\u3057\u305f\u30b3\u30f3\u30d1\u30a4\u30eb\u6e08\u307f\u30a2\u30bb\u30f3\u30d6\u30ea\u3092\u7f6e\u304d\u305f\u3044\u4f4d\u7f6e\u3092\u5165\u529b\u3059\u308b\uff0e\u3053\u306e\u4f8b\u3067\u306f\uff0c\u30d1\u30b9\u3092 C:\\Spatial\\ \u3068\u8a2d\u5b9a\u3057\u305f\uff08Visual C# 2008 Express \u30a8\u30c7\u30a3\u30b7\u30e7\u30f3\u3067\u306f\u305d\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u306f\u5358\u306b\u300c\u51fa\u529b\u30d1\u30b9\u300d\u3068\u547c\u3070\u308c\u308b\uff09\uff0e<\/li>\n<\/ol>\n<h5>\u30b7\u30ea\u30a2\u30eb\u5316\u30a2\u30bb\u30f3\u30d6\u30ea\u3092\u751f\u6210\u3059\u308b<\/h5>\n<p>\u3000\u6211\u3005\u306e\u30b8\u30aa\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u6a5f\u80fd\u306f\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u63a5\u7d9a\u7d4c\u7531\u3067 MapPoint Web Service \u306b\u30c7\u30fc\u30bf\u3092\u9001\u53d7\u4fe1\u3059\u308b\u3053\u3068\u306b\u983c\u3063\u3066\u3044\u308b\uff0e\u3053\u306e\u65b9\u6cd5\u3067 .NET \u30a2\u30bb\u30f3\u30d6\u30ea\u304c Web \u8cc7\u6e90\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u304d\u306f\u3044\u3064\u3067\u3082\uff0c\u3059\u3079\u3066\u306e\u30c7\u30fc\u30bf\u306f\u307e\u305a\u30b7\u30ea\u30a2\u30eb\u5316\uff0c\u3064\u307e\u308a\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u7d4c\u7531\u3067\u4f1d\u9054\u3059\u308b\u305f\u3081\u30d0\u30a4\u30c8\u306e\u7cfb\u5217\u306b\u5909\u63db\u3055\u308c\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\uff0eVisual Studio \u306f\u6211\u3005\u306e\u30b3\u30fc\u30c9\u306b\u5fc5\u8981\u306a\u30b7\u30ea\u30a2\u30eb\u5316\u3092\u542b\u3080\u4ed8\u52a0\u7684\u306a\u30a2\u30bb\u30f3\u30d6\u30ea\u3092\u751f\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\uff0c\u3053\u306e\u4ed8\u52a0\u7684\u306a\u30a2\u30bb\u30f3\u30d6\u30ea\u3092\u751f\u6210\u3059\u308b\u3053\u3068\u3092\u78ba\u7acb\u3059\u308b\u305f\u3081\uff0c\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u3092\u5b9f\u884c\u3059\u308b\uff0e<\/p>\n<ol>\n<li>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u30da\u30fc\u30b8\u306e\u300c\u30b3\u30f3\u30d1\u30a4\u30eb\u300d\uff08VB.NET\uff09\u300c\u30d3\u30eb\u30c9\u300d\uff08C#\uff09\u30bf\u30d6\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\uff0e<\/li>\n<li>\u30da\u30fc\u30b8\u4e0b\u90e8\u306e Advanced Compile Options \u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\uff0eAdvanced Compiler Setting \u30c0\u30a4\u30a2\u30ed\u30b0\u30dc\u30c3\u30af\u30b9\u304c\u51fa\u73fe\u3059\u308b\u3060\u308d\u3046\uff0eVisual C# \u3092\u4f7f\u3063\u3066\u3044\u308b\u306a\u3089\uff0c\u4ee3\u308f\u308a\u306b\u30d3\u30eb\u30c9\u30bf\u30d6\u306e\u4e0b\u90e8\u306b\u30b9\u30af\u30ed\u30fc\u30eb\u3059\u308b\u3060\u3051\u3067\u3042\u308b\uff0e<\/li>\n<li>Generate Serialization Assemblies \u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30ea\u30b9\u30c8\u3067 On \u3092\u9078\u3076\uff0e<\/li>\n<li>OK\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066 Advanced Compiler Setting \u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u9589\u3058\u308b\uff08Visual Basic 2008 Express \u30a8\u30c7\u30a3\u30b7\u30e7\u30f3\u306e\u307f\uff09\uff0e<\/li>\n<\/ol>\n<h5>\u30a6\u30a7\u30d6\u53c2\u7167\u3092\u8ffd\u52a0\u3059\u308b<\/h5>\n<p>\u3000\u6211\u3005\u306e\u30b8\u30aa\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u5185\u3067 Find \u30b5\u30fc\u30d3\u30b9\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3046\u524d\u306b\uff0c.NET \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b MapPoint Web Service \u304a\u3088\u3073\u305d\u306e\u63d0\u4f9b\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u63d0\u4f9b\u3059\u308b\u305f\u3081\u306e\u65b9\u6cd5\u3092\u5fc5\u8981\u3068\u3059\u308b\uff0e\u3053\u308c\u306f web reference \u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3067\u306a\u3055\u308c\u308b\uff0eweb reference \u306f Web Services Description Language (WSDL) \u30d5\u30a1\u30a4\u30eb\u306e URL \u3092\u4e0e\u3048\u308b\uff0e\u3053\u308c\u306f XML \u30d5\u30a1\u30a4\u30eb\u306e\u4e00\u7a2e\u3067\uff0c\u30a6\u30a7\u30d6\u30b5\u30fc\u30d3\u30b9\u304a\u3088\u3073\u305d\u306e\u63d0\u4f9b\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u8a18\u8ff0\u3057\u305f\u3082\u306e\u3067\u3042\u308b\uff0e\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u3067 MapPoint Web Serveice \u306b web reference \u3092\u8ffd\u52a0\u3067\u304d\u308b\uff0e<\/p>\n<ol>\n<li>\u30e1\u30a4\u30f3\u30e1\u30cb\u30e5\u30fc\u30d0\u30fc\u304b\u3089\u300cProject\u300d\u2192\u300cAdd Service Reference\u300d\u3092\u9078\u3076\uff0e<\/li>\n<li>Add Serveice Reference \u30c0\u30a4\u30a2\u30ed\u30b0\u30dc\u30c3\u30af\u30b9\u3067\uff0c\u5de6\u4e0b\u30b3\u30fc\u30ca\u30fc\u306b\u3042\u308b Advanced \u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\uff0e<\/li>\n<li>Service Reference Setting \u30c0\u30a4\u30a2\u30ed\u30b0\u30dc\u30c3\u30af\u30b9\u3067\uff0c\u30a6\u30a3\u30f3\u30c9\u30a6\u4e0b\u90e8\u306b\u3042\u308b Add Web Reference \u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068 Add Web Reference \u30c0\u30a4\u30a2\u30ed\u30b0\u30dc\u30c3\u30af\u30b9\u304c\u958b\u304d\uff0c\u3053\u308c\u3089\u306e\u30b9\u30c6\u30c3\u30d7\u3092\u901a\u3058\u3066\u53c2\u7167\u306e\u305f\u3081\u306e Figure 7-4 \u306b\u793a\u3057\u305f\u3088\u3046\u306b\uff08\u7565\uff09\u4f8b\u3092\u5b8c\u4e86\u3055\u305b\u308b\uff0e<\/li>\n<li>URL \u30dc\u30c3\u30af\u30b9\u306b\uff0cMapPoint Web Serivce \u304a\u8a66\u3057\u74b0\u5883\u306e URL \u3092\u5165\u529b\u3059\u308b\uff0e\u305d\u308c\u306f http:\/\/staging.mappoint.net\/standard-30\/mappoint.wsdl \u3067\u3042\u308b\uff0e\u5546\u7528\u74b0\u5883\u3092\u4f7f\u3044\u305f\u3044\u306a\u3089\uff0c\u6b21\u306e URL \u3092\u6307\u5b9a\u3059\u3079\u304d\u3067\u3042\u308b\uff0ehttp:\/\/service.mappoint.net\/standard-30\/mappoint.wsdl<\/li>\n<li>URL \u30dc\u30c3\u30af\u30b9\u53f3\u5074\u306e Go \u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\uff0e\u3057\u3070\u3089\u304f\u3059\u308b\u3068\uff0c\u4e00\u3064\u306e\u30b5\u30fc\u30d3\u30b9 mappoint \u304c\u3053\u306e URL \u3067\u898b\u3064\u304b\u3063\u305f\u3068\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u53d7\u3051\u53d6\u308b\u3060\u308d\u3046\uff0e\u30e1\u30a4\u30f3\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u306f Find \u30b5\u30fc\u30d3\u30b9\u306e\u6b21\u306e\u8a18\u8ff0\u3092\u542b\u3081\u3066\u305d\u306e\u30b5\u30fc\u30d3\u30b9\u306b\u95a2\u3059\u308b\u8a18\u8ff0\u304c\u8868\u793a\u3055\u308c\u308b\uff0e\u300cFind \u30b5\u30fc\u30d3\u30b9\u306f\u4f4f\u6240\uff0c\u4f4d\u7f6e\uff0c\u7def\u5ea6\u7d4c\u5ea6\u5ea7\u6a19\u304a\u3088\u3073\u95a2\u5fc3\u306e\u3042\u308b\u5730\u70b9\u3092\u898b\u3064\u3051\u51fa\u3057\u307e\u3059\uff08MapPoint Web Serveice \u30c7\u30fc\u30bf\uff0c\u3042\u308b\u3044\u306f\u3042\u306a\u305f\u306e\u7528\u9014\u306e\u305f\u3081\u79c1\u3069\u3082\u306e\u30db\u30b9\u30c8\u3059\u308b\u3042\u306a\u305f\u306e\u30c7\u30fc\u30bf\u3044\u305a\u308c\u304b\u3089\u3067\u3082\uff09\u300d<\/li>\n<li>Web reference Name \u30d5\u30a3\u30fc\u30eb\u30c9\u306f\u6211\u3005\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u53c2\u7167\u3059\u308b\u306e\u306b\u4f7f\u3046\u540d\u524d\u3092\u4e0e\u3048\u308b\uff0e\u305d\u308c\u306f\u5b9f\u969b\u306b net.mappoint.staging \u3068\u66f8\u304b\u308c\u3066\u3044\u308b\u304c\uff0c\u4fbf\u5229\u3067\u306f\u306a\u3044\u305f\u3081\uff0c\u4ee3\u308f\u308a\u306b\u306a\u306b\u304b\u7c21\u4fbf\u306a\u3082\u306e\u306b\u5909\u66f4\u3059\u308b\uff0e\u4f8b\u3048\u3070 MapPoint \u306a\u3069\uff0e<\/li>\n<li>Add Reference \u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\uff0e<\/li>\n<\/ol>\n<p>\u3000\u65b0\u3057\u304f\u751f\u6210\u3057\u305f MapPoint reference \u306f Solution Explorer \u30da\u30a4\u30f3\u306b\u51fa\u73fe\u3057\uff0cGeocoder \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e Web Reference \u30d5\u30a9\u30eb\u30c0\u30fc\u5185\u90e8\u306b\u542b\u307e\u308c\u308b\uff0e\u3053\u308c\u304c\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u8a2d\u5b9a\u306e\u305f\u3081\u306e\u3082\u306e\u3067\u3042\u308a\uff0c\u3084\u3063\u3068\u6211\u3005\u306f\u6211\u3005\u306e\u30b8\u30aa\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u95a2\u6570\u3092\u66f8\u3044\u3066\u4ed8\u304d\u5408\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\uff0e<\/p>\n<p>\u4ed8\u8a18\u3000Solution Explorer \u30da\u30a4\u30f3\u306f\u666e\u901a\u306a\u3089\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u306e\u53f3\u5074\u306b\u898b\u3048\u308b\uff0e\u3082\u3057\u898b\u3048\u306a\u3044\u306a\u3089\uff0c\u300cView\u300d\u2192\u300cSolution Explorer\u300d\u3092\u9078\u3076\u304b\uff0cCtrl+Alt+L \u3092\u62bc\u4e0b\u3059\u308b\uff0e<\/p>\n<h4>\u30b8\u30aa\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u95a2\u6570\u3092\u8ffd\u52a0\u3059\u308b<\/h4>\n<p>\u3000\u4eca\u3084\u305d\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306f\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3055\u308c\uff0c\u30b8\u30aa\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u81ea\u4f53\u3092\u5b9f\u884c\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u5b9a\u7fa9\u95a2\u6570\u3092\u8ffd\u52a0\u3059\u308b\u6642\u304c\u6765\u305f\uff0e\u6700\u521d\u306b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u751f\u6210\u3057\u305f\u6642\u306b\u8ffd\u52a0\u3057\u305f Class1.vb\/Class1.cs \u30d5\u30a1\u30a4\u30eb\u5185\u306b\u5fc5\u8981\u306a\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u3088\u3046\uff0e\u305d\u3057\u3066 Solution Explorer \u30da\u30a4\u30f3\u5185\u306e\u95a2\u9023\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3057\u3066 Visual Studio \u30a6\u30a3\u30f3\u30c9\u30a6\u5185\u3067\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30ed\u30fc\u30c9\u3057\u3088\u3046\uff0e\u30b3\u30fc\u30c9\u3092 VB .NET \u3092\u4f7f\u3063\u3066\u66f8\u3044\u3066\u3044\u308b\u306a\u3089\uff08Visual Studio 2005\/2008 \u307e\u305f\u306f Visual Basic 2008 Express \u30a8\u30c7\u30a3\u30b7\u30e7\u30f3\u306e\u3069\u3061\u3089\u304b\u3092\u4f7f\u3063\u3066\u3044\u308b\u306a\u3089\uff09\uff0cClass1.vb \u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u3066 Listing 7-1. \u306b\u793a\u3057\u305f\u3088\u3046\u306b\u8aad\u3080\uff0e\u4ee3\u308f\u308a\u306b\u30b3\u30fc\u30c9\u3092 C# \u3092\u4f7f\u3063\u3066\u958b\u767a\u3057\u3066\u3044\u308b\u306a\u3089\uff08Visual Studio 2005\/2008 \u307e\u305f\u306f Visual C# 2008 Express \u30a8\u30c7\u30a3\u30b7\u30e7\u30f3\u3092\u4f7f\u3063\u3066\u3044\u308b\u306a\u3089\uff09\uff0cClass1.cs \u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u3066 Listing 7-1. \u306b\u793a\u3057\u305f\u3088\u3046\u306b\u8aad\u3080\uff0e<\/p>\n<p>\u3000\u3069\u3061\u3089\u306e\u5834\u5408\u3067\u3082\uff0c\u30a2\u30ab\u30a6\u30f3\u30c8 ID \u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092 ENTER YOUR ACCOUNT ID HERE \u304a\u3088\u3073 ENTER YOUR PASSWORD HERE \u306e\u5834\u6240\u306b\u633f\u5165\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\uff0e\uff08\u3053\u306e\u30e6\u30fc\u30b6\u30fc\u540d\u306f Virtual Earth Platform \u958b\u767a\u8005\u30a2\u30ab\u30a6\u30f3\u30c8 ID \u3067\u3042\u308a MapPoint Web Service \u767b\u9332\u5f8c\u306b\u9001\u3089\u308c\u3066\u304f\u308b\u3082\u306e\u3067\uff0c\u305d\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u30a2\u30ab\u30a6\u30f3\u30c8\u78ba\u5b9a\u6642\u306b\u9078\u3093\u3060\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u3042\u308b\uff0e\uff09findAddressSpec.DataSourceName \u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u5024\u306f\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u304b\u3082\u77e5\u308c\u306a\u3044\u304c\uff0c\u305d\u308c\u306f\u8aad\u8005\u304c\u30b8\u30aa\u30b3\u30fc\u30c9\u3057\u305f\u3044\u4f4f\u6240\u306e\u542b\u307e\u308c\u308b\u56fd\u306b\u3088\u308b\uff08\u8a73\u7d30\u306f\u6b21\u306e\u30b3\u30fc\u30c9\u3067\u8aac\u660e\u3059\u308b\uff09\uff0e<\/p>\n<p>Listing 7-1. Class1.vb \u30d5\u30a1\u30a4\u30eb\uff08VB .NET Project Types \u306e\u305f\u3081\u306e\u3082\u306e\uff09<\/p>\n<pre>'Import references for generic .NET functionality\nImports System\nImports System.Data\nImports System.Data.SqlClient\nImports System.Data.SqlTypes\nImports Microsoft.SqlServer.Server\nImports System.Net\n'Import the web reference to the MapPoint Web Service\nImports Geocoder.MapPoint\nPartial Public Class UserDefinedFunctions\n  &lt;microsoft.sqlserver.server.sqlfunction()&gt;\n  Public Shared Function geocode(\n    ByVal AddressLine As SqlString, _\n    ByVal PrimaryCity As SqlString, _\n    ByVal Subdivision As SqlString, _\n    ByVal PostalCode As SqlString, _\n    ByVal CountryRegion As SqlString) As SqlString\n    'Initialize the MapPoint Find service\n    Dim findService As New FindServiceSoap\n    'Provide the logon credentials\n    Dim UserName As String = \"ENTER YOUR ACCOUNT ID HERE\"\n    Dim Password As String = \"ENTER YOUR PASSWORD HERE\"\n    findService.Credentials = New Net.NetworkCredential(Username, Password)\n    'FindAddressSpecification contains the details passed to the function\n    Dim findAddressSpec As New FindAddressSpecification\n    'Build a new address object from the parameters provided to the function\n    Dim address As New Address\n    address.AddressLine = AddressLine.ToString\n    address.PrimaryCity = PrimaryCity.ToString\n    address.Subdivision = Subdivision.ToString\n    address.PostalCode = PostalCode.ToString\n    address.CountryRegion = CountryRegion.ToString\n    findAddressSpec.InputAddress = address\n    'Specify the data source in which to search for the address\n    findAddressSpec.DataSourceName = \"MapPoint.NA\"\n    'Create the options to limit the result set\n    Dim findOptions As New FindOptions\n    'Filter the result to only show LatLong information\n    findOptions.ResultMask = FindResultMask.LatLongFlag\n    'Only return the first matching result\n    Dim findRange As New FindRange\n    findRange.StartIndex = 0\n    findRange.Count = 1\n    findOptions.Range = findRange\n    'Apply the options to the specification\n    findAddressSpec.Options = findOptions\n    'Call the MapPoint Web Service and retrieve the results\n    Dim findResults As FindResults\n    findResults = findService.FindAddress(findAddressSpec)\n    'Create the WKT representation of the geocoded result\n    Dim WKT As New SqlString\n    If findResults.Results.Length &gt; 0 Then\n      WKT = \"POINT\" &amp; _\n        findResults.Results(0).FoundLocation.LatLong.Longitude &amp; \" \" &amp; _\n        findResults.Results(0).FoundLocation.LatLong.Ltitude &amp; \")\"\n    ELSE\n      WKT = \"POINT EMPTY\"\n    End If\n    'Return the result to SQL Server\n    Return WKT\n  End Function\nEnd Class&lt;\/microsoft.sqlserver.server.sqlfunction()&gt;<\/pre>\n<p>Listing 7-2. Class1.cs \u30d5\u30a1\u30a4\u30eb\uff08C# Project Types \u306e\u305f\u3081\u306e\u3082\u306e\uff09<\/p>\n<pre>\u7565<\/pre>\n<p>\u3000\u30b3\u30fc\u30c9\u3092 Visual Basic \u3084 C# \u306e\u3044\u305a\u308c\u306b\u57fa\u3065\u3044\u3066\u751f\u6210\u3057\u3066\u3082\uff0c\u4e21\u8005\u306e\u30b3\u30fc\u30c9\u30bb\u30c3\u30c8\u306f\u540c\u3058\u6a5f\u80fd\u3092\u5b9f\u884c\u3059\u308b\uff0e<\/p>\n<ul>\n<li>FindServiceSoap \u30af\u30e9\u30b9\u306e\u65b0\u3057\u3044\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u751f\u6210\u3059\u308b\uff0e<\/li>\n<li>findService.Credential \u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u4f7f\u3063\u3066\uff0c\u63a5\u7d9a\u306b\u4f7f\u3046\u8cc7\u683c\u8a3c\u660e\u3092\u8a2d\u5b9a\u3059\u308b\uff0e\u5148\u8ff0\u3057\u305f\u3088\u3046\u306b\uff0cUsername \u306e\u5024 (ENTER YOUR ACCOUNT ID HERE) \u304a\u3088\u3073 Passeord (ENTER YOUR PASSWORD HERE) \u3092\u5909\u66f4\u3057\u3066\u8aad\u8005\u304c MapPoint Web Service \u306b\u30b5\u30a4\u30f3\u30a2\u30c3\u30d7\u3057\u305f\u6642\u306b\u53d6\u5f97\u3057\u305f\u30a2\u30ab\u30a6\u30f3\u30c8\u60c5\u5831\u3092\u53cd\u6620\u3055\u305b\u306a\u304f\u3066\u306f\u306a\u3089\u306a\u3044\uff0e<\/li>\n<li>\u30e1\u30bd\u30c3\u30c9\u306b\u63d0\u4f9b\u3055\u308c\u308b\u6587\u5b57\u5217\u30d1\u30e9\u30e1\u30fc\u30bf\u306b\u57fa\u3065\u3044\u3066 InputAddress \uff08\u30b8\u30aa\u30b3\u30fc\u30c9\u3055\u308c\u308b\u4f4f\u6240\uff09\u3092\u8a2d\u5b9a\u3059\u308b\uff0e<\/li>\n<li>findAddress.DataSourceName \u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u4f7f\u3063\u3066\uff0c\u4f4f\u6240\u3092\u691c\u7d22\u3059\u308b\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u3092\u9078\u629e\u3059\u308b\uff0eMapPoint Web Service \u306b\u4f7f\u308f\u308c\u308b\u60c5\u5831\u306f\uff0c\u3044\u304f\u3064\u304b\u306e\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u306b\u5206\u5272\u3055\u308c\u3066\u304a\u308a\uff0c\u7570\u306a\u308b\u56fd\u306e\u60c5\u5831\u3092\u4fdd\u6301\u3057\u3066\u3044\u308b\uff0e\u8aad\u8005\u306e\u30b8\u30aa\u30b3\u30fc\u30c9\u3057\u305f\u3044\u4f4f\u6240\u306e\u4f4d\u7f6e\u3059\u308b\u56fd\u306e\u30c7\u30fc\u30bf\u3092\u542b\u3080\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u540d\u3092\u6307\u5b9a\u3057\u306a\u304f\u3066\u306f\u306a\u3089\u306a\u3044\uff0eTable 7-1 \u306b MapPoint Web Service \u3067\u5229\u7528\u53ef\u80fd\u306a\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u3092\u5217\u6319\u3057\u3066\u304a\u308a\uff0c\u305d\u308c\u3089\u306e\u542b\u3080\u4f4f\u6240\u306e\u8a73\u7d30\u306e\u56fd\u3067\u3042\u308b\uff0eListing 7-1. \u304a\u3088\u3073 7-2. \u306b\u793a\u3057\u305f\u30b3\u30fc\u30c9\u4f8b\u3067\u306f MapPoint.NA \u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u3092\u6307\u5b9a\u3057\u3066\u304a\u308a\uff0c\u5408\u8846\u56fd\uff0c\u30ab\u30ca\u30c0\u304a\u3088\u3073\u30d7\u30a8\u30eb\u30c8\u30ea\u30b3\u3067\u4f7f\u308f\u308c\u308b\uff0e\u4ee3\u308f\u308a\u306b\u82f1\u56fd\u306e\u4f4f\u6240\u3092\u30b8\u30aa\u30b3\u30fc\u30c9\u3057\u305f\u3044\u306a\u3089\uff0c\u4f8b\u3048\u3070\uff0c\u30b3\u30fc\u30c9\u3092\u5909\u66f4\u3057\u3066 findAddressSpec.DataSourceName = &#8220;MapPoint.EU&#8221; \u3068\u8aad\u3080\uff0e<\/li>\n<\/ul>\n<table><caption>Table 7-1. \u4f4f\u6240\u306e\u30b8\u30aa\u30b3\u30fc\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b MapPoint Web Serive<\/caption>\n<tbody>\n<tr>\n<th>DataSourceName<\/th>\n<th>Description<\/th>\n<\/tr>\n<tr>\n<td>MapPoint.AP<\/td>\n<td>\u30a2\u30b8\u30a2\u592a\u5e73\u6d0b\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u3067\u30aa\u30fc\u30b9\u30c8\u30e9\u30ea\u30a2\uff0c\u30cb\u30e5\u30fc\u30b8\u30fc\u30e9\u30f3\u30c9\uff0c\u9999\u6e2f\uff0c\u53f0\u6e7e\u306e\u4f4f\u6240\u30ec\u30d9\u30eb\u306e\u30b8\u30aa\u30b3\u30fc\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b\uff0e<\/td>\n<\/tr>\n<tr>\n<td>MapPoint.BR<\/td>\n<td>\u30d6\u30e9\u30b8\u30eb\u306e\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u3067\u30d6\u30e9\u30b8\u30eb\u306e\u4f4f\u6240\u3092\u767a\u898b\u3059\u308b\u306e\u306b\u4f7f\u308f\u308c\u308b\uff0e<\/td>\n<\/tr>\n<tr>\n<td>MapPoint.EU<\/td>\n<td>\u30e8\u30fc\u30ed\u30c3\u30d1\u306e\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u3067\u30aa\u30fc\u30b9\u30c8\u30ea\u30a2\uff0c\u30d9\u30eb\u30ae\u30fc\uff0c\u30c7\u30f3\u30de\u30fc\u30af\uff0c\u30d5\u30a3\u30f3\u30e9\u30f3\u30c9\uff08\u30d8\u30eb\u30b7\u30f3\u30ad\u306e\u307f\uff09\uff0c\u30d5\u30e9\u30f3\u30b9\uff0c\u30c9\u30a4\u30c4\uff0c\u30a4\u30bf\u30ea\u30a2\uff0c\u30eb\u30af\u30bb\u30f3\u30d6\u30eb\u30af\uff0c\u30aa\u30e9\u30f3\u30c0\uff0c\u30ce\u30eb\u30a6\u30a7\u30fc\uff08\u30aa\u30b9\u30ed\u306e\u307f\uff09\uff0c\u30dd\u30eb\u30c8\u30ac\u30eb\uff0c\u30b9\u30da\u30a4\u30f3\uff0c\u30b9\u30a6\u30a7\u30fc\u30c7\u30f3\uff0c\u30b9\u30a4\u30b9\uff0c\u30ae\u30ea\u30b7\u30e3\uff08\u30a2\u30c6\u30cd\u306e\u307f\uff09\uff0c\u82f1\u56fd\u306e\u4f4f\u6240\u30ec\u30d9\u30eb\u306e\u30b8\u30aa\u30b3\u30fc\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b\uff0e<\/td>\n<\/tr>\n<tr>\n<td>MapPoint.NA<\/td>\n<td>\u5317\u30a2\u30e1\u30ea\u30ab\u306e\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u3067\u5408\u8846\u56fd\uff0c\u30ab\u30ca\u30c0\uff0c\u30d7\u30a8\u30eb\u30c8\u30ea\u30b3\u306e\u4f4f\u6240\u30ec\u30d9\u30eb\u306e\u30b8\u30aa\u30b3\u30fc\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b\uff0e<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li>Find \u30b5\u30fc\u30d3\u30b9\u306b\u3088\u308a\u8fd4\u308b\u7d50\u679c\u96c6\u5408\u3092\u5236\u9650\u3059\u308b\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3059\u308b\uff0e\u3053\u308c\u3089\u306f\u53cd\u5fdc\u306e\u5927\u304d\u3055\u3092\u524a\u6e1b\u3057\uff0c\u305d\u308c\u306b\u3088\u308a\u5e2f\u57df\u5e45\u3092\u7bc0\u7d04\u3057\u3066\u95a2\u6570\u306e\u52b9\u7387\u3092\u5411\u4e0a\u3055\u305b\u308b\uff0e\u307e\u305a\uff0c\u7d50\u679c\u306e\u4e2d\u306e\u7d4c\u5ea6\u3068\u7def\u5ea6\u60c5\u5831\u306e\u307f\u3092\u8fd4\u3059\u3088\u3046\u30d5\u30a3\u30eb\u30bf\u30fc\u3092\u9069\u7528\u3057\uff0cFind \u30b5\u30fc\u30d3\u30b9\u306b\u3088\u308a\u63d0\u4f9b\u3055\u308c\u308b\u8ffd\u52a0\u306e\u95a2\u9023\u60c5\u5831\u3092\u4e00\u5207\u8fd4\u3055\u306a\u3044\u3088\u3046\u306b\u3059\u308b\uff0e\u6b21\u306b\uff0c\u7bc4\u56f2\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u5358\u4e00\u306e\u7d50\u679c\u306e\u307f\u8fd4\u3059\u3088\u3046\u306b\u6307\u5b9a\u3059\u308b\uff0e\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\uff0cFind \u30b5\u30fc\u30d3\u30b9\u304b\u3089\u306e SOAP \u53cd\u5fdc\u306f\u63d0\u4f9b\u3055\u308c\u305f\u4f4f\u6240\u306b\u30de\u30c3\u30c1\u3059\u308b\u8fd1\u4f3c\u3092\u3059\u3079\u3066\u542b\u3080\u914d\u5217\u3067\u3042\u308b\u304c\uff0c\u3053\u308c\u306f\u30b8\u30aa\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306e\u76ee\u7684\u3067\u306f\u306a\u304f\uff0c\u30c8\u30c3\u30d7\u306b\u8fd4\u3063\u3066\u307b\u3057\u3044\u306e\u306f\u6b63\u78ba\u306a\u30de\u30c3\u30c1\u3067\u3042\u308b\uff0e<\/li>\n<li>\u30b8\u30aa\u30b3\u30fc\u30c9\u3059\u3079\u304d\u30a2\u30a4\u30c6\u30e0\u3092\u5168\u6307\u5b9a\u3057\u3066 FindAddress() \u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3057\uff0c\u53cd\u5fdc\u3092\u53d6\u5f97\u3059\u308b\uff0e<\/li>\n<li>\u30b8\u30aa\u30b3\u30fc\u30c9\u3055\u308c\u305f\u53cd\u5fdc\u306b\u3088\u308a\u8868\u73fe\u3055\u308c\u308b Point \u30b8\u30aa\u30e1\u30c8\u30ea\u306e WKT \u8868\u73fe\u3092\u69cb\u7bc9\u3057\uff0c\u305d\u306e\u7d50\u679c\u3092 SQL Server \u306b\u8fd4\u3059\uff0e\u30de\u30c3\u30c1\u3057\u305f\u4f4f\u6240\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u5834\u5408\uff0c\u7a7a\u306e Point \u304c\u8fd4\u308b\uff0e<\/li>\n<\/ul>\n<p>\u3000\u3053\u308c\u3089\u306e\u30e1\u30bd\u30c3\u30c9\u306e\u3055\u3089\u306a\u308b\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\uff0cMapPoint Web Service SDK \u3092\u53c2\u7167\u306e\u3053\u3068\uff0ehttp:\/\/msdn.microsoft.com\/en-us\/library\/bb507684.aspx<\/p>\n<h3>\u30a2\u30bb\u30f3\u30d6\u30ea\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b<\/h3>\n<p>\u3000\u4eca\u5ea6\u306f\u300cBuild\u300d\u2192\u300cBuild Geocoder\u300d\u3092\u9078\u3076\u304b Ctrl+Shift+B \u3092\u62bc\u4e0b\u3059\u308b\u3053\u3068\u3067\u30a2\u30bb\u30f3\u30d6\u30ea\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3067\u304d\u308b\uff08Visual C# 2008 Express \u30a8\u30c7\u30a3\u30b7\u30e7\u30f3\u306a\u3089\u300cBuild\u300d\u2192\u300cBuild Solution\u300d\uff09\uff0e\u6b21\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u529b\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u73fe\u308c\u308b\u306e\u3092\u898b\u308b\u3060\u308d\u3046\uff08\u3082\u3057\u51fa\u529b\u30a6\u30a3\u30f3\u30c9\u30a6\u304c\u898b\u3048\u306a\u3044\u306a\u3089\uff0cView \u30e1\u30cb\u30e5\u30fc\u304b\u3089\u305d\u308c\u3092\u9078\u3076\u304b Ctrl+Alt+O \u3092\u62bc\u4e0b\u3059\u308b\u3053\u3068\uff09\uff0e<\/p>\n<pre>------ Build started: Project: Geocoder, Configuration: Release Any CPU ------\nGeocoder -&gt; C:\\Spatial\/Geocoder.dll\n======== Build: 1 succeded or up-to-date, 0 failed, 0 skipped ========<\/pre>\n<p>\u3000Visual Studio \u3067\u5fc5\u8981\u306a\u306e\u306f\u4ee5\u4e0a\u3067\u3042\u308b\uff0e\u3067\u306f\u4eca\u5ea6\u306f SQL Server \u306b\u623b\u308d\u3046\uff0e<\/p>\n<h3>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u8a2d\u5b9a\u3059\u308b<\/h3>\n<p>\u3000\u30b8\u30aa\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u95a2\u6570\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308b\u524d\u306b\uff0cSQL Server \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30a8\u30f3\u30b8\u30f3\u304c\u65b0\u3057\u3044 Geocoder \u30a2\u30bb\u30f3\u30d6\u30ea\u3092\u6b63\u3057\u304f\u4f7f\u3048\u308b\u3088\u3046\u306b\u3044\u304f\u3064\u304b\u306e\u8a2d\u5b9a\u5909\u66f4\u3092\u884c\u3046\u5fc5\u8981\u304c\u3042\u308b\uff0e<\/p>\n<h4>CLR \u30b5\u30dd\u30fc\u30c8\u3092\u53ef\u80fd\u306b\u3059\u308b<\/h4>\n<p>\u3000SQL Server \u304c .NET CLR \u30d7\u30ed\u30bb\u30b9\u3092\u8d70\u3089\u305b\u308b\u3053\u3068\u306f\u308f\u304b\u3063\u3066\u3044\u308b\uff0e\u3064\u307e\u308a\uff0cgeometry \u578b\u3068 geography \u578b\u306e\u30c7\u30fc\u30bf\u578b\u304c\u3069\u3046\u52d5\u4f5c\u3059\u308b\u304b\u3067\u3042\u308b\uff0e\u3057\u304b\u3057\uff0c\u30b7\u30b9\u30c6\u30e0\u5b9a\u7fa9\u3055\u308c\u305f CLR \u304c\u8ffd\u52a0\u306e CLR \u8a2d\u5b9a\u306f\u8981\u3055\u306a\u3044\u306b\u3082\u95a2\u308f\u3089\u305a\uff0cSQL Server \u306b\u30e6\u30fc\u30b6\u30fc\u5b9a\u7fa9 CLR \u95a2\u6570\u3092\u6b63\u5e38\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u8d70\u3089\u305b\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\uff0e\u3053\u308c\u306f\u3053\u306e\u6a5f\u80fd\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u4f7f\u7528\u4e0d\u53ef\u3068\u306a\u3063\u3066\u3044\u308b\u305f\u3081\u3067\u3042\u308b\uff0e\u3053\u308c\u306f\uff0c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u7ba1\u7406\u8005\u304c\u3053\u308c\u3089\u306e\u5f37\u529b\u306a\uff08\u3057\u304b\u3057\u6f5c\u5728\u7684\u306b\u5371\u967a\u306a\uff09\u6a5f\u80fd\u306e\u4f7f\u7528\u8a31\u53ef\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306e\uff0c\u610f\u56f3\u7684\u306a\u5b89\u5168\u6a5f\u69cb\u3067\u3042\u308b\uff0e\u30ab\u30b9\u30bf\u30e0\u306e .NET \u30b8\u30aa\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\uff0c\u307e\u305a\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304c CLR \u3092\u30b5\u30dd\u30fc\u30c8\u3067\u304d\u308b\u3088\u3046\u306b\u69cb\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\uff0e\u30af\u30a8\u30ea\u30a8\u30c7\u30a3\u30bf\u30a6\u30a3\u30f3\u30c9\u30a6\u3067\u6b21\u306e T-SQL \u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3053\u308c\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u308b\uff0e<\/p>\n<pre>EXEC sp_configure 'clr enabled' , '1'\nGO<\/pre>\n<p>\u3000\u305d\u306e\u69cb\u6210\u5909\u66f4\u304c\u6210\u529f\u3059\u308c\u3070\uff0c\u6b21\u306e\u7d50\u679c\u3092\u5f97\u308b\uff0e<\/p>\n<pre>Configuration option 'clr enabled' changed from 0 to 1.\nRun the RECONFIGURE statement to install.<\/pre>\n<p>\u3000\u5909\u66f4\u3092\u5b8c\u4e86\u3059\u308b\u305f\u3081\uff0c\u30b5\u30fc\u30d0\u30fc\u3092\u518d\u69cb\u6210\u3057\u3066\u5909\u66f4\u3057\u305f\u5024\u3092\u53cd\u6620\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\uff0c\u6b21\u306e\u3088\u3046\u306b RECONFIGURE \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3067 T-SQL \u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3059\u308b\uff0e<\/p>\n<pre>FECONFIGURE\nGO<\/pre>\n<p>\u3000SQL Server \u69cb\u6210\u8a2d\u5b9a\u304c\u66f4\u65b0\u3055\u308c\uff0c\u30e6\u30fc\u30b6\u30fc\u5b9a\u7fa9 CLR \u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\uff0c\u6b21\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u53d7\u3051\u53d6\u308b\uff0e<\/p>\n<pre>Command(s) completed successfully.<\/pre>\n<h4>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3059\u308b<\/h4>\n<p>\u3000\u6b21\u306b\uff0c\u30a6\u30a7\u30d6\u30b5\u30fc\u30d3\u30b9\u304b\u3089\u306e\u60c5\u5831\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b .NET \u7ba1\u7406\u3055\u308c\u305f\u30b3\u30fc\u30c9\u3092\u4f7f\u3044\u305f\u3044\u306e\u3067\uff0c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u9069\u5207\u306a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3057\u3066\u5916\u90e8\u30c7\u30fc\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\uff0e\u3053\u308c\u306f\u6b21\u306e T-SQL \u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u884c\u308f\u308c\u308b\uff08Spatial \u3068\u8a00\u3046\u540d\u524d\u3092\u8aad\u8005\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d\u306b\u5909\u66f4\u3059\u3079\u304d\u3053\u3068\u3092\u9298\u8a18\u3055\u308c\u305f\u3044\uff09\uff0e<\/p>\n<pre>ALTER DATABASE Spatial SET TRUSWORTHY ON\nGO<\/pre>\n<p>\u3000\u6b21\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u53d7\u3051\u53d6\u308b\uff0e<\/p>\n<pre>Command(s) completed successfully.<\/pre>\n<p>\u3000\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u4eca\u3084\u69cb\u6210\u3055\u308c\uff0c\u30b8\u30aa\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30a2\u30bb\u30f3\u30d6\u30ea\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u6e96\u5099\u304c\u6574\u3063\u305f\uff0e<\/p>\n<h3>\u30a2\u30bb\u30f3\u30d6\u30ea\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b<\/h3>\n<p>\u3000\u6211\u3005\u306e .NET \u30a2\u30bb\u30f3\u30d6\u30ea\u3092\u751f\u6210\u3057\u3066\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\uff0c\u6211\u3005\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u5fc5\u8981\u306a\u69cb\u6210\u5909\u66f4\u3092\u884c\u3063\u305f\u306e\u3067\uff0c\u3084\u3063\u3068\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u30a2\u30bb\u30f3\u30d6\u30ea\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\uff0e\u6b21\u306e T-SQL \u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3053\u308c\u3092\u884c\u3046\uff0e<\/p>\n<pre>CREATE ASSEMBLY Geocoder\nFROM 'C:\\Spatial\\Geocoder.dll'\nWITH PERMISSION_SET = EXTERNAL_ACCESS;\nGO<\/pre>\n<p>\u3000\u3053\u308c\u306f Visual Studio \u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3055\u308c\u305f Geocoder.dll \u51fa\u529b\u30d5\u30a1\u30a4\u30eb\u304b\u3089 Geocoder \u3068\u547c\u3070\u308c\u308b\u30a2\u30bb\u30f3\u30d6\u30ea\u3092\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5185\u306b\u751f\u6210\u3059\u308b\uff0eC:\\Spatial\\Geocoder.dll \u304b\u3089\uff0c\u5148\u306b Visual Studio \u3067\u8a2d\u5b9a\u3057\u305f\u30d3\u30eb\u30c9\u51fa\u529b\u4f4d\u7f6e\u306b\u4e00\u81f4\u3059\u308b\u3068\u3053\u308d\u3078\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\u3092\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\uff0ePERMISSION_SET \u5f15\u6570\u306f\u3053\u306e\u30a2\u30bb\u30f3\u30d6\u30ea\u306b\u8a31\u53ef\u3055\u308c\u305f\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u30ec\u30d9\u30eb\u3092\u6307\u5b9a\u3059\u308b\uff0e\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\uff0c\u65b0\u3057\u3044 SQL Server \u30a2\u30bb\u30f3\u30d6\u30ea\u306f SAFE \u306b\u30de\u30fc\u30af\u3055\u308c\u3066\u304a\u308a\uff0c\u305d\u308c\u306f\u5236\u9650\u3055\u308c\u305f\u30ed\u30fc\u30ab\u30eb\u8cc7\u6e90\u306e\u307f\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3068\u3044\u3046\u610f\u5473\u3067\u3042\u308b\uff0e\u3053\u308c\u306f\u8a31\u53ef\u3055\u308c\u3066\u3044\u306a\u3044\u5916\u90e8\u306e\uff08\u6f5c\u5728\u7684\u306b\u5371\u967a\u306a\uff09\u8cc7\u6e90\u306b\u3069\u3093\u306a\u30b3\u30fc\u30c9\u3067\u3082\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u3053\u3068\u3092\u78ba\u4fdd\u3059\u308b\u305f\u3081\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u6a5f\u80fd\u3067\u3042\u308b\uff0e\u6211\u3005\u306e\u30b8\u30aa\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u95a2\u6570\u306b\u50cd\u3044\u3066\u3082\u3089\u3046\u305f\u3081\u306b\uff0c\u6211\u3005\u306f\u660e\u793a\u7684\u306b\u6211\u3005\u306e\u30b3\u30fc\u30c9\u3092\u5916\u90e8\u8cc7\u6e90\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u3092\u8a31\u53ef\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\uff0cPERMISSION_SET = EXTERNAL_ACCESS \u3068\u6307\u5b9a\u3059\u308b\uff0e<\/p>\n<p>\u3000\u6211\u3005\u306e Visual Studio \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u69cb\u6210\u3057\u305f\u6642\uff0cXML \u30b7\u30ea\u30a2\u30eb\u5316\u30a2\u30bb\u30f3\u30d6\u30ea\u3082\u307e\u305f\u81ea\u52d5\u7684\u306b\u751f\u6210\u3055\u308c\u308b\u3088\u3046\u6307\u5b9a\u3057\uff0c\u30a6\u30a7\u30d6\u30b5\u30fc\u30d3\u30b9\u3078\u306e\u30c7\u30fc\u30bf\u8ee2\u9001\u304c\u30b7\u30ea\u30a2\u30eb\u5316\u3055\u308c\u308b\u3053\u3068\u3092\u9298\u8a18\u3055\u308c\u305f\u3044\uff0e\u3053\u308c\u306f2\u3064\u76ee\u306e DLL \u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210\u3057\uff0c\u5fc5\u8981\u306a\u30b7\u30ea\u30a2\u30eb\u5316\u6a5f\u80fd\u3092\u542b\u3093\u3067\u304a\u308a\uff0c\u6b21\u306e\u3088\u3046\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3055\u308c\u306a\u304f\u3066\u306f\u306a\u3089\u306a\u3044\uff0e<\/p>\n<pre>CREATE ASSEMBLY [Geocoder.XmlSerializers]\nFROM 'C:\\Spatial\\Geomder.XmlSerializers.dll'\nWITH PERMISSION_SET = SAFE;\nGO<\/pre>\n<p>\u3000\u7e70\u308a\u8fd4\u3057\u306b\u306a\u308b\u304c\uff0cVisual Studio \u3067\u8a2d\u5b9a\u3057\u305f\u51fa\u529b\u4f4d\u7f6e\u306b\u4e00\u81f4\u3059\u308b\u306e\u306b\u5fc5\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\u3092\u6307\u5b9a\u3059\u3079\u304d\u3067\u3042\u308b\uff0eGeocoder.XmlSerializers \u30a2\u30bb\u30f3\u30d6\u30ea\u306f\u5916\u90e8\u30c7\u30fc\u30bf\u306b\u306f\u30a2\u30af\u30bb\u30b9\u305b\u305a\uff0c\u3086\u3048\u306b\u30c7\u30d5\u30a9\u30eb\u30c8\u306e PERMISSION_SET = SAFE \u3067\u4ed8\u4e0e\u306f\u5341\u5206\u3067\u3042\u308b\uff0e<\/p>\n<p>\u3000\u30a2\u30bb\u30f3\u30d6\u30ea\u304c\u751f\u6210\u3055\u308c\u305f\u6642\uff0cSQL Server Management Studio \u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc\u5185\u3067\u305d\u308c\u3089\u304c\u898b\u3048\u308b\u3088\u3046\u306b\u306a\u308a\uff0c\u305d\u308c\u3089\u306e\u30a4\u30f3\u30dd\u30fc\u30c8\u3055\u308c\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30ce\u30fc\u30c9\u5185\u306e\u30a2\u30bb\u30f3\u30d6\u30ea\u306e\u4e0b\u306b\u5217\u6319\u3055\u308c\u3066\u304a\u308a\uff0cFigure 7-5 \u306b\u793a\u3059\uff08\u30a2\u30bb\u30f3\u30d6\u30ea\u304c\u898b\u3048\u308b\u3088\u3046\u306b\u306a\u308b\u524d\u306b\uff0c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc\u30d3\u30e5\u30fc\u3092\u66f4\u65b0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u306a\u3044\uff0e\u30a2\u30bb\u30f3\u30d6\u30ea\u30ce\u30fc\u30c9\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3066\u300c\u6700\u65b0\u306e\u60c5\u5831\u306b\u66f4\u65b0\u300d\u3092\u9078\u3076\uff09\uff0e<\/p>\n<p>\u30c1\u30c3\u30d7\u30b9\u3000\u3053\u308c\u3089\u306e\u30a2\u30bb\u30f3\u30d6\u30ea\u3092 Model \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5185\u3067\u751f\u6210\u3059\u308b\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\uff0c\u305d\u306e SQL Server \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3067\u5c06\u6765\u4f5c\u6210\u3055\u308c\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5168\u3066\u3067\u305d\u308c\u3089\u304c\u5229\u7528\u53ef\u80fd\u3068\u306a\u308b\uff0e<\/p>\n<h3>\u95a2\u6570\u3092\u751f\u6210\u3059\u308b<\/h3>\n<p>\u3000\u6211\u3005\u306e\u30a2\u30bb\u30f3\u30d6\u30ea\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u305f\u4eca\uff0cT-SQL \u30b3\u30fc\u30c9\u5185\u3067\u30b8\u30aa\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\uff0c\u95a2\u6570\u3092\u5b9a\u7fa9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\uff0e\u305d\u306e\u95a2\u6570\u306f\u4f4f\u6240\u306e\u7570\u306a\u308b\u8a18\u8ff0\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u8868\u73fe\u3059\u308b\u5165\u529b\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u6570\u3092\u6307\u5b9a\u3057\uff0c \u305d\u306e\u4f4f\u6240\u3092\u8868\u73fe\u3059\u308b Point \u30b8\u30aa\u30e1\u30c8\u30ea\u306e WKT \u8868\u73fe\u3092\u542b\u3080\u51fa\u529b\u6587\u5b57\u5217\u3092\u8fd4\u3057\uff0c\u305d\u308c\u306f MapPoint Find \u30b5\u30fc\u30d3\u30b9\u304b\u3089\u8fd4\u308b\u5ea7\u6a19\u304b\u3089\u69cb\u6210\u3055\u308c\u3066\u3044\u308b\uff0e\u95a2\u6570\u3092\u751f\u6210\u3059\u308b\u305f\u3081\uff0c\u6b21\u306e T-SQL \u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\uff0e<\/p>\n<pre>CREATE FUNCTION dbo.Geocode(\n  @AddressLine nvarchar(255),\n  @PrimaryCity nvarchar(32),\n  @Subdivision nvarchar(32),\n  @Postcode nvarchar(10),\n  @CountryRegion nvarchar(20))\nRETURNS nvarchar(255)\nAS EXTERNAL NAME\nGeocoder.[Geocoder.UserDefinedFunctions].geocode\nGO<\/pre>\n<p>\u3000\u3053\u306e\u30b3\u30fc\u30c9\u306f dbo.Geocode \u3068\u547c\u3070\u308c\u308b T-SQL \u95a2\u6570\u3092\u751f\u6210\u3057\uff0c\u305d\u308c\u306f Geocoder \u30a2\u30bb\u30f3\u30d6\u30ea\u5185\u90e8\u306b\u542b\u307e\u308c\u308b\u30b8\u30aa\u30b3\u30fc\u30c9\u30e1\u30bd\u30c3\u30c9\u306b\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u63d0\u4f9b\u3059\u308b\uff0eGeocode \u95a2\u6570\u3092\u4f7f\u3046\u6642\u306b\u5fc5\u305a\u63d0\u4f9b\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u4f4f\u6240\uff0c\u90fd\u5e02\u540d\uff0c\u7d30\u5206\u5316\uff08\u4f8b\uff0c\u56fd\/\u5dde\uff09\uff0c\u90f5\u4fbf\u30b3\u30fc\u30c9\uff08\u4f8b\uff0c\u90f5\u4fbf\u756a\u53f7\uff09\u304a\u3088\u3073\u56fd\u3084\u5730\u57df\u3067\u3042\u308b\u3053\u3068\u3092\u6307\u5b9a\u3059\u308b\u3082\u306e\u3067\u3042\u308b\uff0e\u3053\u308c\u3089\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u306f .NET \u30e1\u30bd\u30c3\u30c9\u306b\u3088\u308a MapPoint Web Service \u306b\u6e21\u3055\u308c\u308b\u30d1\u30e9\u30e1\u30fc\u30bf\u306b\u6b63\u78ba\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u308b\uff0e\u305d\u306e\u95a2\u6570\u306e\u623b\u308a\u5024\u306f\u305d\u306e\u4f4f\u6240\u306b\u95a2\u9023\u3059\u308b Point \u306e WKT \u8868\u73fe\u3092\u542b\u3080 nvarchar(255) \u6587\u5b57\u5217\u3067\u3042\u308b\uff0e<\/p>\n<p>\u4ed8\u8a18\u3000.NET \u30a2\u30bb\u30f3\u30d6\u30ea\u304b\u3089\u95a2\u6570\u3092\u751f\u6210\u3059\u308b\u6642\uff0cEXTERNAL NAME \u53e5\u306e\u305f\u3081\u306e\u69cb\u6587\u306f\u6b21\u306e\u901a\u308a\u3067\u3042\u308b\uff0eAssemblyName.[Namespace.ClassName].FunctionName<\/p>\n<p>\u3000\u3053\u308c\u3067\u7d42\u308f\u308a\u3067\u3042\u308b\uff01\u304a\u3081\u3067\u3068\u3046\uff0e.NET \u3092\u4f7f\u3063\u3066 SQL Server \u306b\u65b0\u3057\u3044\u95a2\u6570\u3092\u8ffd\u52a0\u3057\uff0c\u65e2\u5b58\u306e\u7a7a\u9593\u6a5f\u80fd\u3092\u62e1\u5f35\u3057\u3066\u4f4f\u6240\u30c7\u30fc\u30bf\u3092\u30b8\u30aa\u30b3\u30fc\u30c9\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\uff0e<\/p>\n<h3>\u30b8\u30aa\u30b3\u30fc\u30c9\u95a2\u6570\u3092\u4f7f\u3046<\/h3>\n<p>\u3000\u6700\u5f8c\u306b\uff0c\u6211\u3005\u306e\u30b8\u30aa\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u95a2\u6570\u3092\u4f7f\u3044\u59cb\u3081\u308b\uff0e\u305d\u308c\u3092\u8a66\u3059\u305f\u3081\uff0cApress \u793e\u306e\u30aa\u30d5\u30a3\u30b9\u306e\u3042\u308b Point \u306e\u7def\u5ea6\u3068\u7d4c\u5ea6\u3092\u53d6\u5f97\u3057\u3066\u307f\u3088\u3046\uff0e\u6b21\u306e\u4f4f\u6240\u306b\u4f4d\u7f6e\u3057\u3066\u3044\u308b\uff0e<\/p>\n<pre>Apress, Inc.\n2855 Telegraph Avenue, Suite 600\nBerkeley,\nCA 94705<\/pre>\n<p>\u3000dbo.Geocode \u95a2\u6570\u306e\u69cb\u6587\u306f\u6b21\u306e\u901a\u308a\uff0e<\/p>\n<pre>dbo.Geocode('@Address', '@PrimaryCity', '@Subdivision', '@Postcode', '@CountryRegion')<\/pre>\n<p>\u3000Apress \u793e\u306e\u30aa\u30d5\u30a3\u30b9\u4f4f\u6240\u306b\u57fa\u3065\u304f Point \u306e WKT \u8868\u73fe\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\uff0cSQL Server Management Studio \u3067\u6b21\u306e\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\uff0e<\/p>\n<pre>SELECT dbo.Geocode('2855 Telegraph Avenue', 'Berkeley', 'CA', '94705', 'USA')<\/pre>\n<p>\u3000\u7d50\u679c\u306f\u6b21\u306e\u901a\u308a\uff0e<\/p>\n<pre>POINT(-122.259388935609 37.8584886447626)<\/pre>\n<p>\u4ed8\u8a18\u3000\u304a\u8a66\u3057\u74b0\u5883\u3060\u3068 MapPoint Web Service \u304b\u3089\u7d50\u679c\u3092\u53d6\u5f97\u3059\u308b\u306e\u306b\u6570\u79d2\u304b\u304b\u308b\uff0e\u5546\u7528\u74b0\u5883\u3060\u3068\u3082\u3063\u3068\u901f\u3044\uff0e<\/p>\n<p>\u3000\u4eca\u3084\u4f4f\u6240\u3092\u8868\u73fe\u3059\u308b Point \u306e WKT \u8868\u73fe\u3092\u53d6\u5f97\u3067\u304d\u308b\u306e\u3092\u6b32\u3059\u308c\u3070\uff0c\u3044\u304b\u306a\u308b\u72b6\u6cc1\u3067\u3082 SQL Server \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5185\u90e8\u304b\u3089 Geocode \u95a2\u6570\u3092\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u308b\uff0eMapPoint Web Service \u306b\u3088\u308a\u8fd4\u308b\u5ea7\u6a19\u5024\u306f EPSG:4326 \u7a7a\u9593\u53c2\u7167\u7cfb\u3092\u4f7f\u3046\u305f\u3081\uff0cgeometry \u578b\u3084 geomgraphy \u578b\u306e STPointFromTect() \u30e1\u30bd\u30c3\u30c9\u3067\u7d50\u679c\u306e\u8868\u73fe\u3092\u6b21\u306e\u3088\u3046\u306b\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u308b\uff0e<\/p>\n<pre>SELECT geography::STPointFromText(\n  dbo.Geocode('2855 Telegraph Avenue', 'Berkeley', 'CA', '94705', 'USA'),4326).STAsText()<\/pre>\n<p>\u3000\u7d50\u679c\u306f\u6b21\u306e\u901a\u308a\uff0e<\/p>\n<pre>POINT(-122.259388935609 37.8584886447626)<\/pre>\n<p>\u3000\u3053\u306e\u4f8b\u3092\u3055\u3089\u306b\u62e1\u5f35\u3059\u308b\u305f\u3081\uff0c\u4f4f\u6240\uff0c\u8857\uff0c\u56fd\u304a\u3088\u3073\u90f5\u4fbf\u30b3\u30fc\u30c9\u306e\u5217\u3092\u542b\u3080\u4f4f\u6240\u30c7\u30fc\u30bf\u306e\u5178\u578b\u7684\u306a\u30c6\u30fc\u30d6\u30eb\u306b\u3064\u3044\u3066\u8003\u3048\u3066\u307f\u3088\u3046\uff0e\u6b21\u306e\u30b3\u30fc\u30c9\u4f8b\u306f\u305d\u306e\u3088\u3046\u306a\u30c6\u30fc\u30d6\u30eb\u3092\u751f\u6210\u3057\uff0c\u5408\u8846\u56fd\u5185\u306e Barnes and Noble \u66f8\u5e97\u306e5\u3064\u306e\u30a2\u30a6\u30c8\u30ec\u30c3\u30c8\u3092\u542b\u3093\u3067\u3044\u308b\uff0e<\/p>\n<pre>CREATE TABLE #BarnesAndNoble (\n  Address varchar(255),\n  City varchar(255),\n  State char(2),\n  ZIP int)\nGO\nINSERT INTO #BarnesAndNoble (Address, City, State, ZIP) VALUES\n('100 Quinn Drive', 'Pittsburgh', 'PA', '15275'),\n('10180 South State Street', '', 'UT', '84070'),\n('2800 South Rochester Road', 'Rochester Hills', 'MI', ''),\n('3909 Sth Cooper ST', 'Arlington', 'TX', '76015'),\n('555 Fifth Avenue', 'New York', 'NY', '')\nGO<\/pre>\n<p>\u4ed8\u8a18\u3000\u4e0d\u5b8c\u5168\u306a\u30c7\u30fc\u30bf\u3057\u304b\u306a\u304f\u3066\u3082\uff0c\u4f8b\u3048\u3070\u5148\u8ff0\u3057\u305f\u4f8b\u306b\u793a\u3059\u3088\u3046\u306b\u90f5\u4fbf\u756a\u53f7\u3084\u4f4f\u6240\u306e\u4e00\u90e8\u306e\u6b20\u640d\u304c\u3042\u3063\u3066\u3082\uff0cMapPoint Web Service \u306f\u63d0\u4f9b\u3055\u308c\u305f\u60c5\u5831\u306b\u6700\u3082\u4e00\u81f4\u3059\u308b\u3082\u306e\u3092\u8fd4\u3059\uff0e<\/p>\n<p>\u3000\u4eca\u5ea6\u306f\u3053\u306e\u30c6\u30fc\u30d6\u30eb\u306b geography \u578b\u306e\u5217\u3092\u8ffd\u52a0\u3057\uff0cdbo.Geocode \u95a2\u6570\u3092\u4f7f\u3063\u3066\uff0c\u30c7\u30fc\u30bf\u306e\u5404\u884c\u3092\u8868\u73fe\u3059\u308b Point \u3092\u79fb\u5165\u3057\u3088\u3046\uff0e<\/p>\n<pre>ALTER TABLE #BarnesAndNoble\n  ADD Location geography\nGO\nUPDATE #BarnesAndNoble\n  SET Location = geography::STPointFromText(dbo.Geocode(Address, City, State, ZIP, 'USA'), 4326)\nGO<\/pre>\n<p>\u4ed8\u8a18<\/p>\n<p>\u3000SQL Server Management Studio \u306f\u30b8\u30aa\u30b3\u30fc\u30c9\u3055\u308c\u305f\u7d50\u679c\u306e\u6570\u3092\u793a\u3059\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3059\u308b\uff0e<\/p>\n<pre>(5 row(s) affected)<\/pre>\n<p>\u3000\u30c6\u30fc\u30d6\u30eb\u3092\u691c\u67fb\u3057\u3066\u5404\u84c4\u7a4d\u306e\u30b8\u30aa\u30b3\u30fc\u30c9\u3055\u308c\u305f\u4f4f\u6240\u306b\u57fa\u3065\u304f Point \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u542b\u3080\u304b\u898b\u308b\u3053\u3068\u304c\u3067\u304d\uff0c\u305d\u308c\u306f\u4ed6\u306e\u7a7a\u9593\u30c7\u30fc\u30bf\u30a2\u30a4\u30c6\u30e0\u3068\u540c\u69d8\u306b\u6271\u3046\u3053\u3068\u304c\u3067\u304d\u308b\uff0e\u6b21\u306e\u30af\u30a8\u30ea\u306e\u3088\u3046\u306b\uff0e<\/p>\n<pre>SELECT\n  Address,\n  City,\n  Location.STAsText() AS WKT\nFROM\n  #BarnesAndNoble<\/pre>\n<p>\u3000\u3053\u308c\u304c\u7d50\u679c\u3067\u3042\u308b\uff0e<\/p>\n<pre>Address                    City             WKT\n100 Quiin Drive            Pittsburgh       POINT (-80.178599 40.44776)\n10180 South State Street                    POINT (-111.890829 40.566146)\n2800 South Rochester Road  Rochester Hills  POINT (-83.131891 42.639297)\n3909 South Cooper Street   Arlington        POINT (-97.133609 32.682357)\n555 Fifth Avenue           New York         POINT (-73.979266 40.755704)<\/pre>\n<p>\u30c1\u30c3\u30d7\u30b9\u3000\u30c6\u30fc\u30d6\u30eb\u306b\u5165\u529b\u3055\u308c\u305f\u6642\u306b\u81ea\u52d5\u7684\u306b\u30b8\u30aa\u30b3\u30fc\u30c9\u3059\u308b\u305f\u3081\u306b\u306f\uff0c\u65b0\u3057\u3044\u884c\u304c\u633f\u5165\u3055\u308c\u305f\u6642\u5168\u3066\u3067 dbo.Geocode \u95a2\u6570\u3092\u30c6\u30fc\u30d6\u30eb\u304c\u767a\u706b\u3055\u305b\u308b\u30c8\u30ea\u30ac\u3092\u751f\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\uff0e\u30c8\u30ea\u30ac\u306b\u3064\u3044\u3066\u306e\u66f4\u306b\u8a73\u7d30\u306a\u60c5\u5831\u306b\u3064\u3044\u3066\u306f\u6b21\u3092\u53c2\u7167\u306e\u3053\u3068\uff0ehttp:\/\/msdn.microsoft.com\/en-us\/library\/ms187834(SQL.90).aspx<\/p>\n<h3>\u8981\u7d04<\/h3>\n<p>\u3000\u672c\u7ae0\u3067\u306f\uff0c\u30b8\u30aa\u30b3\u30fc\u30c9\u3055\u308c\u305f\u30c7\u30fc\u30bf\u304b\u3089\u7a7a\u9593\u60c5\u5831\u3092\u751f\u6210\u3059\u308b\u53ef\u80fd\u6027\u3092\u542b\u3081\uff0cSQL Server \u306e\u6a5f\u80fd\u3092\u62e1\u5f35\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3093\u3060\uff0e\u7279\u306b\uff0c\u6b21\u306e\u70b9\u306b\u3064\u3044\u3066\u5b66\u3093\u3060\uff0e<\/p>\n<ul>\n<li>\u30b8\u30aa\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306f\uff0c\u305d\u306e\u7279\u5fb4\u306b\u3064\u3044\u3066\u306e\u8a18\u8ff0\u304b\u3089\uff0c\u5730\u7403\u4e0a\u306e\u5730\u7269\u306e\u69cb\u9020\u5316\u3055\u308c\u305f\u7a7a\u9593\u60c5\u5831\u3092\u6d3e\u751f\u3055\u305b\u308b\u306e\u306b\u4f7f\u308f\u308c\u308b\uff0e<\/li>\n<li>MapPoint Web Service \u306f\uff0c\u30b8\u30aa\u30b3\u30fc\u30c9\u30c7\u30fc\u30bf\u306b\u4f7f\u308f\u308c\u308b\u591a\u304f\u306e\u65b9\u6cd5\u3092\u63d0\u4f9b\u3057\uff0c\u30a6\u30a7\u30d6\u4e0a\u306e SOAP \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u7d4c\u7531\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u3092\u53ef\u80fd\u306b\u3059\u308b\uff0e<\/li>\n<li>.NET \u30a2\u30bb\u30f3\u30d6\u30ea\u3092\u751f\u6210\u3057\u3066 SQL Server \u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u3053\u3068\u3067\u65b0\u3057\u3044\u95a2\u6570\u3092\u5b9a\u7fa9\u3067\u304d\uff0cMapPoint Web Service \u306b\u63a5\u7d9a\u3057\uff0c\u30b8\u30aa\u30b3\u30fc\u30c9\u3055\u308c\u305f\u4f4f\u6240\u306e WKT \u8868\u73fe\u3092\u69cb\u7bc9\u3059\u308b\uff0e<\/li>\n<li>\u672c\u7ae0\u3067\u4f5c\u6210\u3057\u305f\u3088\u3046\u306a\u30b8\u30aa\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u95a2\u6570\u306f\uff0cT-SQL \u306e UPDATE \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3068\u7d44\u307f\u5408\u308f\u305b\u3066\uff0c\u4f4f\u6240\u30c6\u30fc\u30d6\u30eb\u306e\u30c7\u30fc\u30bf\u306e\u5404\u884c\u3092\u8868\u73fe\u3059\u308b Points \u8868\u73fe\u306a\u3069\u306e geography \u578b\u306e\u5217\u306b\u79fb\u5165\u3059\u308b\u306e\u306b\u4f7f\u308f\u308c\u308b\uff0e<\/li>\n<\/ul>\n<p>\u3000\u30b8\u30aa\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306f\u591a\u304f\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u6709\u7528\u3067\u3042\u308a\uff0cdbo.Geocode \u95a2\u6570\u306f\u3053\u306e\u6a5f\u80fd\u3092 SQL Server 2008 \u3067\u63d0\u4f9b\u3055\u308c\u308b\u7a7a\u9593\u6027\u80fd\u306b\u8ffd\u52a0\u3059\u308b\u4e00\u3064\u306e\u65b9\u6cd5\u3067\u3042\u308b\uff0e\u4eee\u306b\u30b8\u30aa\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3092 MapPoint Web Service \u3092\u4f7f\u3063\u3066\u5546\u7528\u74b0\u5883\u3067\u5b9f\u884c\u3057\u305f\u3044\u5834\u5408\u306b\u306f\uff0c\u307e\u305a\uff0c\u767b\u9332\u3057\u305f\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u5546\u7528\u30b5\u30fc\u30d3\u30b9\u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3057\u306a\u304f\u3066\u306f\u306a\u3089\u306a\u3044\u3053\u3068\u3092\u899a\u3048\u3066\u304a\u3053\u3046\uff0e<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000\u3053\u308c\u307e\u3067\u6570\u7ae0\u306b\u308f\u305f\u3063\u3066\uff0c\u591a\u304f\u306e\u7570\u306a\u308b\u6280\u8853\u3092\u7d39\u4ecb\u3057\u3066\u304d\u305f\uff0e\u305d\u306e\u6280\u8853\u306b\u3088\u308a SQL Server 2008 \u5185\u306b\u7a7a\u9593\u30c7\u30fc\u30bf\u3092\u8ffd\u52a0\u3067\u304d\u308b\uff0egeometry \u578b\u304a\u3088\u3073 geography \u578b\u306e\u9759\u7684\u30e1\u30bd\u30c3\u30c9\u3092 WKT, WKB  &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.muscle-hypertrophy.com\/?p=11244\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u7b2c 7 \u7ae0\u3000\u30b8\u30aa\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0 (Beginning Spatial with SQL Server 2008)&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":15391,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[12737,7554,12755,12756,12771,12769,11882,7901,12782,12731,8402,12742,12747,12781,12748,12749,12752,12751,7587,7724,12753,7541,2775,12765,12741,266,12743,12745,12754,4569,11883,4672,12746,12744,12780,12113,2750,12145,12047,2872,6392,3593,12736,12766,12767,458,12778,7540,7464,12779,12760,3942,12759,12758,2861,12777,2829,12757,12776,4012,12740,12735,462,3948,12772,1026,32,12799,4217,7717,11147,4825,1669,11064,12774,11876,12773,4006,2703,12770,12768,12775,12762,5178,9175,9507,12761,11349,7181,7191,12739,12738,4016,12764,4017,12763,2723,4437,7241,2965,7542],"class_list":["post-11244","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology","tag-net","tag-alter-table","tag-base-class-libray","tag-bcl","tag-clr","tag-cls","tag-create-function","tag-create-table","tag-datasourcename","tag-epsg4326","tag-find","tag-find-service","tag-findaddress","tag-findaddressspec","tag-findbyid","tag-findbyproperty","tag-findnearroute","tag-findpolygon","tag-geography","tag-geometry","tag-getlocationinfo","tag-gml","tag-id","tag-ide","tag-mappoint-web-service","tag-microsoft","tag-microsoft-live-search-maps","tag-microsoft-mappoint","tag-parseaddress","tag-point","tag-returns","tag-select","tag-simple-object-access-protocol","tag-soap","tag-solution-explorer","tag-sql-server-2008","tag-sql-server-management-studio","tag-sqlclr","tag-stpointfromtext-2","tag-t-sql","tag-update","tag-url","tag-virtual-earth","tag-visual-basic","tag-visual-c-2","tag-visual-studio","tag-web-services-description-language","tag-wkb","tag-wkt","tag-wsdl","tag-12760","tag-3942","tag-12759","tag-12758","tag-2861","tag-12777","tag-2829","tag-12757","tag-12776","tag-4012","tag-12740","tag-12735","tag-462","tag-3948","tag-12772","tag-1026","tag-32","tag-12799","tag-4217","tag-7717","tag-11147","tag-4825","tag-1669","tag-11064","tag-12774","tag-11876","tag-12773","tag-4006","tag-2703","tag-12770","tag-12768","tag-12775","tag-12762","tag-5178","tag-9175","tag-9507","tag-12761","tag-11349","tag-7181","tag-7191","tag-12739","tag-12738","tag-4016","tag-12764","tag-4017","tag-12763","tag-2723","tag-4437","tag-7241","tag-2965","tag-7542"],"_links":{"self":[{"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=\/wp\/v2\/posts\/11244","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11244"}],"version-history":[{"count":77,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=\/wp\/v2\/posts\/11244\/revisions"}],"predecessor-version":[{"id":17237,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=\/wp\/v2\/posts\/11244\/revisions\/17237"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=\/wp\/v2\/media\/15391"}],"wp:attachment":[{"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11244"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11244"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}