{"id":11166,"date":"2020-06-04T06:00:00","date_gmt":"2020-06-03T21:00:00","guid":{"rendered":"https:\/\/www.muscle-hypertrophy.com\/?p=11166"},"modified":"2022-10-06T15:48:13","modified_gmt":"2022-10-06T06:48:13","slug":"%e7%ac%ac-2-%e7%ab%a0%e3%80%80sql-server-2008-%e3%81%a7%e7%a9%ba%e9%96%93%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e5%ae%9f%e8%a3%85%e3%81%99%e3%82%8b-beginning-spatial-with-sql-server-2008","status":"publish","type":"post","link":"https:\/\/www.muscle-hypertrophy.com\/?p=11166","title":{"rendered":"\u7b2c 2 \u7ae0\u3000SQL Server 2008 \u3067\u7a7a\u9593\u30c7\u30fc\u30bf\u3092\u5b9f\u88c5\u3059\u308b (Beginning Spatial with SQL Server 2008)"},"content":{"rendered":"\n<p>\u3000\u524d\u7ae0\u3067\u306f\uff0c\u7a7a\u9593\u53c2\u7167\u7cfb\u306e\u80cc\u5f8c\u306b\u3042\u308b\u7406\u8ad6\u3092\u7d39\u4ecb\u3057\uff0c\u7570\u306a\u308b\u7a2e\u985e\u306e\u30b7\u30b9\u30c6\u30e0\u304c\u5730\u7403\u4e0a\u306e\u7279\u5fb4\u3092\u8a18\u8ff0\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u305f\uff0e\u672c\u7ae0\u3067\u306f\uff0c\u3053\u308c\u3089\u306e\u30b7\u30b9\u30c6\u30e0\u3092\u9069\u7528\u3057\u3066 SQL Server 2008 \u306b\u304a\u3051\u308b\u65b0\u3057\u3044\u7a7a\u9593\u30c7\u30fc\u30bf\u578b\u3092\u4f7f\u3063\u3066\u7a7a\u9593\u60c5\u5831\u3092\u84c4\u7a4d\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3093\u3067\u3082\u3089\u3046\uff0e<\/p>\n<p><!--more--><\/p>\n<h3>\u30c7\u30fc\u30bf\u578b\u3092\u7406\u89e3\u3059\u308b<\/h3>\n<p>\u3000SQL Server \u30c6\u30fc\u30d6\u30eb\u5185\u306e\u3042\u3089\u3086\u308b\u5909\u6570\uff0c\u30d1\u30e9\u30e1\u30fc\u30bf\u304a\u3088\u3073\u5217\u306f\u7279\u5b9a\u306e\u30c7\u30fc\u30bf\u578b\u3067\u3042\u308b\u3068\u3057\u3066\u5b9a\u7fa9\u3055\u308c\u308b\uff0e\u3053\u306e\u3053\u3068\u306f SQL Server \u304c\u3069\u3093\u306a\u7a2e\u985e\u306e\u30c7\u30fc\u30bf\u5024\u3092\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u84c4\u7a4d\u3055\u308c\u308b\u304b\uff0c\u3044\u304b\u306b\u3057\u3066\u4f7f\u308f\u308c\u308b\u304b\u3092\u793a\u3057\u3066\u3044\u308b\uff0e\u3044\u304f\u3064\u304b\u306e\u4e00\u822c\u7684\u306b\u4f7f\u308f\u308c\u308b\u30c7\u30fc\u30bf\u578b\u3092 Table 2-1 \u306b\u5217\u6319\u30fb\u8a18\u8ff0\u3057\u3066\u3044\u308b\uff0e<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\"><caption>Table 2-1. \u4e00\u822c\u7684\u306a\u3044\u304f\u3064\u304b\u306e SQL Server \u30c7\u30fc\u30bf\u578b<\/caption>\n<tbody>\n<tr>\n<th style=\"width: 20%;\">\u30c7\u30fc\u30bf\u578b<\/th>\n<th style=\"width: 80%;\">\u4f7f\u7528\u6cd5<\/th>\n<\/tr>\n<tr>\n<td style=\"width: 20%;\">char<\/td>\n<td style=\"width: 80%;\">\u56fa\u5b9a\u9577\u6587\u5b57\u5217<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 20%;\">datetime<\/td>\n<td style=\"width: 80%;\">\u65e5\u4ed8\u3068\u6642\u523b\u306e\u5024\uff0c\u7cbe\u5ea6\u306f 3.33 \u30df\u30ea\u79d2<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 20%;\">float<\/td>\n<td style=\"width: 80%;\">\u6d6e\u52d5\u5c0f\u6570\u306e\u6570\u5024\u578b<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 20%;\">int<\/td>\n<td style=\"width: 80%;\">\u00a0-2<sup>31<\/sup>\u00a0\u304b\u3089 2<sup>31<\/sup>-1 \u307e\u3067\u306e\u7bc4\u56f2\u306e\u6574\u6570<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 20%;\">money<\/td>\n<td style=\"width: 80%;\">\u8ca1\u52d9\u578b\uff0c\u901a\u8ca8\u578b<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 20%;\">nvarchar<\/td>\n<td style=\"width: 80%;\">\u53ef\u5909\u9577\uff0c\u30e6\u30cb\u30b3\u30fc\u30c9\u6587\u5b57\u5217<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3000SQL Server 2008 \u306f\u7279\u306b\u7a7a\u9593\u30c7\u30fc\u30bf\u578b\u3092\u4fdd\u6301\u3059\u308b\u610f\u56f3\u3067\uff12\u3064\u306e\u65b0\u3057\u3044\u30c7\u30fc\u30bf\u578b\u3092\u5c0e\u5165\u3057\u305f\uff0egeography \u578b\u3068 geometry \u578b\u3067\u3042\u308b\uff0eTable 2-2 \u53c2\u7167\uff0e<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\"><caption>Table 2-2. SQL Server 2008 \u3067\u306e\u7a7a\u9593\u30c7\u30fc\u30bf\u578b<\/caption>\n<tbody>\n<tr>\n<th style=\"width: 20%;\">\u30c7\u30fc\u30bf\u578b<\/th>\n<th style=\"width: 80%;\">\u4f7f\u7528\u6cd5<\/th>\n<\/tr>\n<tr>\n<td style=\"width: 20%;\">geography<\/td>\n<td style=\"width: 80%;\">\u6e2c\u5730\u30d9\u30af\u30c8\u30eb\u7a7a\u9593\u30c7\u30fc\u30bf<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 20%;\">geometry<\/td>\n<td style=\"width: 80%;\">\u5e73\u9762\u30d9\u30af\u30c8\u30eb\u7a7a\u9593\u30c7\u30fc\u30bf<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3000\u4e21\u8005\u306e\u30c7\u30fc\u30bf\u578b\u306f\u5171\u306b\u7a7a\u9593\u30c7\u30fc\u30bf\u3092\u84c4\u7a4d\u3059\u308b\u304c\uff0c\u4e92\u3044\u306b\u660e\u78ba\u306b\u533a\u5225\u3055\u308c\uff0c\u7570\u306a\u308b\u65b9\u6cd5\u3067\u4f7f\u308f\u308c\u308b\uff0eSQL Server 2008 \u306b\u304a\u3044\u3066\u7a7a\u9593\u30c7\u30fc\u30bf\u306e\u30a2\u30a4\u30c6\u30e0\u3092\u5b9a\u7fa9\u3059\u308b\u6642\u306f\u3044\u3064\u3067\u3082\uff0c\u4f7f\u3046\u60c5\u5831\u304c geometry \u578b\u306a\u306e\u304b geography \u578b\u306a\u306e\u304b\u3092\u84c4\u7a4d\u3059\u308b\u306e\u306b\u9078\u629e\u3057\u306a\u304f\u3066\u306f\u306a\u3089\u306a\u3044\uff0e<\/p>\n<p>\u6ce8\u8a18\u3000geometry \u3068\u3044\u3046\u5358\u8a9e\u306f\u672c\u66f8\u306b\u304a\u3044\u3066\u306f\uff12\u3064\u306e\u7570\u306a\u308b\u610f\u5473\u3092\u6301\u3064\uff0e\u6df7\u4e71\u3092\u907f\u3051\u308b\u305f\u3081\u306b geometry \uff08\u30c6\u30ad\u30b9\u30c8\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306a\u3057\uff09\u306e\u8a9e\u53e5\u306f\u5730\u7403\u4e0a\u306e\u7279\u5fb4\u3067\u3042\u308b Point, LineString \u304a\u3088\u3073 Polygon \u3092\u6307\u3059\u3053\u3068\u306b\u3059\u308b\uff0egeometry \u578b\u3068\u8a00\u3046\u5834\u5408\u306f geometry \u30c7\u30fc\u30bf\u578b\u3092\u6307\u3059\u3053\u3068\u306b\u3059\u308b\uff0e\u672c\u66f8\u3067\u306f\u3053\u308c\u4ee5\u964d\uff0c\u3053\u306e\u6163\u7fd2\u3092\u4f7f\u3046\u3053\u3068\u306b\u3059\u308b\uff0e<\/p>\n<h3>\u7a7a\u9593\u30c7\u30fc\u30bf\u578b\u3092\u6bd4\u8f03\u3059\u308b<\/h3>\n<p>\u3000\uff12\u3064\u306e\u7a7a\u9593\u30c7\u30fc\u30bf\u578b\u306b\u306f\u3044\u304f\u3064\u304b\u306e\u985e\u4f3c\u70b9\u304c\u3042\u308b\uff0e<\/p>\n<ul>\n<li>\u3044\u305a\u308c\u3082 geometry \u306e\u7bc4\u56f2\u5185\u3067\u7a7a\u9593\u60c5\u5831\u3092\u8868\u73fe\u3059\u308b\uff0ePoints, LineStrings \u304a\u3088\u3073 Polygons \u3067\u3042\u308b\uff0e<\/li>\n<li>\u5185\u90e8\u7684\u306b\u306f\uff0c\u4e21\u30c7\u30fc\u30bf\u578b\u5171\u306b\u7a7a\u9593\u30c7\u30fc\u30bf\u3092\u540c\u3058\u5f62\u5f0f\u306e\u30d0\u30a4\u30ca\u30ea\u30fc\u30c7\u30fc\u30bf\u30b9\u30c8\u30ea\u30fc\u30e0\u3068\u3057\u3066\u84c4\u7a4d\u3059\u308b\uff0e<\/li>\n<li>\u3069\u3061\u3089\u306e\u30c7\u30fc\u30bf\u578b\u304b\u3089\u30c7\u30fc\u30bf\u306e\u30a2\u30a4\u30c6\u30e0\u3092\u4f7f\u3046\u6642\u3067\u3082\uff0c.NET \u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u57fa\u3065\u304f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u308f\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\uff0e\u3053\u308c\u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u6b21\u7ae0\u3067\u8ff0\u3079\u308b\uff0e<\/li>\n<li>\u4e21\u8005\u3068\u3082\u540c\u3058\u6a19\u6e96\u306e\u7a7a\u9593\u30e1\u30bd\u30c3\u30c9\u3092\u6570\u591a\u304f\u5b9f\u88c5\u3057\u3066\u304a\u308a\uff0c\u305d\u306e\u7a2e\u985e\u306e\u30c7\u30fc\u30bf\u306e\u8a08\u7b97\u306e\u89e3\u6790\u304a\u3088\u3073\u5b9f\u884c\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u308b\uff0e<\/li>\n<\/ul>\n<p>\u3000\u3057\u304b\u3057\uff0c\uff12\u3064\u306e\u7a7a\u9593\u30c7\u30fc\u30bf\u578b\u306e\u9593\u306b\u306f\u591a\u304f\u306e\u91cd\u8981\u306a\u9055\u3044\u3082\u5b58\u5728\u3057\uff0cTable 2-3 \u306b\u6982\u8981\u3092\u793a\u3057\u3066\u3042\u308b\uff0e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5185\u306e\u30c7\u30fc\u30bf\u3092\u4f7f\u3046\u305f\u3081\u306b\u8a08\u753b\u3059\u308b\u65b9\u6cd5\u306b\u5fdc\u3058\u3066\uff0c\u9069\u5207\u306a\u30c7\u30fc\u30bf\u578b\u3092\u9078\u629e\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\uff0e<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\"><caption>Table 2-3. geometry \u578b\u3068 geography \u578b\u306e\u6bd4\u8f03<\/caption>\n<tbody>\n<tr>\n<th style=\"width: 30%;\">\u30d7\u30ed\u30d1\u30c6\u30a3<\/th>\n<th style=\"width: 30%;\">geometry \u578b<\/th>\n<th style=\"width: 40%;\">geography \u578b<\/th>\n<\/tr>\n<tr>\n<td style=\"width: 30%;\">\u5730\u7403\u4e0a\u3067\u306e\u5f62\u614b<\/td>\n<td style=\"width: 30%;\">\u5e73\u5766<\/td>\n<td style=\"width: 40%;\">\u4e38\u3044<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 30%;\">\u5ea7\u6a19\u7cfb<\/td>\n<td style=\"width: 30%;\">\u6295\u5f71\uff08\u307e\u305f\u306f\u5e73\u9762\uff09<\/td>\n<td style=\"width: 40%;\">\u5730\u7406\u7684<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 30%;\">\u5ea7\u6a19\u5024<\/td>\n<td style=\"width: 30%;\">\u30c7\u30ab\u30eb\u30c8 (x, y)<\/td>\n<td style=\"width: 40%;\">\u7def\u5ea6\u3068\u7d4c\u5ea6<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 30%;\">\u8a08\u6e2c\u5358\u4f4d<\/td>\n<td style=\"width: 30%;\">\u5ea7\u6a19\u7cfb\u3068\u540c\u3058<\/td>\n<td style=\"width: 40%;\">sys.spatial_reference_system \u3067\u5b9a\u7fa9<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 30%;\">\u7a7a\u9593\u53c2\u7167\u8b58\u5225<\/td>\n<td style=\"width: 30%;\">\u975e\u5f37\u5236<\/td>\n<td style=\"width: 40%;\">\u5f37\u5236<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 30%;\">SRID \u521d\u671f\u8a2d\u5b9a<\/td>\n<td style=\"width: 30%;\">0<\/td>\n<td style=\"width: 40%;\">4326 (WGS 84)<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 30%;\">\u5927\u304d\u3055\u306e\u5236\u9650<\/td>\n<td style=\"width: 30%;\">\u306a\u3057<\/td>\n<td style=\"width: 40%;\">\u534a\u7403\u4ee5\u4e0a\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u751f\u6210\u4e0d\u80fd<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 30%;\">\u30ea\u30f3\u30b0\u306e\u65b9\u5411<\/td>\n<td style=\"width: 30%;\">\u91cd\u8981\u3067\u306a\u3044<\/td>\n<td style=\"width: 40%;\">\u91cd\u8981<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3000\u3053\u308c\u3089\u306e\u9055\u3044\u306e\u7279\u5fb4\u306f\uff0c\uff12\u3064\u306e\u30c7\u30fc\u30bf\u578b\u306e\u8a73\u7d30\u3092\u8aad\u3080\u3068\uff0c\u3088\u308a\u660e\u78ba\u306b\u306a\u308b\uff0e<\/p>\n<h3>Geography \u30c7\u30fc\u30bf\u578b<\/h3>\n<p>\u3000geography \u578b\u306e\u6700\u3082\u91cd\u8981\u306a\u7279\u5fb4\u306f\uff0c\u6e2c\u5730\u7a7a\u9593\u30c7\u30fc\u30bf\u3092\u84c4\u7a4d\u3059\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3042\u308b\uff0e\u3053\u308c\u306f\u5730\u7403\u304c\u66f2\u9762\u306e\u5f62\u614b\u3092\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u8003\u616e\u3057\u3066\u3044\u308b\uff0egeography \u578b\u3092\u4f7f\u3063\u3066\u7a7a\u9593\u30c7\u30fc\u30bf\u3092\u64cd\u4f5c\u3059\u308b\u6642\u306b\u306f SQL Server \u306f\u7d50\u679c\u3092\u51fa\u529b\u3059\u308b\u969b\u306b\u89d2\u5ea6\u6f14\u7b97\u3092\u884c\u3063\u3066\u3044\u308b\uff0e\u3053\u308c\u3089\u306e\u6f14\u7b97\u306f\uff0c\u554f\u984c\u3068\u306a\u308b\u7a7a\u9593\u53c2\u7167\u7cfb\u3067\u5b9a\u7fa9\u3055\u308c\u308b\u5730\u7403\u306e\u6955\u5186\u4f53\u30e2\u30c7\u30eb\u306b\u57fa\u3065\u3044\u3066\u8a08\u7b97\u3055\u308c\u308b\uff0e\u4f8b\u3048\u3070\uff0c\u4eee\u306b geography \u578b\u306e\u5730\u7403\u306e\u8868\u9762\u4e0a\u306e\uff12\u3064\u306e\u5730\u70b9\u3092\u7d50\u3076\u76f4\u7dda\u3092\u5b9a\u7fa9\u3057\u3088\u3046\u3068\u3059\u308b\u5834\u5408\uff0c\u305d\u306e\u76f4\u7dda\u306f\u53c2\u7167\u6955\u5186\u4f53\u306b\u6cbf\u3063\u305f\u66f2\u7dda\u3068\u306a\u308b\u3060\u308d\u3046\uff0egeography \u578b\u3067\u306f\uff0c\u3042\u3089\u3086\u308b\uff12\u5730\u70b9\u9593\u306e\u76f4\u7dda\u306f\u3059\u3079\u3066\uff08\u305d\u306e\u76f4\u7dda\u304c LineString \u306e\u30bb\u30b0\u30e1\u30f3\u30c8\u3067\u3042\u308c\uff0cPolygon \u30ea\u30f3\u30b0\u306e\u8fba\u7e01\u3067\u3042\u308c\uff09\u5b9f\u969b\u306b\u306f<del>\u5927\u6955\u5186\u5f27<\/del>\u5927\u570f\u822a\u8def\u3068\u306a\u308b\uff0e\u3064\u307e\u308a\uff0c\u5730\u7403\u8868\u9762\u4e0a\u306e\u76f4\u7dda\u306f\u53c2\u7167\u6955\u5186\u4f53\u306e\u9802\u70b9\u304a\u3088\u3073\u4e2d\u5fc3\u306e\u4e21\u8005\u3092\u542b\u3080\u5e73\u9762\u304b\u3089\u5f62\u6210\u3055\u308c\u308b\uff0e\u3053\u308c\u3092\u56f3\u793a\u3057\u305f\u306e\u304c Figure 2-1 \u3067\u3042\u308b\uff0e<\/p>\n<h4>\u5ea7\u6a19\u7cfb<\/h4>\n<p>\u3000geography \u578b\u306f\uff0c\u4e16\u754c\u306e\u4e09\u6b21\u5143\u306e\u7403\u4f53\u30e2\u30c7\u30eb\u306b\u57fa\u3065\u3044\u3066\u304a\u308a\uff0c\u3053\u306e\u30c7\u30fc\u30bf\u578b\u3092\u4f7f\u3063\u3066 geometry \u3092\u5b9a\u7fa9\u3057\u305f\u5730\u70b9\u306e\u5404\u3005\u306e\u4f4d\u7f6e\u3092\u6307\u5b9a\u3059\u308b\u306b\u306f\u5730\u7406\u5ea7\u6a19\u7cfb\u3092\u4f7f\u308f\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\uff0e\u5730\u7406\u5ea7\u6a19\u7cfb\u3092\u4f7f\u3046\u6642\u306b\u306f\u3053\u308c\u3089\u306e\u5730\u70b9\u306e\u5ea7\u6a19\u306f\u7d4c\u5ea6\u3068\u7def\u5ea6\u306e\u89d2\u5ea6\u3067\u8868\u73fe\u3055\u308c\u308b\u3053\u3068\u3092\u9298\u8a18\u3055\u308c\u305f\u3044\uff0e<\/p>\n<h4>\u8a08\u6e2c\u5358\u4f4d<\/h4>\n<p>\u3000geography \u578b\u304c\u7d4c\u5ea6\u3068\u7def\u5ea6\u306e\u89d2\u5ea6\u8a08\u6e2c\u3092\u4f7f\u3063\u3066\u5730\u70b9\u3092\u5b9a\u7fa9\u3059\u308b\u305f\u3081\u306b\uff0c\u5ea7\u6a19\u5024\u306f\u901a\u5e38\uff0c\u89d2\u5ea6\u3067\u6e2c\u5b9a\u3055\u308c\u308b\uff0e\u3053\u308c\u3089\u306e\u89d2\u5ea6\u5ea7\u6a19\u306f\u5730\u70b9\u306e\u4f4d\u7f6e\u3092\u8868\u73fe\u3059\u308b\u306e\u306b\u6709\u7528\u3067\u3042\u308b\u304c\uff0c\u5730\u70b9\u9593\u306e\u8ddd\u96e2\u3084\u3044\u304f\u3064\u304b\u306e\u5730\u70b9\u3067\u56f2\u307e\u308c\u305f\u9762\u7a4d\u3092\u8a08\u6e2c\u3059\u308b\u306b\u306f\u3042\u307e\u308a\u5f79\u306b\u7acb\u305f\u306a\u3044\uff0e\u4f8b\u3048\u3070\uff0c\u7a7a\u9593\u53c2\u7167\u7cfb EPSG:4326 \u3092\u4f7f\u3063\u3066\u30d5\u30e9\u30f3\u30b9\u306e\u30d1\u30ea\u306e\u4f4d\u7f6e\u3092 48.87\u00b0N, 2.33\u00b0E \u3068\u8a18\u8ff0\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u308b\uff0e\u540c\u3058\u53c2\u7167\u7cfb\u3092\u4f7f\u3063\u3066\u30c9\u30a4\u30c4\u306e\u30d9\u30eb\u30ea\u30f3\u306e\u4f4d\u7f6e\u3092 52.52\u00b0N, 13.4\u00b0E \u3068\u8a18\u8ff0\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u308b\uff0e\u3057\u304b\u3057\uff0c\u30d1\u30ea\u3068\u30d9\u30eb\u30ea\u30f3\u9593\u306e\u8ddd\u96e2\u3092\u77e5\u308a\u305f\u3044\u5834\u5408\u306b\uff0c\u89d2\u5ea6\u3067\u7b54\u3048\u3092\u8a18\u8ff0\u3057\u3066 11.65\u00b0 \u96e2\u308c\u3066\u3044\u308b\u3068\u8a00\u308f\u308c\u3066\u3082\uff0c\u5f79\u306b\u7acb\u305f\u306a\u3044\u3060\u308d\u3046\uff0e\u304a\u305d\u3089\u304f\uff0c\u305d\u308c\u3089\u306e\u9593\u306e\u8ddd\u96e2\u306f 880 km \u3068\u304b 546 \u30de\u30a4\u30eb\u3068\u304b\u8a00\u3063\u305f\u307b\u3046\u304c\uff0c\u3088\u308a\u5f79\u306b\u7acb\u3064\u3060\u308d\u3046\uff0e<\/p>\n<p>\u3000\u3053\u308c\u3092\u8003\u616e\u3057\u3066\uff0cgeography \u578b\u3092\u4f7f\u3063\u3066\u7a7a\u9593\u30c7\u30fc\u30bf\u306e\u4efb\u610f\u306e\u30a2\u30a4\u30c6\u30e0\u3067\u8a08\u7b97\u3092\u5b9f\u884c\u3059\u308b\u6642\u306b\u306f\uff0c\u305d\u306e\u7d50\u679c\u306f\uff0c\u7a7a\u9593\u53c2\u7167\u7cfb\u306b\u95a2\u9023\u3059\u308b sys.spatial_reference_systems \u30c6\u30fc\u30d6\u30eb\u306e unit_of_measure \u5217\u3067\u6307\u5b9a\u3057\u305f\u7dda\u5f62\u8a08\u6e2c\u5358\u4f4d\u3067\u8fd4\u3055\u308c\u308b\uff0e\u4f8b\u3048\u3070\uff0c\u7a7a\u9593\u53c2\u7167\u7cfb EPSG:4326 \u306b\u4f7f\u308f\u308c\u308b\u8a08\u6e2c\u5358\u4f4d\u3092\u8abf\u3079\u308b\u306b\u306f\uff0c\u6b21\u306e T-SQL \u30af\u30a8\u30ea\u3092\u8d70\u3089\u305b\u308b\uff0e<\/p>\n<pre>SELECT unit_of_measure\nFROM sys.spatial_reference_systems\nWHERE authority_name = 'EPSG'\nAND authorized_spatial_reference_id = 4326<\/pre>\n<p>\u3000\u7d50\u679c\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3042\u308b\uff0e<\/p>\n<pre>metre<\/pre>\n<p>\u3000\u3053\u308c\u306b\u3088\u308a\uff0cgeography \u578b\u3067\u84c4\u7a4d\u3055\u308c\uff0cEPSG:4326 \u7a7a\u9593\u53c2\u7167\u7cfb\u3092\u4f7f\u3063\u3066\u5b9a\u7fa9\u3055\u308c\u305f\u30c7\u30fc\u30bf\u306b\u5bfe\u3057\u3066\u5b9f\u884c\u3055\u308c\u305f\u4efb\u610f\u306e\u7dda\u5f62\u8a08\u7b97\u306e\u7d50\u679c\u306f\u30e1\u30fc\u30c8\u30eb\u3067\u8a18\u8ff0\u3055\u308c\u308b\uff0c\u3068\u3044\u3046\u3053\u3068\u304c\u5206\u304b\u308b\uff0e\u5148\u306b\u4e0e\u3048\u3089\u308c\u305f\u5ea7\u6a19\u306b\u57fa\u3065\u3044\u3066\u30d1\u30ea\u3068\u30d9\u30eb\u30ea\u30f3\u9593\u306e\u8ddd\u96e2\u3092\u8a08\u7b97\u3059\u308b\u306b\u306f\uff0c\u6b21\u306e T-SQL \u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3042\u308b\uff0e<\/p>\n<pre>DECLARE @Paris geography = geography::Point(48.87, 2.33, 4326)\nDECLARE @Berlin geography = geography::Point(52.52, 13.4, 4326)\nSELECT @Paris.STDistance(@Berlin)<\/pre>\n<p>\u3000\u7d50\u679c\u306f\u30e1\u30fc\u30c8\u30eb\u3067\u8868\u73fe\u3055\u308c\u308b\uff0e<\/p>\n<pre>879989.866996421<\/pre>\n<p>\u6ce8\u8a18\u3000\u4e0a\u8ff0\u306e\u69cb\u6587\u304c\u7406\u89e3\u3067\u304d\u306a\u304f\u3066\u3082\u60b2\u89b3\u3059\u308b\u3053\u3068\u306f\u306a\u3044\uff0e\u6b21\u7ae0\u3067\u3053\u308c\u3092\u8aac\u660e\u3059\u308b\uff0e\u305f\u3060\u3053\u306e\u30af\u30a8\u30ea\u304c\uff0c\u30d1\u30ea\u3068\u30d9\u30eb\u30ea\u30f3\u3092\u8868\u73fe\u3059\u308b geography \u578b\u306e points \u3092\u751f\u6210\u3059\u308b\u3053\u3068\uff0c\u305d\u3057\u3066\u3053\u308c\u3089\u306e\u6700\u77ed\u8ddd\u96e2\u3092\u8a08\u7b97\u3057\u3066\u304f\u308c\u308b\u3053\u3068\u3092\u77e5\u3063\u3066\u3044\u308c\u3070\u3088\u3044\uff0e<\/p>\n<p>\u3000\u307b\u3068\u3093\u3069\u306e\u7a7a\u9593\u53c2\u7167\u7cfb\u306f\u30e1\u30fc\u30c8\u30eb\u306b\u57fa\u3065\u3044\u3066\u304a\u308a\uff0cgeography \u578b\u3092\u4f7f\u3063\u3066\u8a08\u7b97\u3055\u308c\u305f\u8ddd\u96e2\u306f\u666e\u901a\u30e1\u30fc\u30c8\u30eb\u3067\u8868\u8a18\u3055\u308c\uff0c\u9762\u7a4d\u306f\u5e73\u65b9\u30e1\u30fc\u30c8\u30eb\u3067\u8868\u8a18\u3055\u308c\u308b\uff0e<\/p>\n<h4>\u7a7a\u9593\u53c2\u7167\u8b58\u5225\u5b50<\/h4>\n<p>\u3000geography \u578b\u3092\u4f7f\u3063\u3066\u30c7\u30fc\u30bf\u306e\u30a2\u30a4\u30c6\u30e0\u3092\u84c4\u7a4d\u3059\u308b\u6642\u306f\u3044\u3064\u3067\u3082\uff0c\u305d\u3053\u304b\u3089\u5ea7\u6a19\u3092\u53d6\u5f97\u3059\u308b\u7a7a\u9593\u53c2\u7167\u7cfb\u306b\u5bfe\u5fdc\u3057\u305f\u9069\u5207\u306a SRID \u3092\u63d0\u4f9b\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\uff0eSQL Server 2008 \u306f\u305d\u306e\u8a08\u7b97\u306b\u304a\u3044\u3066\u5730\u7403\u306e\u66f2\u9762\u306e\u95a2\u9023\u3059\u308b\u30e2\u30c7\u30eb\u306b\u9069\u7528\u3059\u308b\u7a7a\u9593\u53c2\u7167\u7cfb\u306b\u542b\u307e\u308c\u308b\u60c5\u5831\u3092\u4f7f\u3044\uff0c\u9069\u5207\u306a\u8a08\u6e2c\u5358\u4f4d\u3067\u4efb\u610f\u306e\u7dda\u5f62\u6cd5\u3067\u7d50\u679c\u3092\u8868\u73fe\u3059\u308b\uff0e\u63d0\u4f9b\u3055\u308c\u305f SRID \u306f\u305d\u308c\u3086\u3048\u306b sys.spatial_reference_systems \u30c6\u30fc\u30d6\u30eb\u5185\u306e\u7a7a\u9593\u53c2\u7167\u3067\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u308b\u3082\u306e\u306e\u4e00\u3064\u306b\u76f8\u95a2\u3057\u3066\u3044\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\uff0e<\/p>\n<p>\u3000\u4eee\u306b geography \u578b\u306e\u30c7\u30fc\u30bf\u3092\u84c4\u7a4d\u3059\u308b\u6642\u306b\u7570\u306a\u308b SRID \u3092\u63d0\u4f9b\u3057\u305f\u306a\u3089\uff0c\u305d\u306e\u30c7\u30fc\u30bf\u3092\u4f7f\u3063\u3066\u53d6\u5f97\u3057\u305f\u3069\u3093\u306a\u65b9\u6cd5\u3067\u3082\uff0c\u7570\u306a\u308b\u7d50\u679c\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u306b\u306a\u308b\u3060\u308d\u3046\uff0e\u306a\u305c\u306a\u3089\uff0c\u305d\u306e\u8a08\u7b97\u306f\u7570\u306a\u308b\u6e2c\u5730\u30d1\u30e9\u30e1\u30fc\u30bf\u306b\u57fa\u3065\u3044\u3066\u3044\u308b\u304b\u3089\u3067\u3042\u308b\uff0e<\/p>\n<h4>\u5927\u304d\u3055\u306e\u5236\u9650<\/h4>\n<p>\u3000\u6280\u8853\u7684\u306a\u9650\u754c\u304b\u3089\uff0cSQL Server \u306f geography \u578b\u3067\u84c4\u7a4d\u3055\u308c\u308b\u4e00\u500b\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u6700\u5927\u30b5\u30a4\u30ba\u306b\u5236\u7d04\u3092\u8ab2\u3057\u3066\u3044\u308b\uff0e\u3053\u306e\u5236\u7d04\u306e\u52b9\u679c\u3068\u306f\uff0cgeography \u578b\u3092\u4f7f\u3046\u3059\u3079\u3066\u306e geometry \u306f\u65b0\u898f\u306b\u751f\u6210\u3055\u308c\u305f\u3082\u306e\u3067\u3042\u308c\u8a08\u7b97\u306e\u7d50\u679c\u3067\u3042\u308c\uff0c\u4e00\u3064\u306e\u534a\u7403\u5185\u306b\u9069\u5408\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3068\u3044\u3046\u3082\u306e\u3067\u3042\u308b\uff0e\u3053\u306e\u6587\u8108\u3067\u3044\u3046\u3068\u3053\u308d\u306e\u534a\u7403\u3068\u306f\uff0c\u5317\u534a\u7403\u3068\u304b\u5357\u534a\u7403\u306a\u3069\u306e\u5730\u7403\u306e\u6240\u5b9a\u306e\u9762\u3092\u6307\u3059\u306e\u3067\u306f\u306a\u304f\uff0c\u5730\u7403\u4e0a\u306e\u4efb\u610f\u306e\u4e00\u70b9\u3092\u4e2d\u5fc3\u3068\u3057\u305f\u5730\u7403\u8868\u9762\u306e\uff12\u5206\u306e\uff11\u306e\u3053\u3068\u3092\u6307\u3057\u3066\u3044\u308b\uff0e\u3053\u306e\u5927\u304d\u3055\u3092\u8d85\u3048\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u751f\u6210\u3057\u3088\u3046\u3068\u3059\u308b\u3068\uff0c\u6b21\u306e\u30a8\u30e9\u30fc\u3092\u53d7\u3051\u53d6\u308b\u3053\u3068\u306b\u306a\u308b\uff0e<\/p>\n<pre>Microsoft.SqlServer.Types.GLArgumentException: 24205: The specified input does not represent a valid geography instance because it exceeds a single hemisphere.\nEach geography instance must fit inside a single hemisphere.\nA common reason for this error is that a plolygon has wrong ring orientation.<\/pre>\n<p>\u3000\u3053\u306e\u5236\u9650\u304e\u308a\u304e\u308a\u3092\u6271\u3046\u306b\u306f\uff0c\u5de8\u5927\u306a geography \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u3044\u304f\u3064\u304b\u306e\u5c0f\u3055\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5206\u5272\u3057\u3066\uff0c\u305d\u308c\u305e\u308c\u304c\u95a2\u9023\u3059\u308b\u30b5\u30a4\u30ba\u306e\u9650\u754c\u4ee5\u5185\u306b\u53ce\u307e\u308b\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3060\uff0e\u4f8b\u3048\u3070\uff0c\u5730\u7403\u4e0a\u306e\u6d77\u9762\u3092\u8868\u73fe\u3059\u308b\u305f\u3081\u306e\u5358\u4e00\u306e Polygon \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u6301\u3064\u306e\u3067\u306f\u306a\u304f\uff0c\u8907\u6570\u306e polygon \u3092\u5b9a\u7fa9\u3057\u3066\u305d\u308c\u305e\u308c\u304c\u500b\u3005\u306e\u6d77\u6d0b\u3092\u8868\u73fe\u3059\u308b\u3088\u3046\u306b\u3059\u308c\u3070\u3088\u3044\uff0e\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\uff0c\u3053\u308c\u3089\u306e\u5c0f\u3055\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u6d77\u6d0b\u8868\u9762\u5168\u4f53\u3092\u8868\u73fe\u3059\u308b\uff0e<\/p>\n<p>\u6ce8\u8a18\u3000geography \u578b\u306b\u8ab2\u305b\u3089\u308c\u305f\u5236\u7d04\u306f\u534a\u7403\u3088\u308a\u5927\u304d\u306a\u9762\u3092\u6301\u3064 geometry \u3060\u3051\u306b\u9069\u7528\u3055\u308c\u308b\u306e\u3067\u306f\u306a\u304f\uff0c\u540c\u3058\u534a\u7403\u72b6\u306b\u306a\u3044\u306a\u3089\u3069\u3093\u306a geometry \u306b\u3082\u9069\u7528\u3055\u308c\u308b\uff0e\u4f8b\u3048\u3070\uff0cgeography \u578b\u3092\u4f7f\u3063\u3066\u5317\u6975\u70b9\u3068\u5357\u6975\u70b9\u306e\u4e8c\u3064\u3092\u8868\u73fe\u3059\u308b MultiPoint geometry \u3092\u751f\u6210\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\uff0e<\/p>\n<h4>\u30ea\u30f3\u30b0\u306e\u65b9\u5411<\/h4>\n<p>\u3000\u524d\u7ae0\u3067\u793a\u3057\u305f\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u898b\u76f4\u3057\u3066\u307f\u3088\u3046\uff0e\u7121\u52b9\u306a geography \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u4e00\u822c\u7684\u306a\u7406\u7531\u3068\u3057\u3066\u300c&#8230;\u3042\u308b polygon \u304c\u8aa4\u3063\u305f\u30ea\u30f3\u30b0\u306e\u65b9\u5411\u3092\u6301\u3063\u3066\u3044\u308b\u300d\u3068\u3042\u308b\uff0e\u3053\u308c\u306f\u4f55\u3092\u610f\u5473\u3059\u308b\u306e\u3060\u308d\u3046\uff1f\u7b2c\uff11\u7ae0\u3067\u8ff0\u3079\u305f\u30ea\u30f3\u30b0\u306f\u9589\u3058\u305f LineString \u3067\u3042\u3063\u305f\u304c\uff0cPolygon geometry \u306f\u4e00\u3064\u304b\u305d\u308c\u4ee5\u4e0a\u306e\u30ea\u30f3\u30b0\u304b\u3089\u306a\u308a\uff0c\u9762\u306e\u8fba\u7e01\u306f Polygon \u5185\u90e8\u306b\u3042\u308b\u3068\u5b9a\u7fa9\u3057\u3066\u3044\u308b\uff0e\u30ea\u30f3\u30b0\u306e\u65b9\u5411\u3068\u306f\u300c\u65b9\u4f4d\u300d\uff0c\u307e\u305f\u306f\u9806\u5e8f\uff0c\u3064\u307e\u308a\u305d\u3053\u304b\u3089 Polygon \u304c\u30b9\u30bf\u30fc\u30c8\u3059\u308b\u30dd\u30a4\u30f3\u30c8\u3092\u6307\u3057\u3066\u3044\u308b\uff0e<\/p>\n<p>\u3000geography \u578b\u306f\u5730\u7403\u306e\u6e2c\u5730\u30e2\u30c7\u30eb\u3092\u5b9a\u7fa9\u3057\u3066\u304a\u308a\uff0c\u305d\u308c\u306f\u9023\u7d9a\u3059\u308b\u66f2\u9762\u3067\u3042\u308b\uff0e\u5730\u56f3\u6295\u5f71\u304b\u3089\u60f3\u50cf\u3067\u751f\u6210\u3055\u308c\u308b\u306e\u3068\u9055\u3063\u3066\uff0c\u305d\u3053\u306b\u306f\u8fba\u7e01\u306f\u5b58\u5728\u3057\u306a\u3044\uff0e\u4e16\u754c\u4e2d\u3092\u4e00\u65b9\u5411\u306b\u5efb\u308a\u7d9a\u3051\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u3057\uff0c\u30b9\u30bf\u30fc\u30c8\u3057\u305f\u4f4d\u7f6e\u306b\u623b\u308b\u3053\u3068\u3082\u3067\u304d\u308b\uff0e\u3053\u308c\u304c Polygon \u30ea\u30f3\u30b0\u306e\u30dd\u30a4\u30f3\u30c8\u3092\u5b9a\u7fa9\u3057\u305f\u6642\u306e\u7279\u5fb4\u306b\u306a\u308b\u306e\u306f\uff0c\u7403\u4f53\u30e2\u30c7\u30eb\u3092\u4f7f\u3046\u6642\uff0cPolygon \u5185\u90e8\u306b\u542b\u307e\u308c\u308b\u30ea\u30f3\u30b0\u306e\u3069\u3061\u3089\u5074\u306a\u306e\u304b\u66d6\u6627\u3055\u304c\u6b8b\u308b\uff0eFigure 2-2 \u3092\u8003\u3048\u308b\u6642\uff0c\u8d64\u9053\u5468\u8fba\u306b\u63cf\u304b\u308c\u305f\u30dd\u30a4\u30f3\u30c8\u306e\u30b7\u30ea\u30fc\u30ba\u304c\u3069\u306e\u5916\u90e8\u30ea\u30f3\u30b0\u306e Polygon \u306e\u3069\u3061\u3089\u3092\u63cf\u3044\u3066\u3044\u308b\u306e\u3060\u308d\u3046\uff0ePolygon \u5185\u90e8\u306b\u542b\u307e\u308c\u308b\u9818\u57df\u306f\u5317\u534a\u7403\u304b\u5357\u534a\u7403\u306e\u3069\u3061\u3089\u3092\u8868\u73fe\u3057\u3066\u3044\u308b\u306e\u3060\u308d\u3046\uff1f<\/p>\n<p>\u3000\u3053\u306e\u66d6\u6627\u3055\u3092\u89e3\u6c7a\u3059\u308b\u306b\u306f geography \u578b\u3092\u4f7f\u3063\u3066 Polygon \u306e\u30dd\u30a4\u30f3\u30c8\u3092\u5b9a\u7fa9\u3059\u308b\u6642\u306b\uff0cSQL Server 2008 \u304c\u305d\u306e\u9818\u57df\u3092 Polygon \u5185\u90e8\u306b\u542b\u307e\u308c\u308b\u30ea\u30f3\u30b0\u306e\u30dd\u30a4\u30f3\u30c8\u9593\u306e\u7d4c\u8def\u306e\u300c\u5de6\u5074\u300d\u3068\u3057\u3066\u6271\u3046\u3088\u3046\u306b\u3057\uff0c\u30ea\u30f3\u30b0\u306e\u300c\u53f3\u5074\u300d\u306b\u3042\u308b\u30dd\u30a4\u30f3\u30c8\u306f\u5168\u3066\u9664\u5916\u3059\u308b\uff0eFigure 2-2 \u3067\u4e0e\u3048\u3089\u308c\u305f\u4f8b\u3067\u306f\uff0c\u4eee\u306b\u60f3\u50cf\u306e\u4e2d\u3067\u793a\u3055\u308c\u305f\u65b9\u5411\u306b\u5411\u304b\u3063\u3066\u30ea\u30f3\u30b0\u306e\u7d4c\u8def\u306b\u6cbf\u3063\u3066\u6b69\u304f\u3068\uff0c\u5de6\u5074\u306b\u3042\u308b\u9818\u57df\u306f\u5317\u3068\u306a\u308a\uff0c\u793a\u3057\u305f Polygon \u306f\u5317\u534a\u7403\u3092\u8868\u73fe\u3059\u308b\u3053\u3068\u306b\u306a\u308b\uff0e\u3053\u308c\u3092\u5225\u306e\u8996\u70b9\u304b\u3089\u8003\u3048\u308b\u3068\uff0c\u5b87\u5b99\u304b\u3089\u5730\u7403\u4e0a\u306e\u4e00\u70b9\u3092\u76f4\u63a5\u898b\u4e0b\u308d\u3057\u3066\u3044\u308b\u3068\u60f3\u50cf\u3059\u308b\u3053\u3068\u306b\u306a\u308b\uff0e\u4eee\u306b\u53cd\u6642\u8a08\u56de\u308a\u306b\u56f2\u307e\u308c\u305f\u30dd\u30a4\u30f3\u30c8\u306e\u30ea\u30f3\u30b0\u3060\u3068\u3059\u308b\u3068\uff0c\u305d\u308c\u3089\u306e\u30dd\u30a4\u30f3\u30c8\u306f Polygon \u5185\u90e8\u306b\u542b\u307e\u308c\u308b\uff08\u305d\u306e\u30ea\u30f3\u30b0\u306e\u7d4c\u8def\u306e\u5de6\u5074\u306b\u5b58\u5728\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u304b\u3089\u3067\u3042\u308b\uff09\uff0e\u4eee\u306b\uff0c\u4ee3\u308f\u308a\u306b\u6642\u8a08\u56de\u308a\u306e\u65b9\u5411\u306e\u30ea\u30f3\u30b0\u306e\u30dd\u30a4\u30f3\u30c8\u306b\u56f2\u307e\u308c\u3066\u3044\u308b\u3068\u3059\u308b\u3068\uff0c\u305d\u308c\u3089\u306e\u30dd\u30a4\u30f3\u30c8\u306f Polygon \u306e\u5b9a\u7fa9\u5185\u90e8\u306b\u306f\u542b\u307e\u308c\u3066\u3044\u306a\u3044\u3053\u3068\u306b\u306a\u308b\uff0e<\/p>\n<p>\u6ce8\u610f\u3000\u4eee\u306b\u5c0f\u3055\u306a polygon \u30ea\u30f3\u30b0\u306e\u30dd\u30a4\u30f3\u30c8\u3092\u8aa4\u3063\u305f\u65b9\u5411\u3067\u5b9a\u7fa9\u3059\u308b\u3068\uff0c\u305d\u306e\u7d50\u679c\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u300c\u5185\u5074\u3068\u5916\u5074\u304c\u5165\u308c\u66ff\u308f\u3063\u305f\u300d\u72b6\u614b\u306b\u306a\u308b\uff0e\u5730\u7403\u8868\u9762\u306e\u5927\u90e8\u5206\u3092\u542b\u3081\u3066\uff0c\u76f4\u7dda\u72b6\u306e\u30ea\u30f3\u30b0\u306e\u5c0f\u3055\u306a\u9818\u57df\u3092\u9664\u3044\u3066\uff0e\u3053\u308c\u306f\uff0c\u5730\u7403\u8868\u9762\u306e\uff12\u5206\u306e\uff11\u4ee5\u4e0a\u3092\u30ab\u30d0\u30fc\u3067\u304d\u308b geography \u578b\u306f\u5b58\u5728\u3057\u306a\u3044\u3068\u3044\u3046\u30b5\u30a4\u30ba\u306e\u5236\u7d04\u3092\u7834\u58ca\u3059\u308b\u3053\u3068\u306b\u306a\u308b\u305f\u3081\uff0c\u30a8\u30e9\u30fc\u3092\u5f15\u304d\u8d77\u3053\u3059\uff0e\u3042\u308b Polygon \u306e\u5185\u90e8\u3092\u542b\u3081\u308b\u6642\u306f\uff0c\u53cd\u6642\u8a08\u56de\u308a\u306b\u30dd\u30a4\u30f3\u30c8\u3092\u5b9a\u7fa9\u3059\u308b\u3088\u3046\u306b\u6ce8\u610f\u3055\u308c\u305f\u3044\uff0e\u305d\u308c\u306f\u305d\u306e\u9818\u57df\u304c\uff0c\u30dd\u30a4\u30f3\u30c8\u3092\u7d50\u3076\u7d4c\u8def\u306e\u5de6\u5074\u306b\u542b\u307e\u308c\u308b\u304b\u3089\u3067\u3042\u308b\uff0e<\/p>\n<p>\u3000geometry \u306e\u30b9\u30da\u30fc\u30b9\u3092\u5207\u308a\u53d6\u308b\u9818\u57df\u3092\u5b9a\u7fa9\u3059\u308b\u5185\u90e8\u30ea\u30f3\u30b0\u306b\u3068\u3063\u3066\uff0c\u30ea\u30f3\u30b0\u306e\u65b9\u5411\u306f\u3069\u3046\u306a\u308b\u306e\u3060\u308d\u3046\uff1f\u300c\u5185\u90e8\u300d\u3068\u304b\u300c\u5916\u90e8\u300d\u3068\u3044\u3046\u5206\u985e\u306f\uff0c\u9023\u7d9a\u3057\u305f\u66f2\u9762\u306e\u8868\u9762\u304b\u3089\u306a\u308b geography \u578b\u306e\u30ea\u30f3\u30b0\u306b\u306f\u7c21\u5358\u306b\u9069\u7528\u3067\u304d\u306a\u3044\uff0e\u4e8b\u5b9f\uff0cgeography \u578b\u306e\u5185\u90e8\u306e Polygon \u306f\u30ea\u30f3\u30b0\u3092\u4f55\u500b\u3067\u3082\u542b\u3081\u308b\u3053\u3068\u304c\u3067\u304d\uff0c\u305d\u308c\u305e\u308c\u304c\u7403\u4f53\u306e\u7a7a\u9593\u3092 Polygon \u5185\u90e8\u306b\u542b\u307e\u308c\u308b\u30dd\u30a4\u30f3\u30c8\u306b\u5206\u5272\u3057\uff0c\u304b\u3064\u305d\u308c\u3089\u306e\u30dd\u30a4\u30f3\u30c8\u306f\u9664\u5916\u3055\u308c\u3066\u3044\u308b\uff0e\u3053\u308c\u3089\u306e\u30ea\u30f3\u30b0\u5168\u3066\u304c\u5916\u90e8\u30ea\u30f3\u30b0\u307e\u305f\u306f\u5185\u90e8\u30ea\u30f3\u30b0\u3068\u307f\u306a\u3059\u3053\u3068\u304c\u3067\u304d\u308b\uff0e\u3053\u308c\u3092\u793a\u3059\u305f\u3081\u306b Figure 2-3 \u306b\u4e8c\u3064\u306e\u30ea\u30f3\u30b0\u3092\u542b\u3080 geography \u578b\u306e Polygon \u306e\u9069\u5207\u306a\u30ea\u30f3\u30b0\u306e\u65b9\u5411\u3092\u793a\u3057\u305f\uff0e\u77e2\u5370\u306f\u5404\u30ea\u30f3\u30b0\u5185\u306e\u30dd\u30a4\u30f3\u30c8\u306e\u65b9\u5411\u3092\u793a\u3057\u3066\u304a\u308a\uff0cPolygon \u306b\u3088\u308a\u56f2\u307e\u308c\u308b\u9818\u57df\u3092\u30b0\u30ec\u30fc\u3067\u793a\u3057\u3066\u3042\u308b\uff0e<\/p>\n<h3>Geometry \u30c7\u30fc\u30bf\u578b<\/h3>\n<p>\u3000geography \u578b\u3068\u5bfe\u7167\u7684\u306b\uff0cgeometry \u578b\u306f\u7a7a\u9593\u30c7\u30fc\u30bf\u3092\u5e73\u9762\u4e0a\u306b\u3042\u308b\u3082\u306e\u3068\u3057\u3066\u6271\u3046\uff0e\u3059\u3079\u3066\u306e\u7a7a\u9593\u6f14\u7b97\u306e\u7d50\u679c\uff0c\u4e8c\u70b9\u9593\u306e\u8ddd\u96e2\u306f\u7c21\u5358\u306a\u5e7e\u4f55\u5b66\u7684\u624b\u6cd5\u3092\u4f7f\u3063\u3066\u7b97\u51fa\u3055\u308c\u308b\uff0e\u3053\u306e\u5e73\u9762\u30a2\u30d7\u30ed\u30fc\u30c1\u306f Figure 2-4 \u306b\u56f3\u793a\u3057\u305f\uff0e\u899a\u3048\u3066\u304a\u304f\u3079\u304d\u9375\u3068\u306a\u308b\u539f\u5247\u3068\u306f\uff0c\u30ea\u30f3\u30b0\u306e\u30dd\u30a4\u30f3\u30c8\u9593\u306b\u5f15\u304b\u308c\u305f\u7d4c\u8def\u306e\u5de6\u5074\u306e\u9818\u57df\u304c Polygon \u5185\u90e8\u306b\u542b\u307e\u308c\u308b\u3053\u3068\uff0c\u53f3\u5074\u304c\u9664\u5916\u3055\u308c\u308b\u3053\u3068\u3067\u3042\u308b\uff0e<\/p>\n<h4>\u5ea7\u6a19\u7cfb<\/h4>\n<p>\u3000geometry \u578b\u306f\u5e73\u5766\u306a\u4e8c\u6b21\u5143\u306e\u5e73\u9762\u4e0a\u3067\u4f5c\u7528\u3057\uff0c\u305d\u306e\u5e73\u9762\u4e0a\u306e\u4efb\u610f\u306e\u30dd\u30a4\u30f3\u30c8\u306f\u4e00\u7d44\u306e\u30c7\u30ab\u30eb\u30c8\u5ea7\u6a19 (x, y) \u3092\u4f7f\u3063\u3066\u5b9a\u7fa9\u3055\u308c\u308b\uff0e\u305d\u306e geometry \u578b\u306f\uff0c\u6b21\u306e\u5ea7\u6a19\u7cfb\u306e\u578b\u306e\u3046\u3061\u4efb\u610f\u306e\u4e00\u3064\u304b\u3089\u306e\u5ea7\u6a19\u3092\u84c4\u7a4d\u3059\u308b\u305f\u3081\u306b\u4f7f\u308f\u308c\u3046\u308b\uff0e<\/p>\n<h5>\u6295\u5f71\u5ea7\u6a19\u7cfb<\/h5>\n<p>\u3000geometry \u578b\u306f\u6295\u5f71\u5ea7\u6a19\u3092\u84c4\u7a4d\u3059\u308b\u306b\u306f\u7406\u60f3\u7684\u3067\u3042\u308a\uff0cx \u304a\u3088\u3073 y \u5ea7\u6a19\u306e\u30da\u30a2\u306f\u6295\u5f71\u7a7a\u9593\u53c2\u7167\u7cfb\u304b\u3089\u53d6\u5f97\u3055\u308c\u305f\u6771\u5ea7\u6a19\u5024\u3068\u5317\u5ea7\u6a19\u5024\u3092\u8868\u73fe\u3057\u3066\u3044\u308b\uff0e\u3053\u306e\u4f8b\u3067\u306f\uff0c\u6295\u5f71\u306e\u30d7\u30ed\u30bb\u30b9\u306f\u65e2\u306b\u89d2\u5ea6\u5730\u7406\u5ea7\u6a19\u3092\u5e73\u9762\u4e0a\u306b\u30de\u30c3\u30d7\u6e08\u307f\u3067\u3042\u308a\uff0c\u305d\u306e\u4e0a\u3067 geometry \u578b\u304c\u9069\u7528\u3055\u308c\u308b\uff0e<\/p>\n<h5>\u5730\u7406\u5ea7\u6a19\u7cfb<\/h5>\n<p>\u3000\u7def\u5ea6\u3068\u7def\u5ea6\u306e\u300c\u975e\u6295\u5f71\u300dgeographic \u5ea7\u6a19\u306f\u76f4\u63a5 geometry \u578b\u306e y \u304a\u3088\u3073 x \u5ea7\u6a19\u306b\u305d\u308c\u305e\u308c\u5272\u308a\u5f53\u3066\u3089\u308c\u308b\uff0e\u3053\u308c\u306f\u975e\u6295\u5f71\u5730\u7406\u5ea7\u6a19\u7cfb\u306e\u3088\u3046\u306b\u898b\u3048\u308b\u304b\u3082\u77e5\u308c\u306a\u3044\u304c\uff0c\u5b9f\u969b\u306b\u306f\u6295\u5f71\u7cfb\u306e\u4e00\u4f8b\u3067\u3082\u3042\u308a\uff0c\u305d\u308c\u306f\u6b63\u8ddd\u5186\u7b52\u56f3\u6cd5\u3092\u751f\u6210\u3059\u308b\u306e\u306b\u4f7f\u308f\u308c\u308b\u624b\u6cd5\u3060\u304b\u3089\u3067\u3042\u308b\uff0e<\/p>\n<h5>\u81ea\u7136\u5e73\u9762\u5ea7\u6a19\u7cfb<\/h5>\n<p>\u3000\u3053\u308c\u3089\u306e\u5ea7\u6a19\u306f x \u304a\u3088\u3073 y \u5024\u3067\u8868\u73fe\u3055\u308c\u308b\u4efb\u610f\u306e\u5730\u7406\u7a7a\u9593\u30c7\u30fc\u30bf\u3092\u8868\u73fe\u3059\u308b\u304c\uff0c\u5730\u7403\u306e\u7279\u7570\u7684\u306a\u30e2\u30c7\u30eb\u306b\u95a2\u9023\u3057\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u306a\u3044\uff0e\u3053\u308c\u3089\u306e\u30c7\u30fc\u30bf\u306e\u4f8b\u306f\u5730\u57df\u306e\u8abf\u67fb\u306e\u53ce\u96c6\u3084\u5c0f\u5730\u57df\u306e\u30c8\u30dd\u30ed\u30b8\u30fc\u8a08\u753b\u306a\u3069\u66f2\u7387\u304c\u7121\u95a2\u4fc2\u306a\u3082\u306e\u7531\u6765\u306a\u306e\u304b\u3082\u77e5\u308c\u306a\u3044\u3057\uff0c\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u652f\u63f4\u8a2d\u8a08 (CAD) \u30d1\u30c3\u30b1\u30fc\u30b8\u304b\u3089\u53d6\u5f97\u3055\u308c\u305f\u3082\u306e\u7531\u6765\u306a\u306e\u304b\u3082\u77e5\u308c\u306a\u3044\uff0e<\/p>\n<h4>\u8a08\u6e2c\u5358\u4f4d<\/h4>\n<p>\u3000geometry \u578b\u3092\u4f7f\u3046\u6642\uff0c\u30dd\u30a4\u30f3\u30c8\u306e\u30c7\u30ab\u30eb\u30c8\u5ea7\u6a19\u306f\u5b9a\u7fa9\u3055\u308c\u305f\u8ef8\uff0c\u7279\u306b\u8a08\u6e2c\u5358\u4f4d\u3067\u8868\u73fe\u3055\u308c\u305f\u8ef8\u306b\u6cbf\u3063\u305f\u539f\u70b9\u304b\u3089\u305d\u306e\u30dd\u30a4\u30f3\u30c8\u307e\u3067\u306e\u8ddd\u96e2\u3092\u8868\u73fe\u3059\u308b\uff0egeometry \u578b\u306f\uff0c\u305d\u306e\u5ea7\u6a19\u5024\u306b\u57fa\u3065\u3044\u305f\u5358\u7d14\u306a\u5e73\u9762\u8a08\u7b97\u3092\u4f7f\u3046\u305f\u3081\uff0c\u305d\u306e\u7d50\u679c\u306f geometry \u578b\u3092\u4f7f\u3063\u305f\u3044\u304b\u306a\u308b\u6f14\u7b97\u3082\u5ea7\u6a19\u5024\u81ea\u8eab\u3068\u540c\u3058\u8a08\u6e2c\u5358\u4f4d\u3067\u8868\u73fe\u3055\u308c\u308b\uff0e\u4f8b\u3048\u3070\uff0c\u591a\u304f\u306e\u6295\u5f71\u5ea7\u6a19\u7cfb\u306e\u5317\u5ea7\u6a19\u3068\u6771\u5ea7\u6a19\u3068\u306f\u30e1\u30fc\u30c8\u30eb\u3067\u8868\u73fe\u3055\u308c\u308b\uff0e\u3053\u308c\u306f\u30e6\u30cb\u30d0\u30fc\u30b5\u30eb\u6a2a\u30e1\u30eb\u30ab\u30c8\u30eb\u56f3\u6cd5 (UTM) \u304a\u3088\u3073\u591a\u304f\u306e\u56fd\u7acb\u30b0\u30ea\u30c3\u30c9\u53c2\u7167\u7cfb\u306b\u3042\u3066\u306f\u307e\u308b\uff0e\u4eee\u306b geometry \u578b\u3092\u4f7f\u3063\u3066\u3053\u308c\u3089\u306e\u7cfb\u304b\u3089\u53d6\u5f97\u3057\u305f\u5ea7\u6a19\u306b\u57fa\u3065\u3044\u3066\u7a7a\u9593\u30c7\u30fc\u30bf\u3092\u84c4\u7a4d\u3057\u3088\u3046\u3068\u3059\u308b\u3068\uff0c\u9577\u3055\u3068\u8ddd\u96e2\u3082\u307e\u305f\u30e1\u30fc\u30c8\u30eb\u3067\u6e2c\u5b9a\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308b\uff0e\u4eee\u306bgeometry \u578b\u3092\u4f7f\u3063\u3066\u9762\u7a4d\u3092\u8a08\u7b97\u3057\u3088\u3046\u3068\u3059\u308b\u306a\u3089\uff0c\u305d\u306e\u7d50\u679c\u306f\uff0c\u5ea7\u6a19\u5024\u3092\u5b9a\u7fa9\u3059\u308b\u306e\u306b\u3069\u3093\u306a\u8a08\u6e2c\u6cd5\u304c\u4f7f\u308f\u308c\u3066\u3044\u3088\u3046\u3068\uff0c\u3053\u306e\u4f8b\u3067\u306f\u5e73\u65b9\u30e1\u30fc\u30c8\u30eb\u3060\u304c\uff0c\u4e8c\u4e57\u306b\u306a\u308b\uff0e\u4eee\u306b\u3057\u304b\u3057\uff0c\u30d5\u30a3\u30fc\u30c8\u3067\u6e2c\u5b9a\u3055\u308c\u305f\u6295\u5f71\u7a7a\u9593\u53c2\u7167\u7cfb\u304b\u3089\u306e\u5ea7\u6a19\u3092\u84c4\u7a4d\u3057\u3088\u3046\u3068\u3059\u308b\u306a\u3089\uff0c\u305d\u306e\u7d50\u679c\u306f\u3044\u304b\u306a\u308b\u8a08\u7b97\u3082\u30d5\u30a3\u30fc\u30c8\u3067\u8868\u73fe\u3055\u308c\uff0c\u9762\u7a4d\u306f\u5e73\u65b9\u30d5\u30a3\u30fc\u30c8\u306b\u306a\u308b\uff0e<\/p>\n<p>\u6ce8\u610f\u3000\u6700\u521d\u306b\uff0cgeometry \u578b\u306f\u300c\u975e\u6295\u5f71\u300d\u5730\u7406\u578b\u306e\u5ea7\u6a19\u5024\u3067\u3042\u308b\u7def\u5ea6\u3084\u7d4c\u5ea6\u3092\u84c4\u7a4d\u3059\u308b\u306e\u306b\u4f7f\u308f\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\uff0c\u76f4\u63a5\u306b y \u5ea7\u6a19\u3068 x \u5ea7\u6a19\u3092\u30de\u30c3\u30d7\u3059\u308b\u3068\u8ff0\u3079\u305f\uff0e\u3057\u304b\u3057\uff0c\u7def\u5ea6\u3068\u7d4c\u5ea6\u306f\u89d2\u5ea6\u5ea7\u6a19\u3067\u3042\u308a\uff0c\u4e00\u822c\u306b\u5ea6\u6570\u3067\u6e2c\u5b9a\u3055\u308c\u308b\u3068\u3044\u3046\u3053\u3068\u3092\u601d\u3044\u51fa\u305d\u3046\uff0e\u4eee\u306b geometry \u578b\u3092\u4f7f\u3063\u3066\u3053\u306e\u65b9\u6cd5\u3067\u60c5\u5831\u3092\u84c4\u7a4d\u3059\u308b\u3068\uff0c\u30dd\u30a4\u30f3\u30c8\u9593\u306e\u8ddd\u96e2\u3082\u307e\u305f\u5ea6\u6570\u3067\u6e2c\u5b9a\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\uff0cPolygon \u3067\u56f2\u307e\u308c\u305f\u9762\u7a4d\u306f\u5ea6\u6570\u306e\u4e8c\u4e57\u3067\u6e2c\u5b9a\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308b\uff0e\u3053\u308c\u306f\u307b\u307c\u9593\u9055\u3044\u306a\u304f\uff0c\u671b\u3080\u7d50\u679c\u3067\u306f\u306a\u3044\u3060\u308d\u3046\uff0e\u3060\u304b\u3089 geometry \u578b\u3092\u3053\u306e\u65b9\u6cd5\u3067\u4f7f\u3046\u6642\u306b\u306f\u6ce8\u610f\u3092\u6255\u3046\u3053\u3068\uff0e<\/p>\n<h4>\u7a7a\u9593\u53c2\u7167\u8b58\u5225\u5b50<\/h4>\n<p>\u3000geometry \u578b\u306f\u5730\u7403\u306e\u66f2\u7387\u3092\u307e\u3063\u305f\u304f\u8003\u616e\u305b\u305a\uff0cSRID \u5185\u3067\u8a18\u8ff0\u3055\u308c\u305f\u8a08\u6e2c\u5358\u4f4d\u306b\u3082\u95a2\u4fc2\u3057\u306a\u3044\u305f\u3081\uff0c\u7570\u306a\u308b SRID \u3092\u63d0\u4f9b\u3057\u3066\u3082\uff0cgeometry \u578b\u3092\u4f7f\u3063\u3066\u53d6\u5f97\u3055\u308c\u308b\u7d50\u679c\u306b\u9055\u3044\u3092\u3082\u305f\u3089\u3059\u3053\u3068\u306f\u306a\u3044\uff0e\u3053\u308c\u306f\u628a\u63e1\u3059\u308b\u306e\u304c\u96e3\u3057\u3044\u6982\u5ff5\u3067\u3042\u308b\uff0e\u5148\u306e\u7ae0\u3067\uff0c\u5ea7\u6a19\u306e\u3044\u304b\u306a\u308b\u90e8\u5206\u3082\uff0c\u6295\u5f71\u5ea7\u6a19\u3067\u3042\u308c\u5730\u7406\u5ea7\u6a19\u3067\u3042\u308c\uff0c\u95a2\u9023\u3059\u308b SRID \u3068\u5171\u306b\u8a18\u8ff0\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3068\u66f8\u3044\u305f\uff0e\u305d\u308c\u306f\u5ea7\u6a19\u7cfb\u304c\u5730\u7403\u4e0a\u306e\u4e00\u70b9\u3092\u53c2\u7167\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u3067\u3042\u308b\uff0e\u4eee\u306b geometry \u578b\u3092\u4f7f\u3063\u3066\u6295\u5f71\u5ea7\u6a19\u7cfb\u304b\u3089\u306e\u5ea7\u6a19\u3092\u84c4\u7a4d\u3057\u3088\u3046\u3068\u3059\u308b\u3068\uff0cSRID \u304c\u63d0\u4f9b\u3055\u308c\u305f\u3068\u3053\u308d\u3067\u9055\u3044\u304c\u306a\u3044\u3068\u306f\u3069\u3046\u3044\u3046\u3053\u3068\u306a\u306e\u3060\u308d\u3046\uff1f<\/p>\n<p>\u3000\u305d\u306e\u7b54\u3048\u306f\uff0cSRID \u304c\u5fc5\u8981\u306a\u306e\u306f\u6295\u5f71\u53c2\u7167\u7cfb\u3067\u3042\u3063\u3066\uff0c\u5730\u7403\u4e0a\u306e\u4f4d\u7f6e\u3092\u4e00\u610f\u306b\u8b58\u5225\u3059\u308b\u305f\u3081\u306b\u5ea7\u6a19\u3092\u307e\u305a\u5b9a\u7fa9\u3059\u308b\u305f\u3081\u3067\u3042\u308b\uff0c\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308b\uff0e\u3057\u304b\u3057\uff0c\u4e00\u5ea6\u305d\u308c\u3089\u306e\u5024\u3092\u53d6\u5f97\u3057\u3066\u3057\u307e\u3048\u3070\uff0c\u5168\u3066\u306e\u3055\u3089\u306a\u308b\u64cd\u4f5c\u306f\uff0c\u305d\u306e\u4e0a\u3067\u30c7\u30fc\u30bf\u3092\u57fa\u672c\u7684\u306a\u5e7e\u4f55\u5b66\u7684\u624b\u6cd5\u3092\u4f7f\u3063\u3066\u5b9f\u884c\u3055\u308c\u308b\uff0e\u5730\u7403\u306e\u66f2\u7387\u3078\u306e\u5bfe\u51e6\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306e\u3044\u304b\u306a\u308b\u6c7a\u5b9a\u3082\uff0c\u4efb\u610f\u306e\u5730\u70b9\u304c\u6295\u5f71\u50cf\u306e\u4e0a\u306b\u5b58\u5728\u3059\u308b\u5834\u6240\u3092\u8a18\u8ff0\u3059\u308b\u5ea7\u6a19\u306e\u5b9a\u7fa9\u306e\u904e\u7a0b\u3067\uff0c\u65e2\u306b\u306a\u3055\u308c\u3066\u3044\u308b\uff0e<\/p>\n<p>\u3000\u4f8b\u3048\u3070\uff0cgeometry \u578b\u3092\u4f7f\u3046\u6642\uff0c\u5ea7\u6a19 (0, 0) \u5730\u70b9\u3068\u5ea7\u6a19 (30, 40) \u5730\u70b9\u9593\u306e\u8ddd\u96e2\u306f\u5e38\u306b 50 \u5358\u4f4d\u306b\u306a\u308b\u306f\u305a\u3067\u3042\u308a\uff0c\u305d\u306e\u5ea7\u6a19\u7cfb\u304c\u3069\u3093\u306a\u7a7a\u9593\u53c2\u7167\u7cfb\u3092\u4f7f\u3063\u3066\u3044\u3088\u3046\u304c\uff0c\u3069\u3093\u306a\u5358\u4f4d\u3067\u8868\u73fe\u3057\u3066\u3044\u3088\u3046\u304c\u7121\u95a2\u4fc2\u3067\u3042\u308b\uff0e\u5730\u70b9 (0, 0) \u3068\u5730\u70b9 (30, 40) \u3067\u8868\u73fe\u3055\u308c\u305f\u5b9f\u969b\u306e\u5730\u7403\u4e0a\u306e\u5f62\u614b\u306f\u554f\u984c\u306b\u3057\u3066\u3044\u308b\u7cfb\u306b\u3088\u3063\u3066\u5909\u308f\u3063\u3066\u304f\u308b\u304c\uff0c\u3053\u308c\u306f geometry \u578b\u306e\u30c7\u30fc\u30bf\u304c\u8a08\u7b97\u306b\u4f7f\u308f\u308c\u308b\u65b9\u6cd5\u306b\u306f\u5f71\u97ff\u3057\u306a\u3044\uff0e<\/p>\n<p>\u3000geometry \u578b\u306e\u7a7a\u9593\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f7f\u3063\u3066\u64cd\u4f5c\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306b\u306f\uff0c\u5404\u30dd\u30a4\u30f3\u30c8\u306e\u5ea7\u6a19\u3092\u53d6\u5f97\u3057\u305f\u7a7a\u9593\u53c2\u7167\u7cfb\u304c\u4f55\u3067\u3042\u308b\u304b\u306f\u9055\u3044\u3092\u3082\u305f\u3089\u3055\u306a\u3044\uff0e\u3059\u3079\u3066\u540c\u3058\u7cfb\u304b\u3089\u53d6\u5f97\u3059\u308b\u9650\u308a\u306f\uff0e<\/p>\n<h5>\u4e00\u8cab\u3057\u305f\u30e1\u30bf\u30c7\u30fc\u30bf\u3092\u78ba\u4fdd\u3059\u308b<\/h5>\n<p>\u3000\u7d50\u679c\u306b\u9055\u3044\u3092\u3082\u305f\u3089\u3055\u306a\u3044\u304b\u3089\u3068\u8a00\u3063\u3066\u3082\uff0c\u6295\u5f71\u5ea7\u6a19\u7cfb\u306b\u57fa\u3065\u304f\u30c7\u30ab\u30eb\u30c8\u5ea7\u6a19\u30c7\u30fc\u30bf\u3092\u84c4\u7a4d\u3059\u308b\u306e\u306b geometry \u578b\u3092\u4f7f\u3046\u6642\u306f\uff0c\u95a2\u9023\u3059\u308b SRID \u3092\u6307\u5b9a\u3059\u3079\u304d\u3067\u3042\u308a\uff0c\u305d\u306e\u7531\u6765\u3059\u308b\u5ea7\u6a19\u3092\u4f7f\u3046\u7a7a\u9593\u53c2\u7167\u3092\u6307\u5b9a\u3059\u308b\u305f\u3081\u3067\u3042\u308b\uff0e\u305d\u306e\u7a7a\u9593\u53c2\u7167\u7cfb\u306f\u91cd\u8981\u306a\u4ed8\u52a0\u60c5\u5831\u3092\u4fdd\u6709\u3057\u3066\u304a\u308a\uff0c\u305d\u308c\u3089\u306e\u5ea7\u6a19\u3092\u5730\u7403\u4e0a\u306e\u7279\u5b9a\u306e\u4f4d\u7f6e\u306b\u95a2\u9023\u3065\u3051\u308b\u3082\u306e\u3067\u3042\u308b\uff0e\u5168\u3066\u306e\u5ea7\u6a19\u30bb\u30c3\u30c8\u3068\u5171\u306b SRID \u3092\u660e\u793a\u7684\u306b\u8a18\u8ff0\u3059\u308b\u3053\u3068\u306f\uff0c\u3053\u306e\u91cd\u8981\u306a\u30e1\u30bf\u30c7\u30fc\u30bf\u3092\u4fdd\u6301\u3059\u308b\u3060\u3051\u3067\u306f\u306a\u304f\uff0c\u7570\u306a\u308b\u7a7a\u9593\u53c2\u7167\u7cfb\u3092\u4f7f\u3063\u3066\u5b9a\u7fa9\u3055\u308c\u305f\u7a7a\u9593\u30c7\u30fc\u30bf\u306e\u30a2\u30a4\u30c6\u30e0\u306e\u8a08\u7b97\u3092\u8aa4\u3063\u3066\u8a66\u307f\u308b\u306e\u3092\u9632\u3044\u3067\u304f\u308c\u308b\uff0e\u305d\u308c\u306f\u671b\u307e\u306a\u3044\u7d50\u679c\u3092\u3082\u305f\u3089\u3059\u304b\u3089\u3067\u3042\u308b\uff0e<\/p>\n<p>\u4ed8\u8a18\u3000sys.spatial_reference_systems \u30c6\u30fc\u30d6\u30eb\u306f\u5358\u306b\u6e2c\u5730\u7a7a\u9593\u53c2\u7167\u3092\u4fdd\u6301\u3059\u308b\u3060\u3051\u3067\u3042\u308a\uff0c\u305d\u308c\u306f geography \u578b\u3092\u4f7f\u3063\u3066\u8a08\u7b97\u3092\u5b9f\u884c\u3059\u308b\u306e\u304c\u5fc5\u8981\u3060\u304b\u3089\u3067\u3042\u308b\uff0e\u6295\u5f71\u53c2\u7167\u7cfb\u306b\u9069\u5207\u306a SRID \u3092\u898b\u305f\u3051\u308c\u3070\uff0c\u6b21\u306e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3092\u898b\u308b\u3068\u3088\u3044\uff0ehttp:\/\/www.epsg-registry.org\/<\/p>\n<h5>\u975e\u6e2c\u5730\u7a7a\u9593\u30c7\u30fc\u30bf\u306e\u4fdd\u5b58<\/h5>\n<p>\u3000geometry \u578b\u306f\u5e73\u9762\u5ea7\u6a19\u3092\u84c4\u7a4d\u3057\uff0c\u6a19\u6e96\u7684\u306a\u30e6\u30fc\u30af\u30ea\u30c3\u30c9\u6cd5\u3092\u4f7f\u3063\u3066 SRID \u3092\u5fc5\u8981\u3068\u305b\u305a\u306b\u8a08\u7b97\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\uff0cx \u5ea7\u6a19\u3068 y \u5ea7\u6a19\u3067\u8a18\u8ff0\u3067\u304d\u308b\u306a\u3089\u3044\u304b\u306a\u308b\u7a7a\u9593\u30c7\u30fc\u30bf\u3067\u3082\u84c4\u7a4d\u3067\u304d\uff0c\u5730\u7403\u306e\u5f62\u614b\u306e\u7279\u5b9a\u306e\u30e2\u30c7\u30eb\u3092\u5fc5\u8981\u3068\u3057\u306a\u3044\uff0e\u3053\u308c\u306f\u5009\u5eab\u5185\u306e\u30a2\u30a4\u30c6\u30e0\u306e\u4f4d\u7f6e\u3092\u4fdd\u6709\u3059\u308b\u3088\u3046\u306a\uff0c\u6709\u9650\u306e\u5c0f\u898f\u6a21\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u306f\u6709\u7528\u3067\u3042\u308b\uff0e\u3053\u306e\u5834\u5408\uff0c\u4f4d\u7f6e\u306f\u30ed\u30fc\u30ab\u30eb\u306e\u539f\u70b9\u304b\u3089\u306e x \u304a\u3088\u3073 y \u5ea7\u6a19\u306b\u3088\u308a\u5b9a\u7fa9\u3055\u308c\u308b\uff0e\u5730\u7403\u306e\u8868\u9762\u5168\u4f53\u306b\u9069\u7528\u3055\u308c\u308b\u6295\u5f71\u5ea7\u6a19\u7cfb\u3092\u4f7f\u3046\u5fc5\u8981\u306f\u306a\u3044\uff0e<\/p>\n<p>\u3000geometry \u578b\u306f\u307e\u305f\uff0c\u3042\u308b\u5ea7\u6a19\u7cfb\u3067\u8868\u73fe\u3055\u308c\u305f\u4ed6\u306e\u81ea\u7136\u5e73\u9762\u5e7e\u4f55\u30c7\u30fc\u30bf\u3092\u84c4\u7a4d\u3059\u308b\u306e\u306b\u3082\u4f7f\u308f\u308c\u308b\uff0e\u4f8b\u3048\u3070\uff0c\u4eee\u306b\u88fd\u9020\u696d\u306e\u884c\u7a0b\u306e\u8a73\u7d30\u306a\u69cb\u6210\u8981\u7d20\u3092\u84c4\u7a4d\u3057\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u6301\u3063\u3066\u3044\u308b\u3068\u3059\u308b\u3068\uff0cgeometry \u578b\u306e\u5217\u3092\u5404\u69cb\u6210\u8981\u7d20\u306e\u5f62\u614b\u3092\u8a18\u9332\u3059\u308b\u306e\u306b\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u3060\u308d\u3046\uff0e<\/p>\n<p>\u3000geometry \u578b\u3092\u4f7f\u3063\u3066\u3053\u306e\u3088\u3046\u306a\u65b9\u6cd5\u3067\u7a7a\u9593\u30c7\u30fc\u30bf\u3092\u8a18\u9332\u3059\u308b\u6642\uff0c\u3069\u3093\u306a\u5e7e\u4f55\u7684\u5f62\u614b\u3067\u3042\u3063\u3066\u3082 SRID 0 \u3092\u4f7f\u3063\u3066\u5b9a\u7fa9\u3059\u3079\u304d\u3067\u3042\u308b\uff0e\u3053\u308c\u306f SQL Server \u306b\uff0c\u305d\u306e\u5ea7\u6a19\u306f\u7279\u5b9a\u306e\u7a7a\u9593\u53c2\u7167\u7cfb\u306b\u7531\u6765\u3059\u308b\u306e\u3067\u306f\u306a\u304f\uff0c\u7279\u5b9a\u306e\u8a08\u6e2c\u5358\u4f4d\u3092\u6301\u305f\u306a\u3044\u5ea7\u6a19\u5024\u3068\u3057\u3066\u6271\u3046\u3088\u3046\u306b\u3068\u6559\u3048\u308b\u3053\u3068\u3067\u3042\u308b\uff0e<\/p>\n<h4>\u30ea\u30f3\u30b0\u306e\u65b9\u5411<\/h4>\n<p>\u3000Figure 2-5 \u3092\u8003\u616e\u3059\u308b\u3068\uff0c\u305d\u308c\u306f Polygon \u30ea\u30f3\u30b0\u3092\u56f3\u793a\u3057\u305f\u3082\u306e\u3067\u3042\u308a\uff0c\u5e73\u9762\u4e0a\u306b geometry \u578b\u3092\u4f7f\u3063\u3066\u5b9a\u7fa9\u3055\u308c\u305f\u5317\u534a\u7403\u3092\u8868\u73fe\u3057\u3066\u3044\u308b\uff0e<\/p>\n<p>\u3000geography \u578b\u3092\u4f7f\u3063\u305f\u540c\u69d8\u306e Polygon \u3068\u9055\u3063\u3066\uff08Figure 2-2 \u306b\u793a\u3057\u305f\u304c\uff09\uff0cFigure 2-5 \u306b\u304a\u3051\u308b Polygon \u306b\u542b\u307e\u308c\u308b\u9818\u57df\u306f\u660e\u78ba\u3067\u3042\u308b\uff0e\u305f\u3068\u3048\u30dd\u30a4\u30f3\u30c8\u304c\u6642\u8a08\u56de\u308a\u3092\u306a\u3059\u3088\u3046\u306a\uff0c\u30ea\u30f3\u30b0\u306e\u65b9\u5411\u304c\u9006\u3067\u3042\u3063\u3066\u3082\uff0c\u305d\u306e\u30ea\u30f3\u30b0\u306b\u56f2\u307e\u308c\u305f\u9818\u57df\u306f\u306a\u304a\u3082\u5317\u534a\u7403\u3092\u8868\u73fe\u3059\u308b\uff0egeometry \u578b\u306b\u304a\u3044\u3066\u306f\uff0c\u30ea\u30f3\u30b0\u306e\u65b9\u5411\u306f\uff0cPolygon \u30ea\u30f3\u30b0\u306e\u30dd\u30a4\u30f3\u30c8\u304c\u305d\u306e\u4e2d\u3067\u65b9\u5411\u3092\u7279\u5b9a\u3055\u308c\u308b\u306e\u3060\u304c\uff0c\u91cd\u8981\u3067\u306f\u306a\u3044\uff0e\u5b9f\u52d9\u4e0a\u306e\u7528\u8a9e\u3067\u3044\u3046\u3068\uff0c\u6b21\u306e\u30dd\u30a4\u30f3\u30c8\u5ea7\u6a19\u3067\u5b9a\u7fa9\u3055\u308c\u308b\u30ea\u30f3\u30b0\u306f<\/p>\n<pre>(50, 30), (52, 30), (52, 31), (50, 31), (50, 30)<\/pre>\n<p>\u4f8b\u3048\u3070\u3060\u304c\uff0c\u6b21\u306e\u30dd\u30a4\u30f3\u30c8\u3067\u7279\u5b9a\u3059\u308b\u6271\u308f\u308c\u65b9\u3068\u540c\u69d8\u306b\u6271\u308f\u308c\u308b\uff0e<\/p>\n<pre>(50, 30), (50, 31), (52, 31), (52, 30), (50, 30)<\/pre>\n<p>\u3000Polygon \u3067\u5207\u308a\u53d6\u3089\u308c\u308b\u7a7a\u9593\u306e\u9818\u57df\u3092\u542b\u3080\u5185\u90e8\u30ea\u30f3\u30b0\u3092\u5b9a\u7fa9\u3059\u308b\u6642\uff0c\u3053\u308c\u3089\u306f\u6642\u8a08\u56de\u308a\u3067\u3042\u308c\u53cd\u6642\u8a08\u56de\u308a\u3067\u3042\u308c\u6307\u5b9a\u3067\u304d\u308b\uff0e\u305f\u3060\u3057\uff0c\u5916\u90e8\u30ea\u30f3\u30b0\u306e\u5185\u90e8\u306b\u5b8c\u5168\u306b\u53ce\u307e\u3063\u3066\u3044\u308b\u9650\u308a\uff0c\u3042\u308b\u3044\u306f\uff0c\u4e92\u3044\u306b\u4ea4\u5dee\u3057\u305f\u308a\u4e00\u65b9\u304c\u4ed6\u3092\u5305\u542b\u3057\u3066\u3044\u306a\u3044\u9650\u308a\u3067\u306f\u3042\u308b\u304c\uff0e<\/p>\n<h3>\u9069\u5207\u306a\u7a7a\u9593\u30c7\u30fc\u30bf\u578b\u3092\u9078\u629e\u3059\u308b<\/h3>\n<p>\u3000\uff12\u3064\u306e\u30c7\u30fc\u30bf\u578b\u306e\u9593\u306e\u4e3b\u306a\u9055\u3044\u3092\u898b\u3066\u304d\u305f\u3068\u3053\u308d\u3067\uff0c\u3069\u3093\u306a\u72b6\u6cc1\u3067\u306f\u3069\u3061\u3089\u3092\u4f7f\u3046\u3079\u304d\u306a\u306e\u304b\u3068\uff0c\u304a\u305d\u3089\u304f\u6238\u60d1\u3046\u3060\u308d\u3046\uff0e\u305d\u308c\u306f\u91cd\u8981\u306a\u7591\u554f\u3067\u3042\u308a\uff0c\u6c7a\u5b9a\u7684\u306a\u7b54\u3048\u306f\u5b58\u5728\u3057\u306a\u3044\u304c\uff0c\u6b21\u306e\u30ea\u30b9\u30c8\u304c\u3044\u304f\u3064\u304b\u306e\u4e00\u822c\u7684\u306a\u30ac\u30a4\u30c9\u30e9\u30a4\u30f3\u3068\u306a\u308b\u3060\u308d\u3046\uff0e<\/p>\n<ul>\n<li>\u4eee\u306b\u7def\u5ea6\u3068\u7d4c\u5ea6\u306e\u30c7\u30fc\u30bf\uff08\u4f8b\u3048\u3070 GPS \u88c5\u7f6e\u7531\u6765\uff0cGoogle Earth \u7531\u6765\uff0c\u307e\u305f\u306f\u4ed6\u306e\u30a6\u30a7\u30d6\u7531\u6765\u306a\u3069\uff09\u3092\u4f7f\u3046\u5834\u5408\u306f\uff0cgeography \u578b\u3092\u4f7f\u3046\u3053\u3068\uff0e\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f 4326 SRID \u3092\u4f7f\u3063\u3066\u3044\u308b\uff0e<\/li>\n<li>\u4eee\u306b\u6295\u5f71\u5ea7\u6a19\u7cfb\u3092\u4f7f\u3063\u3066\u3044\u308b\u5834\u5408\u306b\u306f\uff08\u4f8b\u3048\u3070\u5e73\u9762\u306e\u5730\u56f3\u3092\u53ce\u96c6\u3057\u3066\u3044\u308b\u306a\u3069\uff09geometry \u578b\u3092\u4f7f\u3044\uff0c\u5730\u56f3\u6295\u5f71\u304a\u3088\u3073\u57fa\u6e96\u70b9\u306b\u4f7f\u308f\u308c\u3066\u3044\u308b SRID \u3092\u4f7f\u3046\u3053\u3068\uff0e<\/li>\n<li>\u4eee\u306b\u5730\u7403\u306b\u5bfe\u3057\u3066\u7279\u306b\u4f55\u3082\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u306a\u3044 x, y \u30c7\u30fc\u30bf\u3092\u4f7f\u3063\u3066\u3044\u308b\u5834\u5408\u306b\u306f\uff0cgeometry \u578b\u3092\u4f7f\u3044\uff0cSRID \u306f 0 \u3068\u3059\u308b\u3053\u3068\uff0e<\/li>\n<\/ul>\n<p>\u3000\u3053\u308c\u3089\u306e\u4e00\u822c\u7684\u306a\u898f\u5247\u306b\u52a0\u3048\u3066\uff0c\u591a\u304f\u306e\u8ffd\u52a0\u56e0\u5b50\u304c\u5b58\u5728\u3057\uff0c\u3053\u306e\u7bc0\u3067\u8a18\u8ff0\u3057\u3066\u3044\u308b\u304c\uff0c\u610f\u601d\u6c7a\u5b9a\u306e\u52a9\u3051\u3068\u3057\u3066\u8003\u616e\u3059\u3079\u304d\u3067\u3042\u308b\uff0e\u9069\u5207\u306a\u30c7\u30fc\u30bf\u578b\u306e\u9078\u629e\u306f\uff0c\u7a7a\u9593\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u52b9\u7387\u7684\u306a\u8a2d\u8a08\u306e\u78ba\u4fdd\u306e\u6700\u521d\u306e\u4e00\u6b69\u3067\u3042\u308a\uff0c\u3086\u3048\u306b\u3053\u308c\u3089\u306e\u8981\u7d20\u3092\u6c7a\u5b9a\u3059\u308b\u524d\u306b\u6ce8\u610f\u6df1\u304f\u541f\u5473\u3059\u308b\u3053\u3068\uff0e<\/p>\n<h4>\u4e00\u8cab\u6027<\/h4>\n<p>\u3000SQL Server 2008 \u306b\u304a\u3044\u3066\u7a7a\u9593\u30c7\u30fc\u30bf\u306e\u8907\u6570\u306e\u30a2\u30a4\u30c6\u30e0\u3092\u4f7f\u3063\u305f\u64cd\u4f5c\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306b\uff0c\u3059\u3079\u3066\u306e\u30c7\u30fc\u30bf\u306f\u540c\u4e00\u306e\u7a7a\u9593\u53c2\u7167\u7cfb\uff0c\u540c\u4e00\u306e\u30c7\u30fc\u30bf\u578b\u3092\u4f7f\u3063\u3066\u5b9a\u7fa9\u3055\u308c\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\uff0egeometry \u578b\u3068 geography \u578b\u306e\u30c7\u30fc\u30bf\u3092\u540c\u4e00\u306e\u30af\u30a8\u30ea\u5185\u3067\u6df7\u5728\u3055\u305b\u308b\u3053\u3068\u306f\u4e0d\u53ef\u80fd\u3067\u3042\u308a\uff0c\u540c\u4e00\u306e\u30c7\u30fc\u30bf\u578b\u3067\u3042\u3063\u3066\u3082\u7570\u306a\u308b SRID \u3092\u4f7f\u3063\u3066\u5b9a\u7fa9\u3055\u308c\u305f\u30a2\u30a4\u30c6\u30e0\u306e\u64cd\u4f5c\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3082\u4e0d\u53ef\u80fd\u3067\u3042\u308b\uff0e\u4eee\u306b\u305d\u306e\u3088\u3046\u306a\u3053\u3068\u3092\u3057\u3066\u3082\uff0cSQL Server \u306f NULL \u3092\u8fd4\u3059\u3060\u308d\u3046\uff0e<\/p>\n<p>\u3000\u4eee\u306b\uff0c\u65e2\u306b\u7a7a\u9593\u30c7\u30fc\u30bf\u304c\u5b58\u5728\u3057\u3066\u3044\u3066\uff0c\u305d\u306e\u30c7\u30fc\u30bf\u3092\u30b7\u30b9\u30c6\u30e0\u306b\u96c6\u7a4d\u3057\u305f\u3044\u306a\u3089\uff0c\u3086\u3048\u306b\u30c7\u30fc\u30bf\u304c\u65e2\u306b\u53ce\u96c6\u3055\u308c\u305f\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306b\u9069\u3057\u305f\u30c7\u30fc\u30bf\u578b\u3092\u4f7f\u3046\u3079\u304d\u3067\u3042\u308b\uff0e\u4f8b\u3048\u3070\uff0c\u4eee\u306b National Grid of Great Britain \u7cfb\u304b\u3089\u53ce\u96c6\u3057\u305f\u6295\u5f71\u30c7\u30fc\u30bf\u3092\u6301\u3063\u3066\u3044\u308b\u306a\u3089\uff0c\u305d\u306e\u30c7\u30fc\u30bf\u306f geometry \u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u84c4\u7a4d\u3059\u3079\u304d\u3067\u3042\u308b\u3057\uff0cSRID \u306f 27700 \u3092\u4f7f\u3046\u3079\u304d\u3067\u3042\u308b\uff0e\u4eee\u306b GPS \u30b7\u30b9\u30c6\u30e0\u304b\u3089\u53ce\u96c6\u3057\u305f\u7def\u5ea6\u5ea7\u6a19\u3068\u7d4c\u5ea6\u5ea7\u6a19\u3092\u4f7f\u3063\u3066\u3044\u308b\u306a\u3089\uff0cgeography \u578b\u3068 SRID 4326 \u3092\u9078\u629e\u3059\u3079\u304d\u3067\u3042\u308b\uff0e<\/p>\n<p>\u4ed8\u8a18\u3000SRID \u306f\u5ea7\u6a19\u5024\u304c\u305d\u306e\u4e2d\u3067\u5b9a\u7fa9\u3055\u308c\u305f\u30b7\u30b9\u30c6\u30e0\u306b\u3064\u3044\u3066\u306e\u60c5\u5831\u3092\u63d0\u4f9b\u3059\u308b\u3053\u3068\u3092\u601d\u3044\u51fa\u305d\u3046\uff0e\u305d\u308c\u306f\u30b7\u30b9\u30c6\u30e0\u81ea\u8eab\u306b\u3064\u3044\u3066\u8a00\u53ca\u3059\u308b\u3082\u306e\u3067\u306f\u306a\u3044\u304c\uff0e\u3086\u3048\u306b\u5358\u7d14\u306b\uff0c\u7570\u306a\u308b\u7a7a\u9593\u53c2\u7167\u5185\u3067\u305d\u308c\u3089\u3092\u8868\u73fe\u3059\u308b\u76ee\u7684\u3067\uff0c\u7570\u306a\u308b SRID \u5024\u3092\u65e2\u5b58\u306e\u5ea7\u6a19\u306b\u63d0\u4f9b\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\uff0e\u3042\u308b\u7a7a\u9593\u53c2\u7167\u7cfb\u304b\u3089\u5225\u306e\u7cfb\u3078\u3068\u5ea7\u6a19\u5024\u3092\u5909\u63db\u3059\u308b\u306b\u306f\uff0c\u30c7\u30fc\u30bf\u3092\u518d\u6295\u5f71\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\uff0eSQL Server 2008 \u306f\u3044\u304b\u306a\u308b\u518d\u6295\u5f71\u30e1\u30bd\u30c3\u30c9\u3082\u63d0\u4f9b\u3057\u3066\u3044\u306a\u3044\u304c\uff0c\u6570\u3042\u308b\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u88fd\u306e\u30c4\u30fc\u30eb\u306f\u3053\u308c\u304c\u53ef\u80fd\u3067\u3042\u308b\uff0e\u4f8b\u3048\u3070 OGR2OGR \u306f OGR Simple Feature Library (http:\/\/www.gdal.org.ogr\/index.html) \u306e\u4e00\u90e8\u3067\u3042\u308b\uff0e<\/p>\n<h4>\u7cbe\u5ea6<\/h4>\n<p>\u3000geometry \u578b\u306f\u5730\u7403\u306e\u8868\u9762\u3092\u5e73\u9762\u306b\u6295\u5f71\u3057\u305f\u6295\u5f71\u7cfb\u306b\u57fa\u3065\u304f\u5e73\u9762\u30e2\u30c7\u30eb\u3092\u4f7f\u3046\uff0e\u5148\u306e\u7ae0\u3067\u8aac\u660e\u3057\u305f\u3088\u3046\u306b\uff0c\u3044\u304b\u306a\u308b\u4e09\u6b21\u5143\u8868\u9762\u306e\u6295\u5f71\u30d7\u30ed\u30bb\u30b9\u3082\uff0c\u3053\u306e\u65b9\u6cd5\u3067\u306f\u305d\u3053\u3067\u8868\u73fe\u3055\u308c\u308b\u7279\u5fb4\u306f\u3042\u308b\u7a0b\u5ea6\u306e\u6b6a\u66f2\u306b\u81f3\u308a\uff0c\u305d\u308c\u306f\u9762\u7a4d\u3084\u5f62\u72b6\uff0c\u8ddd\u96e2\u3042\u308b\u3044\u306f\u65b9\u5411\u306b\u5f71\u97ff\u3057\u3066\u304f\u308b\uff0e\u3053\u308c\u306f\u3064\u307e\u308a\uff0cgeometry \u578b\u3092\u4f7f\u3046\u3068\u3044\u3046\u3053\u3068\u306f\uff0c\u7279\u5b9a\u306e\u7a7a\u9593\u64cd\u4f5c\u306e\u7d50\u679c\u306f\u5fc5\u305a\u6b6a\u66f2\u3059\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3042\u308a\uff0c\u4f7f\u308f\u308c\u308b\u6295\u5f71\u6cd5\uff0c\u7279\u306b\u305d\u306e\u4e0a\u3067\u306e\u8a08\u7b97\u304c\u57fa\u3065\u304f\u5730\u7403\u306e\u8868\u9762\u306e\u4e00\u90e8\u306b\u4f9d\u5b58\u3059\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3042\u308b\uff0e<\/p>\n<p>\u3000\u4e00\u822c\u7684\u306b\u8a00\u3048\u3070\uff0c\u6295\u5f71\u3055\u308c\u308b\u8868\u9762\u7a4d\u304c\u5927\u304d\u304f\u306a\u308b\u307b\u3069\uff0c\u767a\u751f\u3059\u308b\u6b6a\u66f2\u306f\u5927\u304d\u304f\u306a\u308b\uff0e\u5c0f\u3055\u306a\u9762\u7a4d\u306b\u308f\u305f\u308b\u3053\u308c\u3089\u306e\u6b6a\u66f2\u306e\u5f71\u97ff\u306f\u304b\u306a\u308a\u6700\u5c0f\u5316\u3055\u308c\u308b\u306b\u3082\u95a2\u308f\u3089\u305a\uff0c\u5927\u898f\u6a21\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u5730\u7403\u898f\u6a21\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u3068\u3063\u3066\u306f\uff0cgeometry \u578b\u3092\u4f7f\u3063\u3066\u53d6\u5f97\u3057\u305f\u3044\u304b\u306a\u308b\u7d50\u679c\u306e\u7cbe\u5ea6\u3082\uff0cgeography \u578b\u3092\u4f7f\u3063\u3066\uff08\u305d\u3053\u306b\u306f\u6295\u5f71\u306b\u3088\u308b\u6b6a\u66f2\u304c\u5b58\u5728\u3057\u306a\u3044\uff09\u53d6\u5f97\u3057\u305f\u7d50\u679c\u3068\u6bd4\u8f03\u3059\u308b\u3068\uff0c\u6c7a\u5b9a\u7684\u306a\u30a4\u30f3\u30d1\u30af\u30c8\u304c\u3042\u308b\uff0e\u5c0f\u3055\u306a\u7a7a\u9593\u9818\u57df\u306e\u307f\u3092\u30ab\u30d0\u30fc\u3059\u308b\u591a\u304f\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u304a\u3044\u3066\u306f\uff0c\u7c73\u56fd\u306e\u7279\u5b9a\u306e\u5dde\u306e\u5185\u90e8\u3092\u542b\u3080\u3088\u3046\u306a\u3082\u306e\u306f\uff0c\u95a2\u9023\u3059\u308b\u5dde\u306e\u5e73\u9762\u3092\u6295\u5f71\u3059\u308b geometry \u578b\u3092\u4f7f\u3063\u3066\u5b9f\u884c\u3057\u305f\u8a08\u7b97\u7d50\u679c\u306f\uff0c\u5341\u5206\u306b\u6b63\u78ba\u3060\u308d\u3046\uff0e\u3057\u304b\u3057\uff0c\u7cbe\u5ea6\u3092\u72a0\u7272\u306b\u3057\u305f\u6295\u5f71\u6cd5\u306b\u57fa\u3065\u304f\u6f14\u7b97\u306f\uff0c\u9577\u8ddd\u96e2\u306b\u6e21\u308b\u307b\u3069\uff0cgeography \u578b\u306e\u65b9\u304c\u3088\u308a\u9069\u3057\u305f\u9078\u629e\u80a2\u3068\u306a\u3063\u3066\u304f\u308b\u3060\u308d\u3046\uff0e<\/p>\n<h4>\u4e16\u754c\u306e\u679c\u3066<\/h4>\n<p>\u3000\u5730\u7403\u81ea\u8eab\u3068\u306f\u9055\u3044\uff0c\u6295\u5f71\u6cd5\u306e\u7d50\u679c\u3068\u3057\u3066\u6b6a\u66f2\u304c\u767a\u751f\u3059\u308b\u6975\u7aef\u306a\u4f8b\u3068\u3057\u3066\uff0c\u6295\u5f71\u5730\u56f3\u306b\u306f\u300c\u679c\u3066\u300d\u304c\u5b58\u5728\u3059\u308b\u3053\u3068\u3067\u3042\u308b\uff0egeometry \u578b\u3092\u4f7f\u3063\u3066\u6295\u5f71\u7a7a\u9593\u30c7\u30fc\u30bf\u3092\u84c4\u7a4d\u3059\u308b\u6642\uff0c\u8fba\u7e01\u3068\u4ea4\u5dee\u3059\u308b\u30c7\u30fc\u30bf\u3092\u5b9a\u7fa9\u3059\u308b\u306e\u306b\u5fc5\u8981\u306a\u72b6\u6cc1\u3092\u7279\u306b\u8003\u616e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\uff0e\u5178\u578b\u7684\u306b\u767a\u751f\u3059\u308b\u306e\u306f\uff0cgeometry \u3042\u308b\u3044\u306f\u8a08\u7b97\u7d50\u679c\u304c 180<sup>th<\/sup> \u5b50\u5348\u7dda\u3084\u5730\u7403\u306e\u4e21\u6975\u306e\u3044\u305a\u308c\u304b\u3068\u4ea4\u5dee\u3059\u308b\u6642\u3067\u3042\u308b\uff0e<\/p>\n<p>\u3000\u3053\u308c\u3089\u306e\u6b6a\u66f2\u304c geometry \u578b\u3092\u4f7f\u3063\u305f\u8a08\u7b97\u306b\u5f71\u97ff\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3059\u308b\u305f\u3081\uff0c\u30d0\u30f3\u30af\u30fc\u30d0\u30fc\u3068\u6771\u4eac\u9593\u306e\u6700\u77ed\u76f4\u7dda\u8ddd\u96e2\u3092\u8a08\u7b97\u3059\u308b\u3053\u3068\u3092\u8003\u3048\u3066\u307f\u3088\u3046\uff0e\u5e73\u5766\u306a geometry \u578b\u306f\u30b0\u30ea\u30cb\u30c3\u30b8\u672c\u521d\u5b50\u5348\u7dda\u3092\u4e2d\u5fc3\u3068\u3057\u305f\u6295\u5f71\u6cd5\u306b\u57fa\u3065\u3044\u3066\u304a\u308a\uff0c\u305d\u306e\u7d50\u679c\u306f Figure 2-6 \u306b\u793a\u3057\u305f\u3088\u3046\u306b\u898b\u3048\u308b\u3060\u308d\u3046\uff0e<\/p>\n<p>\u3000\u5bfe\u7167\u7684\u306b\uff0cgeography \u578b\u306f\u9023\u7d9a\u3057\u305f\uff0c\u5730\u7403\u306e\u7403\u4f53\u30e2\u30c7\u30eb\u3092\u4f7f\u3044\uff0c\u305d\u3053\u306b\u306f\u6295\u5f71\u306e\u7d50\u679c\u3068\u3057\u3066\u7d39\u4ecb\u3057\u305f\u8fba\u7e01\u306f\u5b58\u5728\u3057\u306a\u3044\uff0e\u6771\u4eac-\u30d0\u30f3\u30af\u30fc\u30d0\u30fc\u9593\u306e\u6700\u77ed\u8ddd\u96e2\u3068\u3057\u3066 geography \u578b\u3092\u4f7f\u3063\u3066\u5f97\u3089\u308c\u305f\u7d50\u679c\u306f Figure 2-7 \u306b\u793a\u3057\u305f\u3088\u3046\u306a\u3082\u306e\u306b\u306a\u308b\uff0e<\/p>\n<p>\u3000Figure 2-6 \u3068 Figure 2-7 \u306b\u793a\u3057\u305f\u7d4c\u8def\u3092\u6bd4\u8f03\u3059\u308b\u3068\uff0cgeometry \u578b\u306e\u7d50\u679c\u306f\uff0c\u5730\u56f3\u306e\u5883\u754c\u3092\u8d85\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u3044\u305f\u3081\u306b\uff0c\u3088\u308a\u9577\u3044\u7d4c\u8def\u3092\u63cf\u304d\uff0c\u30a2\u30e1\u30ea\u30ab\u5168\u571f\uff0c\u30e8\u30fc\u30ed\u30c3\u30d1\u5168\u571f\u304a\u3088\u3073\u30a2\u30b8\u30a2\u5168\u571f\u3092\u6a2a\u5207\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u898b\u3048\u3066\u304f\u308b\u3060\u308d\u3046\uff0e\u5bfe\u7167\u7684\u306b\uff0cgeography \u578b\u3092\u4f7f\u3063\u3066\u53d6\u5f97\u3055\u308c\u305f\u7d50\u679c\u306f\u592a\u5e73\u6d0b\u3092\u6a2a\u5207\u308b\u6700\u77ed\u7d4c\u8def\u3092\u793a\u3057\u3066\u304a\u308a\uff0c\u5b9f\u969b\u306e\u5730\u7403\u306e\u7403\u4f53\u306b\u57fa\u3065\u3044\u305f\u6b63\u78ba\u306a\u7b54\u3048\u3092\u8868\u73fe\u3057\u3066\u3044\u308b\uff0e<\/p>\n<p>\u3000\u3053\u308c\u3089\u306e\u8ab2\u984c\u306e\u3055\u3089\u306a\u308b\u8aac\u660e\u306f\uff0c\u6240\u4e0e\u306e\u6295\u5f71\u306b\u304a\u3044\u3066\u5730\u56f3\u306e\u8fba\u7e01\u3092\u62e1\u5f35\u3057\u3066 geometry \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u5b9a\u7fa9\u3057\u3088\u3046\u3068\u3059\u308b\u6642\u306b\u767a\u751f\u3059\u308b\uff0eFigure 2-8 \u306f\u30ed\u30b7\u30a2\u3092\u8868\u73fe\u3059\u308b Polygon geometry \u3092\u30cf\u30a4\u30e9\u30a4\u30c8\u3057\u3066\u3042\u308b\u304c\uff0c\u30b0\u30ea\u30cb\u30c3\u30b8\u672c\u521d\u5b50\u5348\u7dda\u3092\u4e2d\u5fc3\u3068\u3057\u305f\u6b63\u8ddd\u5186\u7b52\u56f3\u6cd5\u3068\u3057\u3066\u63cf\u3044\u3066\u3042\u308b\uff0e<\/p>\n<p>\u3000\u307b\u3068\u3093\u3069\u306e Polygon \u304c\u6771\u534a\u7403\u306b\u542b\u307e\u308c\u308b\u306b\u3082\u95a2\u308f\u3089\u305a\uff0c\u30ed\u30b7\u30a2\u306e\u6700\u5317\u6771\u5730\u57df\uff08\u30c1\u30e5\u30b3\u30c8\u30ab\u81ea\u6cbb\u533a\uff09\u306f\u5b9f\u969b\u306b\u5730\u56f3\u306e\u8fba\u7e01\u3068\u4ea4\u5dee\u3057\u3066\u304a\u308a\uff0c\u897f\u534a\u7403\u306b\u3082\u8868\u308c\u3066\u3044\u308b\uff0e\u3053\u306e\u6295\u5f71\u6cd5\u306b\u57fa\u3065\u304f geometry \u578b\u3092\u4f7f\u3046\u3053\u3068\u306f\uff0c\u30ed\u30b7\u30a2\u3092\u5358\u4e00\u306e Polygon geometry \u3092\u4f7f\u3063\u3066\u3053\u306e\u65b9\u6cd5\u3067\u8868\u73fe\u3059\u308b\u3053\u3068\u304c\u4e0d\u53ef\u80fd\u3067\u3042\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3042\u308b\uff0e\u4ee3\u308f\u308a\u306b\uff0c\u5404\u3005\u306e\u5f62\u614b\u3092\u8868\u73fe\u3059\u308b\u306b\u306f\u4e8c\u3064\u306e\u8981\u7d20\u3092\u542b\u3080 MultiPolygon geometry \u3092\u4f7f\u3046\u5fc5\u8981\u304c\u3042\u308a\uff0c\u30aa\u30ea\u30b8\u30ca\u30eb\u306e\u5f62\u614b\u3092\u4e8c\u3064\u306b\u5206\u5272\u3055\u308c\u305f\u5730\u56f3\u306e\u8fba\u7e01\u3067\u751f\u6210\u3055\u308c\u305f\u3082\u306e\u3067\u3042\u308b\uff0e<\/p>\n<p>\u3000\u672c\u7ae0\u3067\u63d0\u793a\u3055\u308c\u305f\u554f\u984c\u306e\u4e21\u8005\u306f\uff0cgeometry \u578b\u306e\u305f\u3081\u306e\u9069\u5207\u306a\u7a7a\u9593\u53c2\u7167\u7cfb\u3092\u9078\u629e\u3059\u308b\u3053\u3068\u3067\uff0c\u3044\u304f\u3089\u304b\u306e\u7bc4\u56f2\u3067\u7de9\u548c\u3057\u3046\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\uff0c\u305d\u306e\u4e2d\u3067\u554f\u984c\u306e\u7279\u5b9a\u306e geometry \u306f\u5730\u56f3\u306e\u8fba\u7e01\u3068\u4ea4\u5dee\u3057\u306a\u304f\u306a\u308b\uff0e\u305d\u306e\u3088\u3046\u306a\u6295\u5f71\u306e\u4f8b\u3068\u3057\u3066 Figure 2-9 \u3092\u793a\u3059\uff0e\u3057\u304b\u3057\uff0c\u3053\u308c\u306f\u4e00\u3064\u306e\u7279\u5b9a\u4f8b\u306e\u554f\u984c\u3092\u56de\u907f\u3059\u308b\u4e00\u65b9\u3067\uff0c\u5b8c\u5168\u306b\u306f\u89e3\u6c7a\u3057\u3066\u3044\u306a\u3044\uff0e\u3064\u307e\u308a\uff0c\u4eee\u306b\u65b0\u3057\u3044\u5730\u56f3\u304c\u7570\u306a\u308b\u6295\u5f71\u6cd5\u3067\u751f\u6210\u3055\u308c\u305f\u3068\u3057\u3066\u3082\uff0c\u4eca\u5ea6\u306f\u65b0\u3057\u304f\u3067\u304d\u305f\u8fba\u7e01\u306e\u5468\u8fba\u306e\u5c40\u5728\u304c\u5e38\u306b\u554f\u984c\u3068\u306a\u308b\u3060\u308d\u3046\u304b\u3089\u3067\u3042\u308b\uff0e<\/p>\n<p>\u3000\u4eee\u306b\u6295\u5f71\u5730\u56f3\u306e\u8fba\u7e01\u3068\u4ea4\u5dee\u305b\u3056\u308b\u3092\u5f97\u306a\u3044 geometries \u306e\u72b6\u6cc1\u3092\u6271\u3046\u3053\u3068\u3092\u671f\u5f85\u3059\u308b\u306a\u3089\uff0c\u30c7\u30fc\u30bf\u3092\u84c4\u7a4d\u3059\u308b\u306b\u306f geography \u578b\u304c\u3088\u308a\u307e\u3057\u306a\u9078\u629e\u80a2\u3068\u306a\u308b\u3060\u308d\u3046\uff0e<\/p>\n<h4>\u8868\u73fe<\/h4>\n<p>\u3000geography \u578b\u306f\u5730\u7403\u306e\u4e09\u6b21\u5143\u30e2\u30c7\u30eb\u3092\u64cd\u4f5c\u3059\u308b\u305f\u3081\uff0c\u4eee\u306b geography \u578b\u3092\u5730\u56f3\u3067\u8868\u73fe\u3057\u3088\u3046\u3068\u3059\u308b\u3068\uff0c\u307e\u305a\u305d\u308c\u3092\u6295\u5f71\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\uff0e\u4ee5\u524d\u8b70\u8ad6\u3057\u305f\u3088\u3046\u306b\uff0c\u3053\u308c\u306f\u6b6a\u66f2\u3092\u3082\u305f\u3089\u3059\uff0eFigure 2-7 \u3067\u4e0e\u3048\u3089\u308c\u305f\u4f8b\u306e\u3088\u3046\u306b\uff0cgeography \u578b\u306f\u6b63\u78ba\u306b\uff12\u70b9\u9593\u306e\u6700\u77ed\u76f4\u7dda\u7d4c\u8def\u3092\u53e9\u304d\u51fa\u3059\u304c\uff0c\u4eee\u306b\u305d\u306e\u7d50\u679c\u3092\u6295\u5f71\u5730\u56f3\u306b\u8868\u793a\u3057\u3088\u3046\u3068\u3059\u308b\u3068\uff0c\u3053\u306e\u300c\u76f4\u7dda\u300d\u306f\u6b6a\u66f2\u3055\u308c\u30ab\u30fc\u30d6\u3057\u3066\u8868\u793a\u3055\u308c\u308b\u3060\u308d\u3046\uff0e\u3053\u306e\u6b6a\u66f2\u306e\u6b63\u78ba\u306a\u52b9\u679c\u306f\u4f7f\u308f\u308c\u308b\u5730\u56f3\u6295\u5f71\u306e\u7279\u6027\u306b\u3088\u3063\u3066\u7570\u306a\u308b\uff0e<\/p>\n<p>\u3000Figure 2-9 \u306f Figure 2-7 \u3067\u793a\u3057\u305f\u306e\u3068\u540c\u4e00\u306e\u6771\u4eac-\u30d0\u30f3\u30af\u30fc\u30d0\u30fc\u9593\u306e\u7d4c\u8def\u3092\u63cf\u3044\u3066\u3042\u308b\u304c\uff0c\u30e1\u30eb\u30ab\u30c8\u30eb\u56f3\u6cd5\u3092\u4f7f\u3063\u3066\u6295\u5f71\u3057\u3066\u3042\u308a\uff0c150\u00b0 \u7d4c\u7dda\u3092\u4e2d\u5fc3\u3068\u3057\u3066\u3042\u308b\uff0egeography \u578b\u3092\u4f7f\u3063\u3066\u8a08\u7b97\u3057\u305f\u7d4c\u8def\u306f\u7403\u4f53\u306b\u30d7\u30ed\u30c3\u30c8\u3059\u308b\u3068\u307e\u3063\u3059\u3050\u306e\u7dda\u5206\u3068\u3057\u3066\u898b\u3048\u308b\u304c\uff0c\u5e73\u9762\u306e\u5730\u56f3\u4e0a\u3067\u306f\u30ab\u30fc\u30d6\u3057\u3066\u898b\u3048\u308b\uff0e\u3053\u308c\u306f\u6295\u5f71\u306b\u3088\u308b\u6b6a\u66f2\u52b9\u679c\u306b\u3088\u308b\uff0e<\/p>\n<p>\u4ed8\u8a18\u3000\u3057\u3070\u3057\u3070<del>\u5927\u6955\u5186\u5f27<\/del>\u5927\u570f\u822a\u8def\u3092\u898b\u308b\u3060\u308d\u3046\uff0egeography \u578b\u306b\u304a\u3051\u308b\uff12\u70b9\u9593\u306e\u6700\u77ed\u7d4c\u8def\u3067\u3042\u308b\u304c\uff0c\u76ee\u7684\u5730\u9593\u306e\u822a\u7a7a\u6a5f\u306e\u53d6\u308b\u6700\u9069\u7d4c\u8def\u3092\u56f3\u793a\u3059\u308b\u305f\u3081\u306b\u822a\u7a7a\u4fbf\u306b\u4f7f\u308f\u308c\u308b\u5730\u56f3\u4e0a\u3067\u306f\uff08Figure 2-9 \u306b\u793a\u3059\u3088\u3046\u306b\uff09\u66f2\u7dda\u3068\u3057\u3066\u63cf\u304b\u308c\u308b\uff0e<\/p>\n<p>\u3000\u9006\u306b\uff0cgeometry \u578b\u306f\u65e2\u306b\u5e73\u9762\u4e0a\u306b\u6295\u5f71\u3055\u308c\u305f\u30c7\u30fc\u30bf\u306b\u57fa\u3065\u3044\u3066\u3044\u308b\u305f\u3081\uff0c\u5730\u56f3\u4e0a\u306b\u7d50\u679c\u3092\u8868\u793a\u3059\u308b\u306b\u3042\u305f\u3063\u3066\uff0c\u3055\u3089\u306b\u6b6a\u66f2\u3092\u5c0e\u5165\u3059\u308b\u4f59\u5730\u306f\u307e\u3063\u305f\u304f\u306a\u3044\uff0egeometry \u578b\u306b\u304a\u3051\u308b\u300c\u76f4\u7dda\u300d\u304c\u307e\u3063\u3059\u3050\u3067\u3042\u308b\u306e\u306f\uff0c\u5730\u56f3\u4e0a\u306b\u63cf\u304b\u308c\u305f\u6642\u306b\u9650\u3089\u308c\u308b\uff0e\u305d\u306e\u5730\u56f3\u3068\u306f\uff0c\u5730\u70b9\u304c\u53d6\u5f97\u3055\u308c\u305f\u7a7a\u9593\u53c2\u7167\u7cfb\u3068\u540c\u4e00\u306e\u6295\u5f71\u6cd5\u3092\u4f7f\u3063\u3066\u6295\u5f71\u3055\u308c\u3066\u63d0\u4f9b\u3055\u308c\u305f\u3082\u306e\u3067\u3042\u308b\uff0e<\/p>\n<p>\u3000\u4eee\u306b\u5730\u70b9\u9593\u306e\u76f4\u7dda\u3092\u8868\u73fe\u3057\u3088\u3046\u3068\u3057\u3066\u30c7\u30fc\u30bf\u3092\u4f7f\u3046\u3064\u3082\u308a\u306a\u3089\uff0c\u305d\u3057\u3066\u305d\u306e\u7dda\u3092\u5730\u56f3\u4e0a\u3067\u3082\u307e\u3063\u3059\u3050\u306b\u6295\u5f71\u3057\u305f\u3044\u306a\u3089\uff0cgeometry \u578b\u3092\u9078\u629e\u3059\u3079\u304d\u3067\u3042\u308a\uff0c\u305d\u306e\u4e0a\u306b\u7d50\u679c\u306e\u8868\u793a\u3055\u308c\u308b\u5730\u56f3\u306b\u5bfe\u5fdc\u3059\u308b\u7a7a\u9593\u53c2\u7167\u3092\u9078\u629e\u3059\u308b\u3053\u3068\uff0e<\/p>\n<h4>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9<\/h4>\n<p>\u3000\u7403\u9762\u6f14\u7b97\u306e\u5b9f\u884c\u306b\u306f\u30c7\u30ab\u30eb\u30c8\u6f14\u7b97\u3088\u308a\u3082\u591a\u304f\u306e\u8a08\u7b97\u8cc7\u6e90\u3092\u4f7f\u7528\u3059\u308b\uff0e\u7d50\u679c\u3068\u3057\u3066\uff0cgeography \u578b\u3092\u4f7f\u3063\u305f\u6955\u5186\u4f53\u30e2\u30c7\u30eb\u306e\u7a7a\u9593\u6f14\u7b97\u306f geometry \u578b\u3092\u4f7f\u3046\u540c\u7b49\u306e\u64cd\u4f5c\u3088\u308a\u3082\u306f\u308b\u304b\u306b\u8a08\u7b97\u91cf\u304c\u591a\u304f\u306a\u308b\uff0e\u3053\u308c\u306f\u5730\u7403\u306e\u6e2c\u5730\u30e2\u30c7\u30eb\uff0c\u4f8b\u3048\u3070\u8ddd\u96e2\u3084\u9577\u3055\uff0c\u3042\u308b\u3044\u306f\u9762\u7a4d\u306a\u3069\u306e\u5730\u7406\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306a\u3069\u306b\u57fa\u3065\u304f\u6307\u6a19\u3092\u8a08\u7b97\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044 geography \u578b\u306b\u306e\u307f\u5f71\u97ff\u3059\u308b\u624b\u6cd5\u3067\u3042\u308b\uff0e\u5730\u7403\u306e\u30e2\u30c7\u30eb\u3092\u8003\u616e\u3059\u308b\u5fc5\u8981\u304c\u306a\u3044\u5834\u5408\uff0c\u4f8b\u3048\u3070\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30dd\u30a4\u30f3\u30c8\u6570\u3092\u6570\u3048\u308b\u5834\u5408\u3084\u7279\u5fb4\u3092\u8868\u73fe\u3059\u308b\u306e\u306b\u4f7f\u3046 geometry \u306e\u7a2e\u985e\u3092\u8a18\u8ff0\u3059\u308b\u5834\u5408\u3067\u3082\uff0c\u7269\u4f53\u306e\u5c5e\u6027\u3092\u8fd4\u3059\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3046\u3044\u304b\u306a\u308b\u6642\u3067\u3082\uff0cgeography \u578b\u3068 geometry \u578b\u306e\u9593\u3067\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u9055\u3044\u306f\u306a\u3044\uff0e<\/p>\n<h4>\u6a19\u6e96\u3078\u306e\u6e96\u62e0<\/h4>\n<p>\u3000\u6b21\u306e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8 http:\/\/www.opengeospatial.org\/ \u306b\u3088\u308b\u3068\uff0cOpen Geospatial Consortium (OGC) \u306f\u300c\u975e\u55b6\u5229\uff0c\u56fd\u969b\u7684\uff0c\u81ea\u767a\u7684\u306a\u30b3\u30f3\u30bb\u30f3\u30b5\u30b9\u6a19\u6e96\u5316\u6a5f\u69cb\u3067\uff0c\u5730\u7406\u7a7a\u9593\u304a\u3088\u3073\u4f4d\u7f6e\u30d9\u30fc\u30b9\u306e\u30b5\u30fc\u30d3\u30b9\u6a19\u6e96\u5316\u306e\u767a\u5c55\u3092\u76ee\u7684\u3068\u3059\u308b\u300d\uff0eOGC \u306f\u591a\u304f\u306e\u7a7a\u9593\u30c7\u30fc\u30bf\u3092\u6271\u3046\u696d\u754c\u5168\u4f53\u306e\u6a19\u6e96\u3092\u7ba1\u7406\u3059\u308b\uff0e\u3053\u308c\u3089\u306e\u6a19\u6e96\u306b\u5f93\u3046\u3053\u3068\u3067\uff0c\u7570\u306a\u308b\u30b7\u30b9\u30c6\u30e0\u3067\u3082\u30b3\u30a2\u30ec\u30d9\u30eb\u306e\u4e00\u822c\u6a5f\u80fd\u3092\u78ba\u4fdd\u3067\u304d\uff0c\u305d\u308c\u306f\u7a7a\u9593\u60c5\u5831\u304c\u3055\u3089\u306b\u7c21\u5358\u306b\u7570\u306a\u308b\u30d9\u30f3\u30c0\u30fc\u9593\u3084\u30b7\u30b9\u30c6\u30e0\u9593\u3067\u5171\u6709\u3055\u308c\u308b\u3053\u3068\u3092\u610f\u5473\u3059\u308b\uff0e2007 \u5e74 10 \u6708\u306b\uff0cMicrosoft \u306f OGC \u306b\u4e3b\u8981\u306a\u4e00\u54e1\u3068\u3057\u3066\u53c2\u52a0\u3057\uff0cSQL Server 2008 \u306b\u5b9f\u88c5\u3055\u308c\u305f\u7a7a\u9593\u30c7\u30fc\u30bf\u578b\u306f OGC \u306b\u3088\u308a\u5b9a\u7fa9\u3055\u308c\u305f\u6a19\u6e96\u306b\u62e0\u308b\u3068\u3053\u308d\u5927\u3067\u3042\u3063\u305f\uff0e<\/p>\n<p>\u3000geometry \u578b\u306f SQL Specification v1.1.0 (http:\/\/opengeospatial.org\/standards\/sfs) \u306e\u305f\u3081\u306e OGC Simple Features \u306b\u5f93\u3044\uff0c\u6a19\u6e96\u306b\u5408\u81f4\u3055\u305b\u308b\u305f\u3081\u306b\u5fc5\u8981\u306a\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u88c5\u3059\u308b\uff0e<\/p>\n<p>\u3000geography \u578b\u306f geometry \u578b\u3068\u540c\u4e00\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u591a\u304f\u5b9f\u88c5\u3059\u308b\u304c\uff0c\u8981\u6c42\u3055\u308c\u305f OGC \u6a19\u6e96\u306b\u306f\u5b8c\u5168\u306b\u306f\u5f93\u308f\u306a\u3044\uff0e<\/p>\n<p>\u3000\u3053\u3046\u3044\u3046\u8a33\u3067\uff0c\u4eee\u306b\u00a0SQL Server 2008 \u306b\u304a\u3044\u3066\uff0c\u8a8d\u3081\u3089\u308c\u305f OGC \u6a19\u6e96\u306b\u6e96\u62e0\u3059\u308b\u7a7a\u9593\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u306e\u304c\u91cd\u8981\u3067\u3042\u308b\u306a\u3089\uff0cgeometry \u578b\u3092\u4f7f\u7528\u3059\u3079\u304d\u3067\u3042\u308b\uff0e<\/p>\n<h3>\u7a7a\u9593\u30c7\u30fc\u30bf\u306f\u3069\u306e\u3088\u3046\u306b\u84c4\u7a4d\u3055\u308c\u308b\u304b<\/h3>\n<p>\u3000geometry \u578b\u304a\u3088\u3073 geography \u578b\u306f\u5171\u306b\u53ef\u5909\u9577\u30c7\u30fc\u30bf\u578b\u3067\u3042\u308b\uff0e\u3053\u308c\u306e\u610f\u5473\u3059\u308b\u3068\u3053\u308d\u306f\uff0cint \u578b\u3084 datetime \u578b\u306e\u3088\u3046\u306a\u56fa\u5b9a\u9577\u30c7\u30fc\u30bf\u578b\u3068\u306f\u5bfe\u7167\u7684\u306b\uff0c\u7a7a\u9593\u30c7\u30fc\u30bf\u306e\u84c4\u7a4d\u306b\u5b9f\u969b\u306b\u5fc5\u8981\u306a\u30b9\u30c8\u30ec\u30fc\u30b8\u306e\u91cf\u306f\uff0c\u30c7\u30fc\u30bf\u306e\u8a18\u8ff0\u3059\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u8907\u96d1\u6027\u306b\u4f9d\u5b58\u3059\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3042\u308b\uff0e<\/p>\n<p>\u3000SQL Server 2008 \u306fgeometry \u578b\u304a\u3088\u3073 geography \u578b\u3092\u542b\u3080\u60c5\u5831\u3092\u30d0\u30a4\u30ca\u30ea\u30fc\u30c7\u30fc\u30bf\u30b9\u30c8\u30ea\u30fc\u30e0\u3068\u3057\u3066\u84c4\u7a4d\u3059\u308b\uff0e\u5404\u30b9\u30c8\u30ea\u30fc\u30e0\u306f\uff0c\u8a18\u8ff0\u3055\u308c\u305f geometry \u306e\u7a2e\u985e\uff0c\u4f7f\u308f\u308c\u308b\u7a7a\u9593\u53c2\u7167\u7cfb\uff0c\u304a\u3088\u3073\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5185\u306e\u9802\u70b9\u306e\u5168\u4f53\u306e\u6570\u306a\u3069\u306e\u57fa\u672c\u60c5\u5831\u3092\u5b9a\u7fa9\u3057\u305f\u30d8\u30c3\u30c0\u30fc\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u958b\u59cb\u3055\u308c\u308b\uff0e\u3053\u306e\u30d8\u30c3\u30c0\u30fc\u306f\u305d\u306e\u76f4\u5f8c\u306b geometry \u5185\u306e\u5404 x \u304a\u3088\u3073 y \u5ea7\u6a19\u5024\uff08\u307e\u305f\u306f\u7d4c\u5ea6\u30fb\u7def\u5ea6\uff09\u304c\u7d9a\u304d\uff0c8 \u30d0\u30a4\u30c8\u306e\u30d0\u30a4\u30ca\u30ea\u30fc\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3067\u8868\u73fe\u3055\u308c\u308b\uff0e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u305d\u306e\u5b9a\u7fa9\u5185\u306b\u6301\u3064\u9802\u70b9\u304c\u591a\u3044\u307b\u3069\uff0c\u3053\u306e\u30d0\u30a4\u30ca\u30ea\u30fc\u30b9\u30c8\u30ea\u30fc\u30e0\u3082\u9577\u304f\u306a\u308a\uff0c\u305d\u308c\u3086\u3048\u306b\u5fc5\u8981\u306a\u30b9\u30c8\u30ec\u30fc\u30b8\u30b9\u30da\u30fc\u30b9\u3082\u5927\u304d\u304f\u306a\u308b\uff0e<\/p>\n<p>\u6ce8\u8a18\u3000SQL Server 2008 \u306f\u5404\u5ea7\u6a19\u3092\u500d\u7cbe\u5ea6\u6d6e\u52d5\u5c0f\u6570\u70b9\u578b\u3067\u84c4\u7a4d\u3057\uff0c\u305d\u308c\u306f IEEE \u30d0\u30a4\u30ca\u30ea\u6d6e\u52d5\u5c0f\u6570\u70b9\u6f14\u7b97\u6a19\u6e96 (IEEE 754-2008) \u306b\u6e96\u62e0\u3057\u3066\u3044\u308b\uff0e\u3053\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306f\u6d6e\u52d5\u5c0f\u6570\u70b9\u3092 15 \u6841\u306e\u6709\u52b9\u6570\u5b57\u3067\u84c4\u7a4d\u3059\u308b\u3053\u3068\u3092\u53ef\u80fd\u3068\u3059\u308b\uff0e\u3064\u307e\u308a\uff0c\u30b5\u30d6\u30df\u30ea\u30e1\u30fc\u30c8\u30eb\u306e\u7cbe\u5ea6\u3067\u4e00\u822c\u306b\u306f\u3069\u306e\u4f4d\u7f6e\u3067\u3082\u5341\u5206\u306a\u7cbe\u5ea6\u3067\u8a18\u8ff0\u3067\u304d\u308b\uff0e<\/p>\n<p>\u3000\u6b21\u306e\u30ea\u30b9\u30c8\u3067\u7a7a\u9593\u30c7\u30fc\u30bf\u306e\u3044\u304f\u3064\u304b\u4e00\u822c\u7684\u306a\u30a2\u30a4\u30c6\u30e0\u3092\u84c4\u7a4d\u3059\u308b\u306e\u306b\u5fc5\u8981\u306a\u30b9\u30c8\u30ec\u30fc\u30b8\u30b9\u30da\u30fc\u30b9\u306e\u4f8b\u3092\u63d0\u4f9b\u3057\u3066\u3044\u308b\uff0e<\/p>\n<ul>\n<li>\uff12\u3064\u306e\u5ea7\u6a19\u5024\u3067\u5b9a\u7fa9\u3055\u308c\u305f\u4e00\u500b\u306e Point geometry \u306f\u901a\u5e38 22 \u30d0\u30a4\u30c8\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u30b9\u30da\u30fc\u30b9\u3092\u5360\u3081\u308b\uff0e<\/li>\n<li>\uff12\u3064\u306e Point \u3067\u5b9a\u7fa9\u3055\u308c\u305f\uff11\u500b\u306e LineString \u306f\u6700\u5c0f\u3067 4 \u3064\u306e\u5ea7\u6a19\uff08\u7def\u5ea6\u3068\u7d4c\u5ea6\uff0c\u307e\u305f\u306f x \u5024\u304a\u3088\u3073 y \u5024\u3067\u59cb\u70b9\u3068\u7d42\u70b9\u304b\u3089\u306a\u308b\uff09\u3092\u4fdd\u6301\u3057\u3066\u304a\u308a\uff0c38 \u30d0\u30a4\u30c8\u3092\u5360\u3081\u308b\uff0e<\/li>\n<li>\uff11\u500b\u306e Polygon geometry \u306e\u5360\u3081\u308b\u30b9\u30da\u30fc\u30b9\u306f\uff0c\u30de\u30fc\u30af\u30a2\u30c3\u30d7\u3059\u308b\u9802\u70b9\u306e\u6570\u306b\u4f9d\u5b58\u3057\u3066\u5909\u52d5\u3059\u308b\uff0ePolygon \u306b\u3088\u308a\u5b9a\u7fa9\u3055\u308c\u305f\u3069\u3093\u306a\u5185\u90e8\u30ea\u30f3\u30b0\u3082 Polygon \u3092\u84c4\u7a4d\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u3068\u3055\u308c\u308b\u30b9\u30da\u30fc\u30b9\u3092\u5897\u52a0\u3055\u305b\u308b\uff0e<\/li>\n<\/ul>\n<p>\u3000geometry \u307e\u305f\u306f geography \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u4f7f\u308f\u308c\u308b\u30c7\u30fc\u30bf\u30b9\u30c8\u30ec\u30fc\u30b8\u30b9\u30da\u30fc\u30b9\u306b\u306f\uff0c\u7279\u7570\u7684\u306a\u6700\u5927\u30b5\u30a4\u30ba\u3068\u3044\u3046\u3082\u306e\u306f\u5b58\u5728\u3057\u306a\u3044\uff0e\u3057\u304b\u3057\uff0cSQL Server 2008 \u306b\u306f\u3069\u3093\u306a\u7a2e\u985e\u306e\u5de8\u5927\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u3042\u308c\uff0c\u5168\u4f53\u306e\u5236\u7d04\u3068\u3044\u3046\u3082\u306e\u304c\u5b58\u5728\u3057\uff0c\u305d\u308c\u306f 2<sup>31<\/sup>-1 \u30d0\u30a4\u30c8\u304c\u4e0a\u9650\u3067\u3042\u308b\uff0e\u3053\u308c\u306f varbinary(max) \u578b\u3084 varchar(max) \u578b\u306e\u3088\u3046\u306a\u30c7\u30fc\u30bf\u578b\u3068\u540c\u7b49\u306e\u5236\u7d04\u3067\u3042\u308a\uff0c\u30c7\u30fc\u30bf\u306e\u5404\u500b\u5225\u306e\u30a2\u30a4\u30c6\u30e0\u306b\u3068\u3063\u3066\u306e\u307b\u307c 2 GB \u306b\u5339\u6575\u3059\u308b\uff0e\u3053\u306e\u5236\u9650\u3092\u8d85\u904e\u3059\u308b\u306b\u306f\uff0c\u5927\u5909\u306b\u8907\u96d1\u306a geometry \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4fdd\u5b58\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\uff01\u3082\u3057\u5fc5\u8981\u306a\u3089\uff0c\u591a\u304f\u306e\u500b\u5225\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u8a31\u3055\u308c\u305f\u30b5\u30a4\u30ba\u5185\u306b\u9069\u5408\u3059\u308b\u307e\u3067\uff0c\u8907\u96d1\u306a geometry \u3092\u5206\u89e3\u3059\u308b\uff0c\u3068\u899a\u3048\u3066\u304a\u304f\u3068\u3088\u3044\uff0e<\/p>\n<p>\u30c1\u30c3\u30d7\u30b9\u3000T-SQL \u306e DATALENGTH \u95a2\u6570\u3092\u4f7f\u3063\u3066\uff0c\u4efb\u610f\u306e geometry \u304a\u3088\u3073 geography \u30c7\u30fc\u30bf\u306e\u30a2\u30a4\u30c6\u30e0\u306e\u84c4\u7a4d\u30b5\u30a4\u30ba\u306b\u4f7f\u308f\u308c\u308b\u30d0\u30a4\u30c8\u6570\u306e\u5024\u3092\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u308b\uff0e<\/p>\n<h3>\u30c7\u30fc\u30bf\u578b\u9593\u306e\u5909\u63db<\/h3>\n<p>\u3000geometry \u578b\u304c\uff0c\u6295\u5f71\u5ea7\u6a19\u7cfb\uff0c\u5730\u7406\u5ea7\u6a19\u7cfb\u3042\u308b\u3044\u306f\u81ea\u7136\u5e73\u9762\u5ea7\u6a19\u7cfb\u3092\u4f7f\u3063\u3066\u5b9a\u7fa9\u3055\u308c\u308b geometries \u3092\u84c4\u7a4d\u3059\u308b\u305f\u3081\u306b\u4f7f\u308f\u308c\u308b\u3053\u3068\u3092\u601d\u3044\u51fa\u305d\u3046\uff0e\u5bfe\u7167\u7684\u306b geography \u578b\u306f\uff0c\u5730\u7406\u5ea7\u6a19\u7cfb\u3092\u4f7f\u3063\u3066\u5b9a\u7fa9\u3055\u308c\u308b geometries \u3092\u84c4\u7a4d\u3059\u308b\u305f\u3081\u3060\u3051\u306b\u4f7f\u308f\u308c\u308b\uff0e\u4e21\u8005\u306e\u7a7a\u9593\u30c7\u30fc\u30bf\u578b\u306f\u5730\u7406\u5ea7\u6a19\u30c7\u30fc\u30bf\u3092\u84c4\u7a4d\u3059\u308b\u306e\u306b\u4f7f\u308f\u308c\u308b\u305f\u3081\uff0cgeography \u578b\u3092\u4f7f\u3063\u3066\u84c4\u7a4d\u3055\u308c\u305f\u3044\u304b\u306a\u308b\u30c7\u30fc\u30bf\u3067\u3082\uff0c\u4ee3\u308f\u308a\u306b geometry \u578b\u3092\u4f7f\u3063\u3066\u8868\u73fe\u3067\u304d\u308b\uff0e\u3057\u304b\u3057\uff0c\u4e8c\u3064\u306e\u30c7\u30fc\u30bf\u578b\u306e\u9593\u3067\u5909\u63db\u3059\u308b\u305f\u3081\u306b CAST \u95a2\u6570\u3084 CONVERT \u95a2\u6570\u3092\u7c21\u5358\u306b\u4f7f\u3046\u3053\u3068\u306f\u3067\u304d\u306a\u3044\uff0e\u4eee\u306b\u6b21\u306e\u30af\u30a8\u30ea\u3092\u8d70\u3089\u305b\u3066\u8a66\u3057\u3066\u307f\u3088\u3046\uff0e<\/p>\n<pre>DECLARE @geog geography\nSET @geog = geography::STGeomFromText('Point(23 32)',4326)\nSELECT CAST(@geog AS geometry)<\/pre>\n<p>\u3000\u3060\u304c\uff0c\u6b21\u306e\u30a8\u30e9\u30fc\u304c\u8fd4\u3063\u3066\u304f\u308b\u3060\u3051\u3060\uff0e<\/p>\n<pre>Msg 529, Level 16, State 2, Line 5\nExplicit conversion from data type sys.geography to sys.geometry is not allowed.<\/pre>\n<p>\u3000\u305d\u306e\u30a8\u30e9\u30fc\u8a18\u8ff0\u306f\uff0c\u9732\u9aa8\u306a\u5909\u63db\u304c\u8a31\u53ef\u3055\u308c\u3066\u3044\u306a\u3044\u3053\u3068\uff0c\u3064\u307e\u308a\uff0c\u305d\u308c\u305e\u308c\u306e\u30c7\u30fc\u30bf\u578b\u306e\u6271\u3044\u306e\u542b\u610f\u3092\u7406\u89e3\u3059\u308b\u306e\u3092\u78ba\u4fdd\u3059\u308b\u3088\u3046 SQL Server \u306b\u3088\u308a\u6545\u610f\u306e\u5236\u7d04\u304c\u8ab2\u305b\u3089\u308c\u3066\u3044\u308b\u3053\u3068\uff0c\u305d\u3057\u3066\uff0c\u610f\u56f3\u305b\u305a\u30c7\u30fc\u30bf\u3092\u4ea4\u63db\u3057\u306a\u3044\u3053\u3068\u306b\u6ce8\u610f\u3055\u308c\u305f\u3044\uff0e\u3057\u304b\u3057\u3053\u306e\u3088\u3046\u306a\u5834\u5408\u304c\u3042\u308b\uff0egeometry \u578b\u3067\u5229\u7528\u3067\u304d\u308b\u95a2\u6570\u304c\u5b58\u5728\u3057\u3066\uff0cgeography \u578b\u3092\u4f7f\u3063\u3066\u30c7\u30fc\u30bf\u304c\u84c4\u7a4d\u3055\u308c\u3066\u3044\u308b\u306e\u306b\u305d\u306e\u578b\u3067\u306f\u5229\u7528\u3067\u304d\u306a\u3044\u95a2\u6570\u304c\u3042\u308b\u5834\u5408\u306b\u306f\uff0c\u30c7\u30fc\u30bf\u578b\u76f8\u4e92\u9593\u3067\u306e\u30c7\u30fc\u30bf\u5909\u63db\u304c\u6709\u7528\u3067\u3042\u308b\uff0egeography \u578b\u304b\u3089 geometry \u578b\u3078\u5909\u63db\u3059\u308b\u305f\u3081\u306b\u306f\uff0c\u3069\u3061\u3089\u306e\u30c7\u30fc\u30bf\u578b\u306e\u30a2\u30a4\u30c6\u30e0\u306e\u5024\u3067\u3042\u3063\u3066\u3082\uff0c\u30d0\u30a4\u30ca\u30ea\u30fc\u30b9\u30c8\u30ea\u30fc\u30e0\u3068\u3057\u3066\u8868\u73fe\u3067\u304d\u308b\u3068\u3044\u3046\u4e8b\u5b9f\u3092\u4ee3\u308f\u308a\u306b\u6d3b\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\uff0e\u6b21\u306e\u4f8b\u3067\u306f\uff0cgeometry \u578b\u5909\u6570 @geom \u306f geography \u578b\u5909\u6570 @geog \u306e\u30d0\u30a4\u30ca\u30ea\u30fc\u30b9\u30c8\u30ea\u30fc\u30e0\u8868\u73fe\u306b\u57fa\u3065\u3044\u3066\u30bb\u30c3\u30c8\u3055\u308c\u308b\uff0e<\/p>\n<pre>DECLARE @geom geometry\nSET @geom = geometry::STGeomFromText('POINT(23 32)',4326)\nDECLARE @geog geography\nSET @geog = geography::STGeomFromWKB(@geom.STAsBinary(), @geom.STSrid)<\/pre>\n<p>\u3000\u3059\u3079\u3066\u306e geography \u578b\u306e\u30a2\u30a4\u30c6\u30e0\u304c geometry \u578b\u3068\u3057\u3066\u8868\u73fe\u3067\u304d\u308b\u4e00\u65b9\uff0c\u3059\u3079\u3066\u306e geometry \u578b\u306e\u30a2\u30a4\u30c6\u30e0\u304c geography \u578b\u3068\u3057\u3066\u8868\u73fe\u3067\u304d\u308b\u308f\u3051\u3067\u306f\u306a\u3044\uff0egeometry \u578b\u304b\u3089 geography \u578b\u306b\u5024\u3092\u5909\u63db\u3059\u308b\u305f\u3081\u306b\u306f\uff0c\u5b58\u5728\u3059\u308b geometry \u578b\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e x, y \u5ea7\u6a19\u5024\u306f\uff0c\u300c\u5fc5\u305a\u300d\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u308b\u6e2c\u5730\u7a7a\u9593\u53c2\u7167\u7cfb\u304b\u3089\u7def\u5ea6\u3068\u7d4c\u5ea6\u306e\u5ea7\u6a19\u3092\u53d6\u3089\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\uff0e\u307e\u305f\uff0c\u305d\u306e\u30c7\u30fc\u30bf\u306f\u5fc5\u305a geography \u578b\u306e\u5fc5\u8981\u3068\u3059\u308b\u4ed6\u306e\u5168\u3066\u306b\u5f93\u308f\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\uff0e\u4f8b\u3048\u3070\uff0c\u30ea\u30f3\u30b0\u306e\u65b9\u5411\u3084\u5927\u304d\u3055\u306e\u5236\u7d04\u306a\u3069\u3067\u3042\u308b\uff0e\u3053\u308c\u3089\u306e\u8a2d\u5b9a\u304c\u5168\u3066\u9069\u5408\u3057\u3066\u3044\u308c\u3070\uff0cgeometry \u578b\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9 @geom \u306e\u30d0\u30a4\u30ca\u30ea\u30fc\u8868\u73fe\u304b\u3089 geography \u578b\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9 @geog \u3092\u751f\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\uff0e<\/p>\n<pre>DECALRE @geom geometry\nSET @geom = geometry::STGeomFromText('POINT(23 32)',4326)\nDECLARE @geog geography\nSET @geog = geography::STGeomFromWKB(@geom.STAsBinary(), @geom.STSrid)<\/pre>\n<p>\u3000\u3057\u304b\u3057\u4eee\u306b\uff0c\u4f55\u3082\u84c4\u7a4d\u3057\u3066\u3044\u306a\u3044\u3068\u304b\uff0c\u6295\u5f71\u5ea7\u6a19\u7cfb\u304b\u3089\u306e\u6771\u5ea7\u6a19\u3060\u3051\u3068\u304b\uff0c\u3042\u308b\u3044\u306f\u4ed6\u306e\u975e\u6e2c\u5730\u30c7\u30fc\u30bf\u306e\u5834\u5408\uff0c\u305d\u308c\u306f geometry \u578b\u3067\u3057\u304b\u30c7\u30fc\u30bf\u3092\u84c4\u7a4d\u3067\u304d\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\uff0cgeography \u578b\u306b\u5909\u63db\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\uff0e<\/p>\n<p>\u6ce8\u610f\u3000geometry \u578b\u3068 geography \u578b\u306e\u9593\u3067\u7a7a\u9593\u30c7\u30fc\u30bf\u306e\u30a2\u30a4\u30c6\u30e0\u304c\u5909\u63db\u3055\u308c\u308b\u3088\u3046\u306a\u30b1\u30fc\u30b9\u3068\u3044\u3046\u306e\u306f\uff0c\u6bd4\u8f03\u7684\u307e\u308c\u3067\u3042\u308b\uff0e\u6280\u8853\u7684\u306b\u53ef\u80fd\u3067\u3042\u308b\u3068\u3057\u3066\u3082\uff0c\u5e38\u306b\u8ad6\u7406\u7684\u306b\u610f\u5473\u3092\u6210\u3059\u8a33\u3067\u306f\u306a\u3044\uff0e\u3082\u3057\u30c7\u30fc\u30bf\u578b\u306e\u9593\u3067\u5909\u63db\u3059\u308b\u5fc5\u8981\u3092\u611f\u3058\u305f\u306a\u3089\uff0c\u305d\u308c\u306f\u7a7a\u9593\u30c7\u30fc\u30bf\u306e\u3042\u306a\u305f\u306e\u8a2d\u8a08\u304c\u9593\u9055\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u793a\u5506\u3057\u3066\u3044\u308b\uff0e<\/p>\n<h3>\u30c6\u30fc\u30d6\u30eb\u3092\u7a7a\u9593\u7684\u306b\u6709\u52b9\u306b\u3059\u308b<\/h3>\n<p>\u3000\u9069\u5207\u306a\u7a7a\u9593\u30c7\u30fc\u30bf\u578b\u3092\u9078\u629e\u3057\u305f\u3089\uff0c\u7a7a\u9593\u30c7\u30fc\u30bf\u3092\u84c4\u7a4d\u3059\u308b\u8a08\u753b\u306e\u305f\u3081\u306b SQL Server \u306e\u30c6\u30fc\u30d6\u30eb\u306b\u5217\u3092\u8ffd\u52a0\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\uff0e\u4e8c\u3064\u306e\u65b9\u6cd5\u304c\u3042\u308b\uff0e\u65b0\u898f\u306b\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3059\u308b\u304b\uff0c\u65e2\u5b58\u306e\u30c6\u30fc\u30d6\u30eb\u306b\u65b0\u305f\u306b\u5217\u3092\u8ffd\u52a0\u3059\u308b\u304b\u3067\u3042\u308b\uff0e<\/p>\n<h4>\u30c6\u30fc\u30d6\u30eb\u306e\u65b0\u898f\u4f5c\u6210<\/h4>\n<p>\u3000SQL Server \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5185\u306b\u7a7a\u9593\u30c7\u30fc\u30bf\u306e\u84c4\u7a4d\u3092\u53ef\u80fd\u306b\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u306a\u7279\u6b8a\u306a\u5c5e\u6027\u3082\u6a5f\u80fd\u3082\u5b58\u5728\u3057\u306a\u3044\uff0e\u305f\u3060\u5fc5\u8981\u306a\u306e\u306f\uff0c\u6700\u4f4e\u4e00\u3064\u306e geography \u578b\u304b geometry \u578b\u306e\u5217\u3092\u542b\u3080\u3053\u3068\u3067\u3042\u308b\uff0egeography \u578b\u3082 geometry \u578b\u3082\u65e2\u306b\u767b\u9332\u6e08\u307f\u3067\u3042\u308b\u305f\u3081\uff0cT-SQL \u306e CREATE TABLE \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u4f7f\u3063\u3066geography \u578b\u304b geometry \u578b\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u542b\u3080\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3059\u308c\u3070\u3088\u3044\uff0e\u6b21\u306e\u901a\u308a\uff0e<\/p>\n<pre>CREATE TABLE [dbo].[Cities](\n[CityName] [varchar] (255) NOT NULL,\n[CityLocation] [geometry] NOT NULL\n)\nGO<\/pre>\n<p>\u3000\u3053\u306e\u4f8b\u3067\u306f\uff0c\u4e8c\u3064\u306e\u5217\uff0c\u3064\u307e\u308a CityName \u3068 CityLocation \u3092\u6301\u3064\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3057\u3066\u304a\u308a\uff0c\u524d\u8005\u306f 255 \u53ef\u5909\u9577\u6587\u5b57\u5217\u3092\u4fdd\u6301\u3057\uff0c\u5f8c\u8005\u306f\u305d\u306e\u90fd\u5e02\u306b\u95a2\u9023\u3059\u308b\u7a7a\u9593\u30c7\u30fc\u30bf\u3092\u4fdd\u6301\u3059\u308b\u306e\u306b\u4f7f\u308f\u308c\uff0cgeometry \u578b\u3067\u3042\u308b\uff0e<\/p>\n<h4>\u65e2\u5b58\u306e\u30c6\u30fc\u30d6\u30eb\u3078\u306e\u8ffd\u52a0<\/h4>\n<p>\u3000SQL Server \u306e\u7a7a\u9593\u6a5f\u80fd\u3092\u4f7f\u3046\u5229\u70b9\u306e\u4e00\u3064\u306f\u65b0\u3057\u3044 geometry \u578b\u307e\u305f\u306f geography \u578b\u306e\u5217\u3092\u65e2\u5b58\u306e\u30c6\u30fc\u30d6\u30eb\u306b\u8ffd\u52a0\u3067\u304d\u308b\u3053\u3068\u3067\u3042\u308a\uff0c\u7a7a\u9593\u60c5\u5831\u3092\u30b7\u30fc\u30e0\u30ec\u30b9\u306b\u65e2\u5b58\u306e\u30c7\u30fc\u30bf\u30a2\u30a4\u30c6\u30e0\u3068\u4e00\u7dd2\u306b\u96c6\u7a4d\u3067\u304d\u308b\u3053\u3068\u3067\u3042\u308b\uff0e<\/p>\n<p>\u3000\u65e2\u5b58\u306e\u30c6\u30fc\u30d6\u30eb Customer \u306f\u6b21\u306e\u9867\u5ba2\u60c5\u5831\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u6301\u3063\u3066\u3044\u308b\u3068\u4eee\u5b9a\u3059\u308b\uff0e<\/p>\n<pre>CustomerID int,\nFirstName varchar(50),\nSurname varchar(50),\nAddress varchar(50),\nPostcode varchar(10),\nCountry varchar(32)<\/pre>\n<p>\u3000\u4eca\u5ea6\u306f\u3053\u306e\u30c6\u30fc\u30d6\u30eb\u306b\u4ed8\u52a0\u7684\u306a\u7a7a\u9593\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u8ffd\u52a0\u3057\u3066\uff0c\u5404\u9867\u5ba2\u306e\u4f4f\u6240\u3092\u8a18\u9332\u3057\u305f\u3044\u3068\u4eee\u5b9a\u3059\u308b\uff0e\u7279\u306b\u554f\u984c\u306a\u304f\uff0cALTER TABLE \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u4f7f\u3063\u3066\u4ed6\u306e\u5168\u3066\u3068\u540c\u69d8\u306b geography \u578b\u3067\u3082 geometry \u578b\u3067\u3082\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u65e2\u5b58\u306e\u30c6\u30fc\u30d6\u30eb\u306b\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\uff0e\u6b21\u306e\u901a\u308a\u3067\u3042\u308b\uff0e<\/p>\n<pre>ALTER TABLE [dbo].[Customer]\nADD CustomerLocation geography\nGO<\/pre>\n<p>\u3000\u3053\u306e\u65b9\u6cd5\u3067\u30c6\u30fc\u30d6\u30eb\u3092\u62e1\u5f35\u3059\u308b\u3053\u3068\u306b\u3088\u308a\uff0c\u65e2\u5b58\u306e\u9867\u5ba2\u30c7\u30fc\u30bf\u3068\u5171\u306b\u7a7a\u9593\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3046\u3053\u3068\u304c\u53ef\u80fd\u3068\u306a\u308a\uff0c\u4f55\u540d\u306e\u9867\u5ba2\u304c\u78ba\u4fdd\u3057\u305f\u30a8\u30ea\u30a2\u5185\u90e8\u306b\u3044\u308b\u306e\u304b\uff0c\u3042\u308b\u7279\u5b9a\u306e\u9867\u5ba2\u304c\u6700\u3082\u8fd1\u3044\u5e97\u8217\u304b\u3089\u3069\u308c\u3060\u3051\u96e2\u308c\u305f\u3068\u3053\u308d\u306b\u4f4f\u3093\u3067\u3044\u308b\u306e\u304b\uff0c\u3068\u3044\u3046\u3088\u3046\u306a\u7591\u554f\u306b\u7b54\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\uff0e<\/p>\n<h4>\u5171\u901a SRID \u3092\u5f37\u5236\u3059\u308b<\/h4>\n<p>\u3000\u3042\u308b\u5730\u70b9\u306e\u5ea7\u6a19\u306f\u7a7a\u9593\u53c2\u7167\u7cfb\u304c\u4e0e\u3048\u3089\u308c\u305f\u6642\u306b\u306e\u307f\u610f\u5473\u3092\u306a\u3059\uff0eSQL Server 2008 \u306f\u540c\u4e00\u306e\u5217\u306e\u4e2d\u306b\u7570\u306a\u308b\u7a7a\u9593\u53c2\u7167\u7531\u6765\u306e\u30c7\u30fc\u30bf\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u84c4\u7a4d\u3059\u308b\u3053\u3068\u3092\u8a31\u53ef\u3057\u3066\u3044\u308b\u304c\uff0c\u6a5f\u80fd\u3092\u5b9f\u884c\u3059\u308b\u6642\u306b\u306f\uff0c\u3059\u3079\u3066\u306e\u7a7a\u9593\u30c7\u30fc\u30bf\u30a2\u30a4\u30c6\u30e0\u306f\u540c\u4e00\u306e\u7a7a\u9593\u53c2\u7167\u3092\u4f7f\u3063\u3066\u5b9a\u7fa9\u3055\u308c\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\uff08\u4f8b\u3048\u3070\u540c\u4e00\u306e SRID \u3092\u6301\u3064\u306a\u3069\uff09\uff0e\u7570\u306a\u308b\u7cfb\u7531\u6765\u306e\u5ea7\u6a19\u3092\u4f7f\u3063\u3066\u6f14\u7b97\u3092\u5b9f\u884c\u3057\u3088\u3046\u3068\u3059\u308b\u3053\u3068\u306f\uff0c\u7570\u306a\u308b\u901a\u8ca8\u306e\u91d1\u984d\u306e\u5408\u8a08\u3092\u7b97\u51fa\u3057\u3088\u3046\u3068\u3059\u308b\u3053\u3068\u306b\u4f8b\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u308b\uff0e<\/p>\n<p>25 \u30c9\u30eb\u8db3\u3059 12 \u30dd\u30f3\u30c9\u306f 37 &#8230; \u4f55\u3060\u3063\u3066\uff1f<\/p>\n<p>\u3000\u3053\u306e\u3088\u3046\u306a\u7121\u610f\u5473\u306a\u8a08\u7b97\u3092\u5076\u767a\u7684\u306b\u5b9f\u884c\u3057\u3066\u3057\u307e\u3046\u3053\u3068\u3092\u907f\u3051\u308b\u305f\u3081\uff0cSQL Server \u306f\u7570\u306a\u308b\u7a7a\u9593\u53c2\u7167\u7cfb\u3067\u5b9a\u7fa9\u3055\u308c\u305f\u30c7\u30fc\u30bf\u306e\u8a08\u7b97\u3092\u8a31\u53ef\u3057\u3066\u3044\u306a\u3044\uff0e\u3069\u3093\u306a\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066\u3082\uff0c\u304b\u304b\u308b\u7d50\u679c\u306f NULL \u306b\u306a\u308b\uff0e<\/p>\n<p>\u3000\u4eee\u306b\u5217\u5185\u306b\u4e00\u3064\u306e\u7279\u5b9a\u306e\u7a7a\u9593\u53c2\u7167\u7cfb\u3060\u3051\u306b\u57fa\u3065\u3044\u305f\u30c7\u30fc\u30bf\u3057\u304b\u84c4\u7a4d\u3057\u306a\u3044\u3068\u5206\u304b\u3063\u3066\u3044\u308b\u306a\u3089\uff0c\u305d\u306e\u5217\u306b\u5236\u7d04\u3092\u3064\u3051\u308b\u3053\u3068\u3067\u540c\u4e00\u306e SRID \u3092\u5168\u30a2\u30a4\u30c6\u30e0\u306b\u5f37\u5236\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\uff0e\u6b21\u306e\u3088\u3046\u306b\uff0cADD CONSTRAINT \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u4f7f\u7528\u3059\u308b\u3060\u3051\u3067\u3042\u308b\uff0e<\/p>\n<pre>ALTER TABLE [dbo].[Customer]\nADD CONSTRAINT [enforce_srid_geographycolumn]\nCHECK (CustomerLocation.STSrid = 4326)\nGO<\/pre>\n<p>\u3000\u3053\u306e\u4f8b\u3067\u306f enforce_srid_geographycolumn \u3068\u547c\u3070\u308c\u308b\u5236\u7d04\u6761\u4ef6\u3092\u3064\u3051\u305f\uff0e\u3053\u308c\u306f Customer \u30c6\u30fc\u30d6\u30eb\u306e CustomerLocation \u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u633f\u5165\u3055\u308c\u305f\u3059\u3079\u3066\u306e\u7a7a\u9593\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f SRID 4326 \u3092\u4f7f\u3046\u3088\u3046\u5b9a\u7fa9\u3059\u308b\u306e\u3092\u5f37\u5236\u3059\u308b\u3082\u306e\u3067\u3042\u308b\uff0e\u4eee\u306b\u7570\u306a\u308b SRID \u306b\u57fa\u3065\u304f geography\u00a0 \u578b\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u633f\u5165\u3057\u3088\u3046\u3068\u3059\u308b\u3068\uff0c\u6b21\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u3092\u53d7\u3051\u53d6\u308b\u3053\u3068\u306b\u306a\u308b\u3060\u308d\u3046\uff0e<\/p>\n<pre>Msg 547, Level 16, State 0, Line 1\nThe INSERT statement conflicted with the CHECK constraint\n\"enforce_srid_geographycolumn\".\nThe conflict occurred in database \"Spherical\",\ntable \"dbo.Customers\", Column \"CustomerLocation\".\nThe statement has been terminated.<\/pre>\n<p>\u3000\u7d50\u679c\u3068\u3057\u3066\uff0c\u3053\u306e\u5217\u7531\u6765\u306e\u3044\u304b\u306a\u308b\u4e8c\u3064\u306e\u30c7\u30fc\u30bf\u30a2\u30a4\u30c6\u30e0\u3092\u4f7f\u3063\u3066\u3082\u8a08\u7b97\u3092\u5b9f\u884c\u3067\u304d\u308b\u304c\uff0c\u305d\u308c\u306f\u540c\u4e00\u306e\u7a7a\u9593\u53c2\u7167\u7cfb\u306b\u57fa\u3065\u3044\u3066\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u77e5\u3063\u3066\u3044\u308b\u5834\u5408\u3067\u3042\u308b\uff0e<\/p>\n<h3>\u8981\u7d04<\/h3>\n<p>\u3000\u672c\u7ae0\u3067\u306f\uff0cSQL Server 2008 \u304c geometry \u578b\u304a\u3088\u3073 geography \u578b\u306e\u7a7a\u9593\u30c7\u30fc\u30bf\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u5b66\u3093\u3060\uff0e<\/p>\n<ul>\n<li>geography \u578b\u306f\u6e2c\u5730\u7a7a\u9593\u30c7\u30fc\u30bf\u3092\u4f7f\u3044\uff0c\u5730\u7403\u306e\u66f2\u7387\u3092\u8aac\u660e\u3059\u308b\uff0e<\/li>\n<li>geometry \u578b\u306f\u5e73\u9762\u306e\u7a7a\u9593\u30c7\u30fc\u30bf\u3092\u4f7f\u3044\uff0c\u305d\u3053\u3067\u306f\u5168\u3066\u306e\u30dd\u30a4\u30f3\u30c8\u304c\u5e73\u9762\u4e0a\u306b\u3042\u308b\uff0e<\/li>\n<li>\u9069\u6b63\u306a\u8fd1\u4f3c\u3092\u9078\u3076\u969b\u306b\u8003\u616e\u3059\u3079\u304d\u56e0\u5b50\u306f\u591a\u304f\u5b58\u5728\u3059\u308b\uff0e\u4e0e\u3048\u3089\u308c\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\uff0c\u7cbe\u5ea6\uff0c\u8868\u73fe\uff0c\u6a19\u6e96\u3078\u306e\u6e96\u62e0\u304a\u3088\u3073\u5b58\u5728\u3059\u308b\u3059\u3079\u3066\u306e\u30c7\u30fc\u30bf\u306e\u4e00\u8cab\u6027\u3067\u3042\u308b\uff0e<\/li>\n<li>\u5185\u90e8\u7684\u306b\u306f SQL Server \u306f\u7a7a\u9593\u30c7\u30fc\u30bf\u3092\u30d0\u30a4\u30ca\u30ea\u5024\u306e\u30b9\u30c8\u30ea\u30fc\u30e0\u3068\u3057\u3066\u84c4\u7a4d\u3059\u308b\uff0e<\/li>\n<li>\u65e2\u5b58\u306e\u30c6\u30fc\u30d6\u30eb\u306b\u7a7a\u9593\u30c7\u30fc\u30bf\u3092\u8ffd\u52a0\u3059\u308b\u306b\u306f ALTER TABLE \u3092\u4f7f\u3046\u304b\uff0cT-SQL \u69cb\u6587\u3067\u7a7a\u9593\u30c7\u30fc\u30bf\u3092\u6271\u3048\u308b\u30c6\u30fc\u30d6\u30eb\u3092 CREATE TABLE \u3092\u4f7f\u3063\u3066\u751f\u6210\u3059\u308b\uff0e<\/li>\n<li>\u7a7a\u9593\u30c7\u30fc\u30bf\u5217\u306b\u633f\u5165\u3059\u308b\u969b\u306b\u306f\uff0c\u78ba\u5b9f\u306b SRID \u3092\u6301\u3064\u30c7\u30fc\u30bf\u3060\u3051\u3092\u78ba\u4fdd\u3059\u308b\u3088\u3046\u5236\u7d04\u3092\u8ffd\u52a0\u3067\u304d\u308b\uff0e<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u3000\u524d\u7ae0\u3067\u306f\uff0c\u7a7a\u9593\u53c2\u7167\u7cfb\u306e\u80cc\u5f8c\u306b\u3042\u308b\u7406\u8ad6\u3092\u7d39\u4ecb\u3057\uff0c\u7570\u306a\u308b\u7a2e\u985e\u306e\u30b7\u30b9\u30c6\u30e0\u304c\u5730\u7403\u4e0a\u306e\u7279\u5fb4\u3092\u8a18\u8ff0\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u305f\uff0e\u672c\u7ae0\u3067\u306f\uff0c\u3053\u308c\u3089\u306e\u30b7\u30b9\u30c6\u30e0\u3092\u9069\u7528\u3057\u3066 SQL Server 2008 \u306b\u304a\u3051\u308b\u65b0\u3057\u3044\u7a7a\u9593\u30c7\u30fc\u30bf\u578b\u3092\u4f7f\u3063\u3066\u7a7a\u9593\u60c5\u5831 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.muscle-hypertrophy.com\/?p=11166\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u7b2c 2 \u7ae0\u3000SQL Server 2008 \u3067\u7a7a\u9593\u30c7\u30fc\u30bf\u3092\u5b9f\u88c5\u3059\u308b (Beginning Spatial with SQL Server 2008)&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[4605,7729,7565,4527,7907,7554,7457,7458,7180,7796,7892,7908,7911,7913,7910,7896,7893,7901,7912,7890,7891,7558,7875,6372,7752,7450,7766,7895,7919,2885,4673,4964,7587,7228,7724,7759,7155,7359,7765,7883,7882,7761,6745,7764,6743,7874,7749,7605,7223,7751,266,7719,7771,7853,7478,6744,467,7065,7465,7871,7872,7835,7834,7602,4652,4569,4548,7727,7854,7224,7762,7768,4672,7760,2740,7870,7757,7448,7898,7909,7753,7894,7897,7899,7453,7736,2872,5292,7914,7916,7915,7917,7758,7460,7407,7763,7888,7595,7889,7346,5123,7767,7311,7312,691,4205,7816,7845,2796,2498,7772,460,5480,7855,2783,7843,7868,7795,4848,7886,1090,7214,7902,7878,7153,443,7850,7851,462,656,7308,7861,4423,7905,32,2499,7793,7748,1811,7880,7728,7879,7841,3121,7717,7747,7315,664,7507,7243,5257,7635,7864,7887,4552,7667,5909,7314,7406,7813,1121,7238,1694,7817,4510,7774,7829,5303,7832,7840,7800,5301,5039,7808,7804,4006,2703,7814,7881,7846,5405,7247,7700,7833,5526,665,1275,7822,7779,7310,7287,7738,7780,7288,7797,2759,7318,7636,7791,4503,7873,7777,7830,7828,7876,7720,7799,7203,7374,5178,7805,7193,7837,7863,7274,7735,7197,3582,7442,7244,2764,3949,7265,7245,5673,7746,7847,7286,7781,1262,7187,7792,7776,7733,7801,7755,7726,7812,7798,7819,7784,7732,7271,7737,7731,7196,7824,7803,7734,7806,7810,7785,7275,7786,7848,7807,1027,2921,5581,5172,2487,7396,7103,7900,442,2637,7782,7794,7744,7740,7842,7844,7858,7885,7815,5934,7849,7309,7839,7743,7802,7821,7754,2929,7869,7400,7375,7434,7721,7884,7770,7769,7831,7756,7725,7320,7739,7809,7865,7742,4257,7906,7856,7305,7860,4598,388,7827,7194,7181,7730,7191,7445,7783,7838,713,3677,4016,7234,7231,7750,4017,7818,7790,7867,7859,7857,7820,7918,7836,6633,4716,7877,7852,4955,1288,7787,7741,7444,2495,4029,7862,4610,7826,4475,7317,7722,7775,6091,7745,7221,7823,7723,7773,7825,4717,3525,7903,7866,7788,7789,7811,7227,4364,4517,7778],"class_list":["post-11166","post","type-post","status-publish","format-standard","hentry","category-technology","tag-char","tag-net","tag-7565","tag-add","tag-add-constraint","tag-alter-table","tag-authority_name","tag-authorized_spatial_reference_id","tag-beginning-spatial-with-sql-server-2008","tag-cad","tag-cast","tag-check","tag-check-constraint","tag-column","tag-conflicted","tag-conversion","tag-convert","tag-create-table","tag-database","tag-datalength","tag-datetime","tag-dbo","tag-declare","tag-epsg","tag-error","tag-explicit","tag-explicit-conversion-from-data-type-sys-geography-to-sys-geometry-is-not-allowed","tag-float","tag-from","tag-geography","tag-geometry","tag-glargumentexception","tag-go","tag-google-earth","tag-hemisphere","tag-ieee-754-2008","tag-ieee","tag-input","tag-insert","tag-instance","tag-int","tag-km","tag-linestring","tag-linestrings","tag-metre","tag-microsoft","tag-money","tag-multipoint-geometry","tag-multipolygon-geometry","tag-national-grid-of-great-britain","tag-not-null","tag-null","tag-nvarchar","tag-ogc","tag-ogc-simple-features","tag-ogr-simple-feature-library","tag-ogr2ogr","tag-open-geospatial-consortium","tag-orientation","tag-point","tag-points","tag-polygon","tag-polygon-geometry","tag-polygons","tag-represent","tag-ring","tag-select","tag-specified","tag-sql-server","tag-sql-specification","tag-sqlserver","tag-srid","tag-stasbinary","tag-statement","tag-stdistance","tag-stgeomfromtext","tag-stgeomfromwkb","tag-stsrid","tag-sys","tag-sys-spatial_reference_syste","tag-t-sql","tag-table","tag-terminated","tag-the-conflict-occurred-in-database","tag-the-insert-statement-conflicted-with-the-check-constraint","tag-the-statement-has-been-terminated","tag-types","tag-unit_of_measure","tag-utm","tag-valid","tag-varbinarymax","tag-varchar","tag-varcharmax","tag-wgs-84","tag-where","tag-wrong","tag-x","tag-y","tag-691","tag-4205","tag-7816","tag-7845","tag-2796","tag-2498","tag-7772","tag-460","tag-5480","tag-7855","tag-2783","tag-7843","tag-7868","tag-7795","tag-4848","tag-7886","tag-1090","tag-7214","tag-7902","tag-7878","tag-7153","tag-443","tag-7850","tag-7851","tag-462","tag-656","tag-7308","tag-7861","tag-4423","tag-7905","tag-32","tag-2499","tag-7793","tag-7748","tag-1811","tag-7880","tag-7728","tag-7879","tag-7841","tag-3121","tag-7717","tag-7747","tag-7315","tag-664","tag-7507","tag-7243","tag-5257","tag-7635","tag-7864","tag-7887","tag-4552","tag-7667","tag-5909","tag-7314","tag-7406","tag-7813","tag-1121","tag-7238","tag-1694","tag-7817","tag-4510","tag-7774","tag-7829","tag-5303","tag-7832","tag-7840","tag-7800","tag-5301","tag-5039","tag-7808","tag-7804","tag-4006","tag-2703","tag-7814","tag-7881","tag-7846","tag-5405","tag-7247","tag-7700","tag-7833","tag-5526","tag-665","tag-1275","tag-7822","tag-7779","tag-7310","tag-7287","tag-7738","tag-7780","tag-7288","tag-7797","tag-2759","tag-7318","tag-7636","tag-7791","tag-4503","tag-7873","tag-7777","tag-7830","tag-7828","tag-7876","tag-7720","tag-7799","tag-7203","tag-7374","tag-5178","tag-7805","tag-7193","tag-7837","tag-7863","tag-7274","tag-7735","tag-7197","tag-3582","tag-7442","tag-7244","tag-2764","tag-3949","tag-7265","tag-7245","tag-5673","tag-7746","tag-7847","tag-7286","tag-7781","tag-1262","tag-7187","tag-7792","tag-7776","tag-7733","tag-7801","tag-7755","tag-7726","tag-7812","tag-7798","tag-7819","tag-7784","tag-7732","tag-7271","tag-7737","tag-7731","tag-7196","tag-7824","tag-7803","tag-7734","tag-7806","tag-7810","tag-7785","tag-7275","tag-7786","tag-7848","tag-7807","tag-1027","tag-2921","tag-5581","tag-5172","tag-2487","tag-7396","tag-7103","tag-7900","tag-442","tag-2637","tag-7782","tag-7794","tag-7744","tag-7740","tag-7842","tag-7844","tag-7858","tag-7885","tag-7815","tag-5934","tag-7849","tag-7309","tag-7839","tag-7743","tag-7802","tag-7821","tag-7754","tag-2929","tag-7869","tag-7400","tag-7375","tag-7434","tag-7721","tag-7884","tag-7770","tag-7769","tag-7831","tag-7756","tag-7725","tag-7320","tag-7739","tag-7809","tag-7865","tag-7742","tag-4257","tag-7906","tag-7856","tag-7305","tag-7860","tag-4598","tag-388","tag-7827","tag-7194","tag-7181","tag-7730","tag-7191","tag-7445","tag-7783","tag-7838","tag-713","tag-3677","tag-4016","tag-7234","tag-7231","tag-7750","tag-4017","tag-7818","tag-7790","tag-7867","tag-7859","tag-7857","tag-7820","tag-7918","tag-7836","tag-6633","tag-4716","tag-7877","tag-7852","tag-4955","tag-1288","tag-7787","tag-7741","tag-7444","tag-2495","tag-4029","tag-7862","tag-4610","tag-7826","tag-4475","tag-7317","tag-7722","tag-7775","tag-6091","tag-7745","tag-7221","tag-7823","tag-7723","tag-7773","tag-7825","tag-4717","tag-3525","tag-7903","tag-7866","tag-7788","tag-7789","tag-7811","tag-7227","tag-4364","tag-4517","tag-7778"],"_links":{"self":[{"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=\/wp\/v2\/posts\/11166","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=11166"}],"version-history":[{"count":167,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=\/wp\/v2\/posts\/11166\/revisions"}],"predecessor-version":[{"id":16634,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=\/wp\/v2\/posts\/11166\/revisions\/16634"}],"wp:attachment":[{"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11166"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11166"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11166"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}