{"id":16525,"date":"2023-01-12T06:00:00","date_gmt":"2023-01-11T21:00:00","guid":{"rendered":"https:\/\/www.muscle-hypertrophy.com\/?p=16525"},"modified":"2022-11-02T15:05:40","modified_gmt":"2022-11-02T06:05:40","slug":"%e7%ac%ac14%e7%ab%a0%e3%80%80%e3%82%a4%e3%83%b3%e3%83%87%e3%83%83%e3%82%af%e3%82%b9%e4%bd%9c%e6%88%90-beginning-spatial-with-sql-server-2008","status":"publish","type":"post","link":"https:\/\/www.muscle-hypertrophy.com\/?p=16525","title":{"rendered":"\u7b2c14\u7ae0\u3000\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u4f5c\u6210 (Beginning Spatial with SQL Server 2008)"},"content":{"rendered":"\n<p>\u3000\u52b9\u7387\u7684\u306a\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u4f5c\u6210\u306f\uff0c\u8fc5\u901f\u304b\u3064\u52b9\u7387\u7684\u306b\u7d50\u679c\u3092\u63a2\u7d22\u3059\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u91cd\u8981\u3067\u3042\u308b\uff0e\u7a7a\u9593\u30c7\u30fc\u30bf\u3092\u84c4\u7a4d\u3059\u308b\u305f\u3081\u306b\u30c7\u30b6\u30a4\u30f3\u3055\u308c\u308b geometry \u578b\u304a\u3088\u3073 geography \u578b\u306b\u52a0\u3048\u3066\uff0cSQL Server 2008 \u306f\u307e\u305f\u7a7a\u9593\u30c7\u30fc\u30bf\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306e\u65b0\u3057\u3044\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u578b\u3092\u542b\u3093\u3067\u304a\u308a\uff0c\u305d\u308c\u306f\uff08\u9a5a\u304f\u3079\u304d\u3053\u3068\u3067\u3082\u306a\u3044\u304c\uff09\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3068\u547c\u3070\u308c\u308b\uff0e\u672c\u7ae0\u3067\u306f\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u3069\u306e\u3088\u3046\u306b\u52d5\u4f5c\u3057\uff0c\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f7f\u3063\u3066\u7a7a\u9593\u30af\u30a8\u30ea\u306e\u901f\u5ea6\u3092\u3069\u306e\u3088\u3046\u306b\u6539\u5584\u3059\u308b\u304b\u8aac\u660e\u3059\u308b\uff0e<\/p>\n<p>\u4ed8\u8a18\u3000SQL Server \u306e\u6c4e\u7528\u30af\u30e9\u30b9\u30bf\u30fc\u5316\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304a\u3088\u3073\u975e\u30af\u30e9\u30b9\u30bf\u30fc\u5316\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306f\u591a\u304f\u306e\u7570\u306a\u308b\u30c7\u30fc\u30bf\u578b\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f5c\u6210\u3059\u308b\u306e\u306b\u4f7f\u308f\u308c\uff0c\u305d\u3053\u306b\u306f int \u578b\uff0cchar \u578b\u304a\u3088\u3073 datetime \u578b\u3092\u4f7f\u3063\u3066\u84c4\u7a4d\u3055\u308c\u308b\u5024\u3092\u542b\u3093\u3067\u3044\u308b\uff0e\u3057\u304b\u3057\uff0c\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306fgeometry \u578b\u304a\u3088\u3073 geography \u578b\u306e\u5217\u306e\u4e0a\u3067\u3057\u304b\u4f5c\u6210\u3055\u308c\u305a\uff0c\u3053\u308c\u3089\u306e\u30c7\u30fc\u30bf\u578b\u306e\u5217\u306b\u306e\u307f\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306f\u8ffd\u52a0\u3067\u304d\u308b\uff0e<\/p>\n<p><!--more--><\/p>\n<h3>\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306f\u4f55\u3092\u3057\u3066\u3044\u308b\u306e\u304b\uff1f<\/h3>\n<p>\u3000\u7a7a\u9593\u64cd\u4f5c\u306f\u8907\u96d1\u3067\uff0c\u5b9f\u884c\u306b\u306f\u81a8\u5927\u306a\u8a08\u7b97\u8cc7\u6e90\u3092\u8981\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\uff0e\u3053\u308c\u306f\uff0c\u4f8b\u3048\u307013\u7ae0\u3067\u8ff0\u3079\u305f\u3088\u3046\u306a\uff0c\uff12\u3064\u306e\u30b8\u30aa\u30e1\u30c8\u30ea\u9593\u306e\u95a2\u4fc2\u3092\u6bd4\u8f03\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3046\u6642\u306b\u7279\u306b\u771f\u3067\u3042\u308a\uff0c\u305d\u308c\u306f\uff0c\u3053\u308c\u3089\u306e\u30e1\u30bd\u30c3\u30c9\u304c\u4e21\u30b8\u30aa\u30e1\u30c8\u30ea\u306e\u70b9\u96c6\u5408\u306b\u542b\u307e\u308c\u308b\u5404\u70b9\u9593\u306e\u95a2\u4fc2\u306e\u8a55\u4fa1\u306b\u4f9d\u5b58\u3057\u3066\u3044\u308b\u305f\u3081\u3067\u3042\u308b\uff0e2\u3064\u306e\u8907\u96d1\u306a\u30b8\u30aa\u30e1\u30c8\u30ea\u306e\u8a55\u4fa1\u306b\u4f7f\u308f\u308c\u305f\u5834\u5408\uff0c\u3053\u308c\u3089\u306e\u30e1\u30bd\u30c3\u30c9\u306f\u6c42\u3081\u308b\u7d50\u679c\u3092\u53d6\u5f97\u3059\u308b\u524d\u306b\u500b\u5225\u306e\u8a08\u7b97\u3092\u6570\u5343\u3082\u306e\u5b9f\u884c\u306b\u5dfb\u304d\u8fbc\u3080\u53ef\u80fd\u6027\u304c\u3042\u308b\uff0e\u305d\u308c\u3086\u3048\uff0c\u9ad8\u4fa1\u306a\u30e1\u30bd\u30c3\u30c9\u3067\u3042\u308b STIntersects(), STDistance() \u304a\u3088\u3073 STContains() \u3092\u547c\u3076\u969b\u306b\u306f\u53ef\u80fd\u306a\u9650\u308a\uff0c\u6642\u9593\u3092\u77ed\u7e2e\u3059\u308b\u65b9\u6cd5\u3092\u898b\u3064\u3051\u308b\u3088\u3046\u52aa\u3081\u308b\u3079\u304d\u3067\u3042\u308b\uff0e<\/p>\n<p>\u3000\u4f8b\u3048\u3070\uff0cVineyards \u3068\u3044\u3046\u30c6\u30fc\u30d6\u30eb\u304c\u3042\u308a\uff0c\u4e16\u754c\u306e\u30d6\u30c9\u30a6\u5712\u3092\u8868\u73fe\u3059\u308b Polygon \u30b8\u30aa\u30e1\u30c8\u30ea\u3092\u542b\u3093\u3067\u3044\u308b\u3068\u8003\u3048\u3066\u307f\u308b\uff0e\u30d5\u30e9\u30f3\u30b9\u306e\u30b7\u30e3\u30f3\u30d1\u30fc\u30cb\u30e5\u5730\u65b9\u306b\u4f4d\u7f6e\u3059\u308b\u30d6\u30c9\u30a6\u5712\u3092\u8b58\u5225\u3057\u305f\u3044\u306a\u3089\uff0c\u6b21\u306e\u3088\u3046\u306a STWithin() \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u305f\u30af\u30a8\u30ea\u3092\u66f8\u304f\u3060\u308d\u3046\uff08\u5909\u6570 @Champagne \u306f\u30b7\u30e3\u30f3\u30d1\u30fc\u30cb\u30e5\u5730\u65b9\u3092\u8868\u73fe\u3059\u308b Polygon \u30b8\u30aa\u30e1\u30c8\u30ea\u3067\u3042\u308b\u3068\u4eee\u5b9a\u3059\u308b\uff09\uff0e<\/p>\n<pre>SELECT\n  VineyardName\nFROM\n  Vineyards\nWHERE\n  VineyardGeometry.STWithin(@Champagne)<\/pre>\n<p>\u3000\u3053\u306e\u30af\u30a8\u30ea\u306f\uff0c\u3059\u3079\u3066\u306e\u30d6\u30c9\u30a6\u5712\u3092\u8868\u73fe\u3059\u308b Plygon \u30b8\u30aa\u30e1\u30c8\u30ea\u3068\u30b7\u30e3\u30f3\u30d1\u30fc\u30cb\u30e5\u5730\u65b9\u3092\u8868\u73fe\u3059\u308b Polygon \u30b8\u30aa\u30e1\u30c8\u30ea\u3068\u3092\u6bd4\u8f03\u3059\u308b\u305f\u3081\u306b\u8a08\u7b97\u8cc7\u6e90\u306e\u9ad8\u4fa1\u306a STWithin() \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066 Vineyards \u30c6\u30fc\u30d6\u30eb\u5185\u306e\u30c7\u30fc\u30bf\u5168\u884c\u3092\u691c\u8a3c\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\uff0e\u4eca\uff0c\u6211\u3005\u306f\u3044\u304f\u3064\u304b\u306e\u30d6\u30c9\u30a6\u5712\uff0c\u4f8b\u3048\u3070\u30aa\u30fc\u30b9\u30c8\u30e9\u30ea\u30a2\u306e\u30d0\u30ed\u30c3\u30b5\u30d0\u30ec\u30fc\u306b\u3042\u308b Jacob&#8217;s Creek \u3084\u30ab\u30ea\u30d5\u30a9\u30eb\u30cb\u30a2\u306e\u30ca\u30d1\u30d0\u30ec\u30fc\u306b\u3042\u308b\u305d\u308c\u3089\u3092\u77e5\u3063\u3066\u3044\u308b\u304c\uff0c\u660e\u3089\u304b\u306b\u30d5\u30e9\u30f3\u30b9\u306e\u30b7\u30e3\u30f3\u30d1\u30fc\u30cb\u30e5\u5730\u65b9\u306b\u306f\u306a\u3044\uff0e\u3057\u304b\u3057\uff0cSQL Server \u306f\u3053\u306e\u3088\u3046\u306a\u5e38\u8b58\u3092\u9069\u7528\u3067\u304d\u306a\u3044\u305f\u3081\uff0cSTWIthin() \u3092\u4f7f\u3063\u3066\u7d50\u679c\u306b\u542b\u3081\u308b\u3079\u304d\u304b\u3069\u3046\u304b\u78ba\u8a8d\u3059\u308b\u305f\u3081\uff0c\u3059\u3079\u3066\u306e\u30b8\u30aa\u30e1\u30c8\u30ea\u306e\u4ea4\u5dee\u306e\u8a55\u4fa1\u3092\u884c\u308f\u306a\u304f\u3066\u306f\u306a\u3089\u306a\u3044\uff0e\u3053\u308c\u306f\u591a\u5927\u306a\u52b4\u529b\u3067\u3042\u308a\uff0c\u305d\u3057\u3066\u5b9f\u884c\u3059\u308b\u306b\u306f\u9045\u304f\uff0c\u9aa8\u306e\u6298\u308c\u308b\u30af\u30a8\u30ea\u3068\u306a\u308b\u3060\u308d\u3046\uff0e<\/p>\n<p>\u3000\u3053\u306e\u30af\u30a8\u30ea\u3092\u3082\u3063\u3068\u52b9\u7387\u7684\u306b\u5b9f\u884c\u3059\u308b\u306b\u306f\uff0c\u6b63\u3057\u3044\u5730\u57df\u5185\uff0c\u3044\u308f\u3070\u6b63\u3057\u3044\u7403\u5834\u306b\u6700\u9069\u306b\u4f4d\u7f6e\u3059\u308b\u6211\u3005\u306e\u77e5\u308b\u305d\u308c\u3089\u306e\u884c\u306e\u307f\u3067 STWithin() \u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u3067\uff0c\u6211\u3005\u306f\u6700\u521d\u306b\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u7d5e\u308a\u8fbc\u3080\u5fc5\u8981\u304c\u3042\u308b\uff0e\u3053\u3053\u3067\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u5165\u3063\u3066\u304f\u308b\uff0e<\/p>\n<p>\u3000\u7a7a\u9593\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3059\u308b\u6642\uff0cSQL Server \u306f\u7d50\u679c\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306b\u4e8c\u6bb5\u968e\u30af\u30a8\u30ea\u30e2\u30c7\u30eb\u3092\u4f7f\u3044\uff0c\u3053\u308c\u306f2\u3064\u306e\u30d5\u30a3\u30eb\u30bf\u30fc\u306b\u95a2\u9023\u3057\u3066\u3044\u308b\uff0e<\/p>\n<ul>\n<li>\u4e00\u6b21\u30d5\u30a3\u30eb\u30bf\u30fc\uff1a\u901f\u304f\uff0c\u6f5c\u5728\u7684\u306a\u5019\u88dc\u30ec\u30b3\u30fc\u30c9\u3092\u9078\u629e\u3057\u4e8c\u6b21\u30d5\u30a3\u30eb\u30bf\u30fc\u306b\u6e21\u3059\u306e\u306b\u6700\u9069\u306a\u30af\u30a8\u30ea\uff0e\u4e00\u6b21\u30d5\u30a3\u30eb\u30bf\u30fc\u306b\u3088\u308a\u8fd4\u308b\u5019\u88dc\u30bb\u30c3\u30c8\u306f\u5b9f\u969b\u306e\u7d50\u679c\u30bb\u30c3\u30c8\u306e\u30b9\u30fc\u30d1\u30fc\u30bb\u30c3\u30c8\u3067\u3042\u308b\uff0e\u3064\u307e\u308a\uff0c\u7d50\u679c\u306b\u51fa\u73fe\u3059\u3079\u304d\u3059\u3079\u3066\u306e\u5024\u3092\u542b\u3080\u3053\u3068\u304c\u4fdd\u8a3c\u3055\u308c\u3066\u3044\u308b\u4e00\u65b9\uff0c\u8ffd\u52a0\u306e\u30ec\u30b3\u30fc\u30c9\u3092\u542b\u3080\u53ef\u80fd\u6027\u304c\u3042\u308b\uff0e\u3053\u308c\u3089\u201d\u507d\u967d\u6027\u201d\u306e\u7d50\u679c\u306f\u4e8c\u6b21\u30d5\u30a3\u30eb\u30bf\u30fc\u3067\u9664\u5916\u3055\u308c\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\uff0e<\/li>\n<li>\u4e8c\u6b21\u30d5\u30a3\u30eb\u30bf\u30fc\uff1a\u6b63\u78ba\u306a\uff0c\u3057\u304b\u3057\u8a08\u7b97\u30b3\u30b9\u30c8\u306e\u9ad8\u4fa1\u306a\uff08\u305d\u3057\u3066\u305d\u308c\u3086\u3048\u5b9f\u884c\u3059\u308b\u306b\u306f\u9045\u3044\uff09\u30af\u30a8\u30ea\u3067\uff0c\u554f\u984c\u306b\u3057\u3066\u3044\u308b\u30af\u30a8\u30ea\u306b\u3088\u308a\u8981\u6c42\u3055\u308c\u305f\u771f\u306e\u7d50\u679c\u30bb\u30c3\u30c8\u306b\u7df4\u308a\u4e0a\u3052\u308b\u305f\u3081\uff0c\u4e00\u6b21\u30d5\u30a3\u30eb\u30bf\u30fc\u3067\u8b58\u5225\u3055\u308c\u305f\u5019\u88dc\u7d50\u679c\u306e\u4e0a\u3067\u52d5\u4f5c\u3059\u308b\uff0e<\/li>\n<\/ul>\n<p>\u3000\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u7a7a\u9593\u30c7\u30fc\u30bf\u306e\u5217\u4e0a\u306b\u5b58\u5728\u3059\u308b\u6642\uff0c\u305d\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306f\u7a7a\u9593\u30af\u30a8\u30ea\u306e\u305f\u3081\u306e\u4e00\u6b21\u30d5\u30a3\u30eb\u30bf\u30fc\u3068\u3057\u3066\u4f7f\u308f\u308c\uff0c\u6700\u9069\u306a\u5019\u88dc\u7d50\u679c\u30bb\u30c3\u30c8\u3092\u8fc5\u901f\u306b\u8b58\u5225\u3059\u308b\u305f\u3081\u306b\u30c7\u30b6\u30a4\u30f3\u3055\u308c\u3066\u3044\u308b\uff0e\u305d\u3046\u3059\u308b\u3053\u3068\u3067\uff0c\u5408\u81f4\u3059\u308b\u30ec\u30b3\u30fc\u30c9\u6570\u3092\u524a\u6e1b\u3057\uff0c\u3088\u308a\u9045\u304f\u6b63\u78ba\u306a\u4e8c\u6b21\u30d5\u30a3\u30eb\u30bf\u30fc\u306b\u3088\u308a\u691c\u8a3c\u3055\u308c\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\uff0e\u4e8c\u6b21\u30d5\u30a3\u30eb\u30bf\u30fc\u306e\u7d50\u679c\u306f\uff0c\u30af\u30a8\u30ea\u306b\u3088\u308a\u8981\u6c42\u3055\u308c\u308b\u6b63\u78ba\u306a\u7d50\u679c\u3092\u8fd4\u3059\u306e\u3060\u304c\uff0c\u4e00\u6b21\u30d5\u30a3\u30eb\u30bf\u30fc\u306b\u3088\u308a\u8b58\u5225\u3055\u308c\u305f\u7d50\u679c\u30bb\u30c3\u30c8\u3092\uff0c\u76f8\u5f53\u3059\u308b\u7a7a\u9593\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u5f97\u3089\u308c\u308b\uff0e\u5148\u306b\u4e0e\u3048\u3089\u308c\u305f\u4f8b\u3067\u306f\uff0c\u4e8c\u6b21\u30d5\u30a3\u30eb\u30bf\u30fc\u306f\u3086\u3048\u306b STWithin() \u30e1\u30bd\u30c3\u30c9\u3067\u3042\u308b\uff0e<\/p>\n<p>\u3000\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u5b58\u5728\u3057\u306a\u3044\u6642\uff0c\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u4e00\u6b21\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u304c\u8d77\u3053\u3089\u306a\u3044\u305f\u3081\uff0c\u3088\u308a\u9045\u3044\u4e8c\u6b21\u30d5\u30a3\u30eb\u30bf\u30fc\u304c\u30bd\u30fc\u30b9\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u5168\u884c\u306b\u9069\u7528\u3055\u308c\uff0c\u305d\u308c\u306f\u975e\u5e38\u306b\u9ad8\u4fa1\u3067\u3042\u308b\uff0e<\/p>\n<h3>\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306f\u3069\u3046\u52d5\u4f5c\u3057\u3066\u3044\u308b\u306e\u304b\uff1f<\/h3>\n<p>\u3000\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u76ee\u7684\u3092\u7406\u89e3\u3057\u305f\u4eca\uff0c\u30af\u30a8\u30ea\u306e\u7d50\u679c\u306b\u4e00\u6b21\u30d5\u30a3\u30eb\u30bf\u30fc\u3092\u5b9f\u884c\u3059\u308b\u7a7a\u9593\u30c7\u30fc\u30bf\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u4f5c\u6210\u306b\u3064\u3044\u3066\u3069\u3046\u884c\u304f\u304b\u6238\u60d1\u3063\u3066\u3044\u308b\u304b\u3082\u3057\u308c\u306a\u3044\uff0e\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u8a18\u8ff0\u306f\uff08\u3069\u306e\u7a2e\u985e\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3067\u3082\u540c\u69d8\u3060\u304c\uff09\u7279\u5b9a\u306e\u7a7a\u9593\u30af\u30a8\u30ea\u306e\u305f\u3081\u306e\u7d50\u679c\u5019\u88dc\u30bb\u30c3\u30c8\u3092\u8fc5\u901f\u306b\u8b58\u5225\u3057\u3066\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u305f\u3081\uff0c\u4f55\u3089\u304b\u306e\u8ad6\u7406\u9806\u306b\u30bd\u30fc\u30c8\u3055\u308c\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\uff0e\u6b21\u306e\u30c7\u30fc\u30bf\u578b\u304b\u3089\u306e\u5024\u304c\u3069\u306e\u3088\u3046\u306b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u5185\u3067\u9806\u5e8f\u4ed8\u3051\u3089\u308c\u308b\u304b\u8003\u3048\u3066\u307f\u3088\u3046\uff0e<\/p>\n<ul>\n<li>int, money, decimal \u3042\u308b\u3044\u306f float \u578b\u3092\u4f7f\u3063\u3066\u84c4\u7a4d\u3055\u308c\u305f\u5024\u306f\u6570\u5024\u9806\u306b\u84c4\u7a4d\u3055\u308c\u308b\uff0e<\/li>\n<li>char \u3042\u308b\u3044\u306f varchar \u578b\u3092\u4f7f\u3063\u3066\u84c4\u7a4d\u3055\u308c\u305f\u5024\u306f\uff08Unicode \u76f8\u5f53\u3067\u306f\u305d\u308c\u305e\u308c nchar \u3042\u308b\u3044\u306f nvarchae \u578b\uff09\u7167\u5408\u9806\u5e8f\u306e\u9806\u3067\uff08\u5927\u62b5\u306f\u30a2\u30eb\u30d5\u30a1\u30d9\u30c3\u30c8\u9806\uff09\u30bd\u30fc\u30c8\u3055\u308c\u308b\uff0e<\/li>\n<li>datetime \u578b\u3092\u4f7f\u3063\u3066\u84c4\u7a4d\u3055\u308c\u305f\u5024\u306f\u5e74\u4ee3\u9806\u306b\u30bd\u30fc\u30c8\u3055\u308c\u308b\uff0e<\/li>\n<\/ul>\n<p>\u3000\u3067\u306f\uff0c\u7a7a\u9593\u5185\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u4f4d\u7f6e\u3092\u5b9a\u7fa9\u3059\u308b geometry \u578b\u304a\u3088\u3073 geography \u578b\u306e\u5024\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306f\u3069\u3046\u3084\u3063\u3066\u4f5c\u6210\u3059\u308b\u306e\u3060\u308d\u3046\u304b\uff1fSQL Server 2008 \u3067\u4f7f\u308f\u308c\u308b\u89e3\u6c7a\u6cd5\u306f\uff08\u3044\u304f\u3064\u304b\u306e\u4ed6\u306e\u7a7a\u9593\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u3082\u305d\u3046\u3060\u304c\uff09\u30b8\u30aa\u30e1\u30c8\u30ea\u306e\u5b58\u5728\u3059\u308b\u7a7a\u9593\u306e\u30a8\u30ea\u30a2\u306b\u307e\u305f\u304c\u308b\u30b0\u30ea\u30c3\u30c9\u30b7\u30b9\u30c6\u30e0\u3092\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u3067\uff0c\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3055\u308c\u305f\u5404\u5730\u7269\u306f\u4e00\u3064\u4ee5\u4e0a\u306e\u30b0\u30ea\u30c3\u30c9\u5185\u306e\u30bb\u30eb\u3068\u4ea4\u5dee\u3059\u308b\uff0e\u305d\u306e\u30b0\u30ea\u30c3\u30c9\u30bb\u30eb\u306f\u8ad6\u7406\u7684\u306b\u914d\u7f6e\u3055\u308c\u9806\u5e8f\u4ed8\u3051\u3089\u308c\u3066\u304a\u308a\uff0c\u5404\u5730\u7269\u3092\u8a18\u8ff0\u3059\u308b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u8a18\u8ff0\u306f\u305d\u306e\u30b8\u30aa\u30e1\u30c8\u30ea\u306e\u4ea4\u5dee\u3059\u308b\u30b0\u30ea\u30c3\u30c9\u30bb\u30eb\u3078\u306e\u53c2\u7167\u3092\u84c4\u7a4d\u3059\u308b\uff0e\u66f4\u306b\u8a73\u3057\u304f\u3053\u306e\u6982\u5ff5\u3092\u8aac\u660e\u3059\u308b\u305f\u3081\uff0c\u5358\u7d14\u306a\u4f8b\u3092\u793a\u305d\u3046\uff0eFigure 14-1 \u306b\u56f3\u793a\u3057\u305f\u30b8\u30aa\u30e1\u30c8\u30ea\u3092\u8003\u3048\u3066\u307f\u3088\u3046\uff0e<\/p>\n<p>\u3000\u4eca\u5ea6\u306f\u3053\u306e\u30b8\u30aa\u30e1\u30c8\u30ea\u306e\u4e0a\u306b 4 \u00d7 4 \u306e\u6b63\u65b9\u5f62\u306e\u30b0\u30ea\u30c3\u30c9\u30bb\u30eb\u3092\u88ab\u305b\u3088\u3046\u3068\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u8003\u3048\u3066\u307f\u3088\u3046\uff0e\u305d\u306e\u30b0\u30ea\u30c3\u30c9\u306e\u305d\u308c\u3089\u306e\u30bb\u30eb\u306f\u5de6\u304b\u3089\u53f3\uff0c\u4e0a\u304b\u3089\u4e0b\u306e\u9806\u306b\u30ca\u30f3\u30d0\u30ea\u30f3\u30b0\u3055\u308c\u3066\u304a\u308a\uff0c\u5de6\u4e0a\u306e\u30b3\u30fc\u30ca\u30fc\u306b\u3042\u308b\u30bb\u30eb 1 \u304b\u3089\u59cb\u307e\u3063\u3066\u5897\u52a0\u3057\uff0c\u53f3\u4e0b\u30b3\u30fc\u30ca\u30fc\u306b\u3042\u308b\u30bb\u30eb 16 \u3067\u7d42\u308f\u308b\uff0e\u3053\u308c\u3092 Figure 14-2 \u306b\u793a\u3059\uff0e<\/p>\n<p>\u4ed8\u8a18\u3000\u5404\u30b0\u30ea\u30c3\u30c9\u30bb\u30eb\u3078\u306e\u53c2\u7167\u3092\u5272\u308a\u632f\u308b SQL Server \u3067\u4f7f\u308f\u308c\u308b\u5b9f\u969b\u306e\u30ca\u30f3\u30d0\u30ea\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u306f\u3053\u3053\u3067\u8ff0\u3079\u305f\u3088\u308a\u3082\u3063\u3068\u8907\u96d1\u3067\u3042\u308a\uff0c\u30d2\u30eb\u30d9\u30eb\u30c8\u66f2\u7dda\u30e2\u30c7\u30eb\u306b\u57fa\u3065\u304f\uff0e\u3057\u304b\u3057\uff0c\u56f3\u793a\u306e\u76ee\u7684\u306e\u305f\u3081\u5358\u7d14\u306a\u5897\u5206\u30ca\u30f3\u30d0\u30ea\u30f3\u30b0\u3092\u7528\u3044\u308b\uff0e<\/p>\n<p>\u3000Figure 14-2 \u306b\u793a\u3057\u305f\u30b8\u30aa\u30e1\u30c8\u30ea\u306f\u5f71\u3092\u3064\u3051\u305f\u30bb\u30eb 2, 3, 4, 5, 6, 7, 9, 10, 11, 14, 15 \u3068\u4ea4\u5dee\u3059\u308b\uff0e\u305d\u308c\u3089 10 \u500b\u306e\u30bb\u30eb\u306f\u3053\u306e\u30b8\u30aa\u30e1\u30c8\u30ea\u306e\u62e1\u5f35\u3092\u8a18\u8ff0\u3059\u308b\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u8a18\u8ff0\u3092\u5f62\u4f5c\u308b\u3082\u306e\u3092\u53c2\u7167\u3059\u308b\uff0e\u3053\u306e\u5358\u7d14\u306a\u30e2\u30c7\u30eb\u306b\u57fa\u3065\u3044\u3066\u3055\u3048\uff0c\u3053\u306e\u30b0\u30ea\u30c3\u30c9\u30bb\u30eb\u306e\u30ea\u30b9\u30c8\u306f\u7a7a\u9593\u30af\u30a8\u30ea\u306e\u7279\u5b9a\u306e\u7a2e\u985e\u306e\u4e00\u6b21\u30d5\u30a3\u30eb\u30bf\u30fc\u3068\u3057\u3066\u4f7f\u308f\u308c\u308b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f5c\u6210\u3059\u308b\u306e\u306b\u5341\u5206\u306a\u60c5\u5831\u3092\u63d0\u4f9b\u3059\u308b\uff0e\u4f8b\u3048\u3070\uff0c\u30bb\u30eb 12 \u306e\u3069\u3053\u304b\u306b\u4f4d\u7f6e\u3059\u308b Point \u304c\u56f3\u793a\u3055\u308c\u305f\u30b8\u30aa\u30e1\u30c8\u30ea\u5185\u306b\u542b\u307e\u308c\u308b\u304b\u3069\u3046\u304b\u3092 STWithin() \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066\u5b9a\u7fa9\u3057\u305f\u3044\u3068\u3057\u3088\u3046\uff08\u30b8\u30aa\u30e1\u30c8\u30ea B \u304c\u30b8\u30aa\u30e1\u30c8\u30ea A \u5185\u306b\u542b\u307e\u308c\u308b\u304b\u3069\u3046\u304b\uff0cB \u306e\u4e00\u90e8\u3067\u3082 A \u306e\u5916\u5468\u306b\u4f4d\u7f6e\u3057\u3066\u306f\u306a\u3089\u306a\u3044\u3053\u3068\u3092\u7b2c13\u7ae0\u3067\u8ff0\u3079\u305f\u3053\u3068\u3092\u601d\u3044\u51fa\u305d\u3046\uff09\uff0e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u8a18\u8ff0\u306b\u542b\u307e\u308c\u308b\u30bb\u30eb\u53c2\u7167\u306f\u30b8\u30aa\u30e1\u30c8\u30ea A \u306e\u5f62\u72b6\u306b\u6b63\u78ba\u306b\u30d5\u30a3\u30c3\u30c8\u3057\u306a\u3044\u304c\uff0c\u30b8\u30aa\u30e1\u30c8\u30ea\u5168\u4f53\u3092\u8986\u3063\u3066\u3044\u308b\uff0e\u305d\u308c\u3086\u3048\uff0c\u4eee\u306b\u4e0e\u3048\u3089\u308c\u305f\u30bb\u30eb\u304c\u30b8\u30aa\u30e1\u30c8\u30ea\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u8a18\u8ff0\u306b\u51fa\u73fe\u3057\u306a\u3044\u306a\u3089\uff0c\u305d\u306e\u30bb\u30eb\u306b\u542b\u307e\u308c\u308b\u7a7a\u9593\u306f\u305d\u306e\u30b8\u30aa\u30e1\u30c8\u30ea\u306e\u5916\u90e8\u306b\u4f4d\u7f6e\u3057\u3066\u3044\u308b\u306b\u9055\u3044\u306a\u3044\u3068\u5206\u304b\u308b\uff0e\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3057\u305f\u6642\uff0cSQL Server \u306f\u6700\u521d\u306b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306b\u542b\u307e\u308c\u308b\u30bb\u30eb\u3092\u691c\u67fb\u3059\u308b\u3053\u3068\u3067\u4e00\u6b21\u30d5\u30a3\u30eb\u30bf\u30fc\u3092\u9069\u7528\u3059\u308b\uff0e\u56f3\u793a\u3055\u308c\u305f\u30b8\u30aa\u30e1\u30c8\u30ea\u306e\u305f\u3081\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u8a18\u8ff0\u304c\u30bb\u30eb 12 \u3092\u542b\u307e\u306a\u3044\u305f\u3081\uff0cSQL Server \u306f\u5373\u5ea7\u306b\u554f\u984c\u306e Point \u306f\u305d\u306e\u30b8\u30aa\u30e1\u30c8\u30ea\u5185\u306b\u306f\u542b\u307e\u308c\u306a\u3044\u3068\u5224\u65ad\u3067\u304d\uff0c\u305d\u306e\u30af\u30a8\u30ea\u306f STWithin() \u30e1\u30bd\u30c3\u30c9\u306b\u3088\u308a\u8981\u6c42\u3055\u308c\u308b\u3055\u3089\u306a\u308b\u72b6\u614b\u306e\u691c\u67fb\u3092\u5fc5\u8981\u3068\u305b\u305a\uff0c\u4e00\u6b21\u30d5\u30a3\u30eb\u30bf\u30fc\u3092\u4f7f\u3063\u3066\u9069\u5207\u306a\u7d50\u679c\u3092\u8fd4\u3059\u3053\u3068\u304c\u3067\u304d\u308b\uff0e<\/p>\n<p>\u4ed8\u8a18\u3000\u30b8\u30aa\u30e1\u30c8\u30ea\u306e\u305f\u3081\u306e\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u8a18\u8ff0\u306f\uff0c\u30b8\u30aa\u30e1\u30c8\u30ea\u306b\u63a5\u3057\u3066\u3044\u308b\u304b\uff0c\u4e00\u90e8\u3092\u8986\u3063\u3066\u3044\u308b\u304b\uff0c\u5168\u4f53\u3092\u8986\u3063\u3066\u3044\u308b\u30bb\u30eb\u3092\u542b\u3080\uff0e<\/p>\n<p>\u3000\u6a5f\u80fd\u7684\u3067\u306f\u3042\u308b\u304c\uff0c\u3053\u306e\u65b9\u6cd5\u3092\u4f7f\u3063\u3066\u5f97\u3089\u308c\u308b\u3053\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u8a18\u8ff0\u306f\u3042\u307e\u308a\u6b63\u78ba\u3067\u306f\u306a\u3044\uff0e\u30bb\u30eb 6 \u3068\u30bb\u30eb 10 \u306f\u30b8\u30aa\u30e1\u30c8\u30ea\u306b\u3088\u308a\u5b8c\u5168\u306b\u8986\u308f\u308c\u3066\u3044\u308b\u304c\uff0c\u3044\u304f\u3064\u304b\u306e\u30bb\u30eb\uff0c\u4f8b\u3048\u3070\u30bb\u30eb 15 \u306f\u30b8\u30aa\u30e1\u30c8\u30ea\u3092\u307b\u3068\u3093\u3069\u542b\u3093\u3067\u3044\u306a\u3044\uff0e\u30bb\u30eb 11 \u306f\u30b8\u30aa\u30e1\u30c8\u30ea\u3068\u63a5\u3057\u3066\u3044\u308b\u3060\u3051\u3067\u3042\u308b\u304c\uff0c\u63a5\u3059\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3082\u4e92\u3044\u306b\u30a4\u30f3\u30bf\u30fc\u30bb\u30af\u30c8\u4ea4\u5dee\u3059\u308b\u305f\u3081\uff0c\u3053\u306e\u30bb\u30eb\u306f\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306b\u542b\u307e\u308c\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\uff0e\u3053\u308c\u3089\u306e\u30bb\u30eb\u3092\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306b\u542b\u3081\u308b\u3053\u3068\u306f\u4e00\u6b21\u30d5\u30a3\u30eb\u30bf\u30fc\u306b\u3088\u308a\u8fd4\u308b\u3055\u3089\u306a\u308b\u7d50\u679c\u306b\u7e4b\u304c\u308a\uff0c\u305d\u308c\u3086\u3048\u4e8c\u6b21\u30d5\u30a3\u30eb\u30bf\u30fc\u306e\u4ed5\u4e8b\u3092\u5897\u3084\u3059\u3053\u3068\u306b\u306a\u308b\uff0e\u4f8b\u3048\u3070\uff0c\u30bb\u30eb 15 \u306e\u4e2d\u5fc3\u306b\u4f4d\u7f6e\u3059\u308b Point \u304c\u30b8\u30aa\u30e1\u30c8\u30ea\u5185\u90e8\u306b\u542b\u307e\u308c\u308b\u304b\u3069\u3046\u304b\u5b9a\u7fa9\u3057\u305f\u3044\u3068\u3057\u3088\u3046\uff0e\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f7f\u3063\u3066\uff0c\u30bb\u30eb 15 \u306f\u90e8\u5206\u7684\u306b\u30b8\u30aa\u30e1\u30c8\u30ea\u306b\u5360\u3081\u3089\u308c\u308b\u3053\u3068\u306f\u5206\u304b\u3063\u3066\u3044\u308b\u304c\uff0c\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u5358\u72ec\u306b\u57fa\u3065\u3044\u3066\u305d\u306e\u30b8\u30aa\u30e1\u30c8\u30ea\u304c\u305d\u306e\u30bb\u30eb\u306e\u4e2d\u5fc3\u306e Point \u3092\u542b\u3093\u3067\u3044\u308b\u304b\u5426\u304b\u7d50\u8ad6\u3092\u4e0b\u3059\u3053\u3068\u306f\u3067\u304d\u306a\u3044\uff0e\u3053\u306e\u5834\u5408\uff0c\u7d50\u679c\u3092\u5b9a\u7fa9\u3059\u308b\u306b\u306f\u4e8c\u6b21\u30d5\u30a3\u30eb\u30bf\u30fc\u3092\u9069\u7528\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\uff0e<\/p>\n<p>\u3000\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u66f4\u306b\u6b63\u78ba\u306b\u4f5c\u308b\u306b\u306f\uff0c\u7a7a\u9593\u3092 8 \u00d7 8 \u30b0\u30ea\u30c3\u30c9\u306b 64 \u500b\u306e\u30bb\u30eb\u306b\u5206\u5272\u914d\u7f6e\u3057\u3066\u30b0\u30ea\u30c3\u30c9\u89e3\u50cf\u5ea6\u3092\u4e0a\u3052\u308b\u3053\u3068\u304c\u3067\u304d\u308b\uff0eFigure 14-3 \u306b\u793a\u3059\uff0e<\/p>\n<p>\u3000\u5408\u8a08 64 \u500b\u306e\u30bb\u30eb\u3092\u542b\u3080\u30b0\u30ea\u30c3\u30c9\u306e\u89e3\u50cf\u5ea6\u3092\u4e0a\u3052\u308b\u3053\u3068\u3067\uff0c\u30b8\u30aa\u30e1\u30c8\u30ea\u306e\u5468\u56f2\u306b\u3088\u308a\u30d5\u30a3\u30c3\u30c8\u3059\u308b\u5f62\u614b\u3092\u5f97\u308b\u3053\u3068\u304c\u3067\u304d\u308b\uff0e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u3088\u308a\u6b63\u78ba\u306b\u306a\u308b\u305f\u3081\uff0c\u3053\u308c\u306f\u3053\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306b\u57fa\u3065\u304f\u4e00\u6b21\u30d5\u30a3\u30eb\u30bf\u30fc\u304c\u66f4\u306b\u9078\u629e\u7684\u306b\u306a\u308a\uff0c\u4e8c\u6b21\u30d5\u30a3\u30eb\u30bf\u30fc\u306b\u8a55\u4fa1\u3055\u308c\u308b\u3079\u304d\u5019\u88dc\u306e\u30b8\u30aa\u30e1\u30c8\u30ea\u304c\u3088\u308a\u5c11\u306a\u304f\u8fd4\u308b\u3053\u3068\u3092\u610f\u5473\u3059\u308b\uff0e\u3057\u304b\u3057\uff0c\u3053\u308c\u306f\u4e00\u3064\u306e\u554f\u984c\u3092\u6301\u3061\u8fbc\u3080\uff0e\u305d\u306e\u30b8\u30aa\u30e1\u30c8\u30ea\u3092\u8a18\u8ff0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u305f\u3081\uff0c\u4eca\u3084\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306f\u6b21\u306e\u30b0\u30ea\u30c3\u30c9\u30bb\u30eb\u3092\u542b\u307e\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\uff0e11, 12, 13, 17, 18, 19, 20, 21, 25, 26, 27, 28, 29, 33, 34, 35, 36, 37, 42, 44, 45, 51, 52, 53 \u304a\u3088\u3073 60\uff0e\u305d\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u8a18\u8ff0\u306f\u4eca\u3084 26 \u500b\u306e\u30bb\u30eb\u5024\u3092\u30b8\u30aa\u30e1\u30c8\u30ea\u306e\u305f\u3081\u306b\u542b\u3093\u3067\u3044\u308b\uff0e\u5143\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e 3 \u500d\u8fd1\u3044\u6570\u3067\u3042\u308b\uff0e\u7cbe\u5ea6\u306e\u5897\u52a0\u306f\u5de8\u5927\u306a\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u9ad8\u4fa1\u3092\u304d\u305f\u3057\uff0c\u5b9f\u884c\u30b3\u30b9\u30c8\u306b\u95a2\u9023\u3057\u3066\u304f\u308b\uff0e<\/p>\n<p>\u3000\u3053\u306e\u65b9\u6cd5\u3092\u62e1\u5f35\u3057\u3066\u66f4\u306b\u9ad8\u89e3\u50cf\u5ea6\u306e\u30b0\u30ea\u30c3\u30c9\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u5ba3\u8a00\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u308b\uff0e16 \u00d7 16 \u306e\u30b0\u30ea\u30c3\u30c9\u3067\u5408\u8a08 256 \u500b\u306e\u30bb\u30eb\u3092\u542b\u3080\u3082\u306e\u3067\uff0cFigure 14-4 \u306b\u793a\u3059\uff0e<\/p>\n<p>\u3000Figure 14-4 \u306b\u5360\u3081\u3089\u308c\u308b\u30bb\u30eb\u306b\u3088\u308a\u8a18\u8ff0\u3055\u308c\u308b\u9818\u57df\u306f\u5f62\u614b\u306b\u3088\u308a\u5360\u3081\u3089\u308c\u308b\u771f\u306e\u9818\u57df\u306b\u6700\u3082\u8fd1\u304f\u6700\u9069\u5316\u3055\u308c\u3066\u304a\u308a\uff0c\u4e00\u6b21\u30d5\u30a3\u30eb\u30bf\u30fc\u306e\u7d50\u679c\u306e\u7cbe\u5ea6\u3092\u6700\u9069\u5316\u3059\u308b\u3082\u306e\u3067\u3042\u308b\u304c\uff0c\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u8a18\u8ff0\u3092\u3055\u3089\u306b\u8907\u96d1\u5316\u3059\u308b\uff0e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u5de8\u5927\u306b\u6210\u9577\u3059\u308b\u307b\u3069\uff0c\u305d\u308c\u306f\u6271\u3044\u306b\u304f\u304f\u9045\u304f\u306a\u308a\uff0c\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f7f\u3046\u3053\u3068\u3067\u30af\u30a8\u30ea\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306f\u6539\u5584\u3059\u308b\u3088\u308a\u3080\u3057\u308d\u52a3\u5316\u3059\u308b\u30dd\u30a4\u30f3\u30c8\u306b\u5230\u9054\u3059\u308b\uff0e<\/p>\n<p>\u3000\u4e00\u6b21\u30d5\u30a3\u30eb\u30bf\u30fc\u304c\u52b9\u7387\u7684\u3067\u3042\u308b\u305f\u3081\u306b\u306f\uff0c\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306f\u6b63\u78ba\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308b\u304c\uff0c\u540c\u6642\u306b\u5c0f\u3055\u3044\u3082\u306e\u3067\u3042\u308b\u5fc5\u8981\u3082\u3042\u308b\uff0e\u3067\u306f\uff0c\u3053\u308c\u3089\u306e\u30a2\u30d7\u30ed\u30fc\u30c1\u306e\u6700\u9069\u306a\u59a5\u5354\u70b9\u306f\u4f55\u304b\uff1fSQL Server \u306b\u3088\u308a\u4f7f\u308f\u308c\u308b\u89e3\u6cd5\u306f\uff0c\u3053\u308c\u3089\u306e\u4f8b\u306e\u3088\u3046\u306a\u5358\u4e00\u306e\u30b0\u30ea\u30c3\u30c9\u3092\u4f7f\u3046\u3053\u3068\u3067\u306f\u306a\u304f\uff0c\u30de\u30eb\u30c1\u30ec\u30d9\u30eb\u30b0\u30ea\u30c3\u30c9\u3092\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u3067\u3042\u308b\uff0e\u30de\u30eb\u30c1\u30ec\u30d9\u30eb\u30b0\u30ea\u30c3\u30c9\u306f4\u5c64\u306e\u30b0\u30ea\u30c3\u30c9\u304b\u3089\u306a\u308a\uff0c\u304a\u4e92\u3044\u306e\u4e2d\u3067\u30cd\u30b9\u30c8\u3057\u3066\u3044\u308b\uff0e\u4f8b\u3048\u3070\uff0c\u6700\u521d\u306e\u7b2c1\u5c64\u306f\u30b0\u30ea\u30c3\u30c9\u3092 64 \u500b\u306e\u30bb\u30eb\u306b\u5206\u5272\u3059\u308b\uff0e\u6b21\u306e\u7b2c2\u5c64\u306e\u30b0\u30ea\u30c3\u30c9\u306f\u7b2c1\u5c64\u306e\u30bb\u30eb\u3092\u66f4\u306b 64 \u500b\u306e\u30bb\u30eb\u306b\u518d\u5206\u5272\u3059\u308b\uff0e\u7b2c3\u5c64\u306f\u7b2c2\u5c64\u306e\u30bb\u30eb\u3092 64 \u500b\u306e\u30b5\u30d6\u30bb\u30eb\u306b\u518d\u5206\u5272\u3057\uff0c\u305d\u3046\u3084\u3063\u3066\u7b2c4\u5c64\u306b\u5230\u9054\u3059\u308b\uff0e\u30de\u30eb\u30c1\u30ec\u30d9\u30eb\u30b0\u30ea\u30c3\u30c9\u3092 Figure 14-5 \u306b\u793a\u3059\uff0e<\/p>\n<p>\u3000Figure 14-5 \u306b\u793a\u3057\u305f\u30ca\u30f3\u30d0\u30ea\u30f3\u30b0\u5909\u63db\u306f\uff0c\u305d\u306e\u30b0\u30ea\u30c3\u30c9\u306b\u7d9a\u304f\u5404\u5c64\u306b\u30c9\u30ea\u30eb\u30c0\u30a6\u30f3\u3059\u308b\u30bb\u30eb\u53c2\u7167\u3092\u8868\u73fe\u3057\u3066\u304a\u308a\uff0cLevel1.Level2.Level3.Level4 \u3068\u8a18\u8ff0\u3059\u308b\uff0e\u4f8b\u3048\u3070\uff0c\u30bb\u30eb 3.9.12.1 \u306f level 1 \u30b0\u30ea\u30c3\u30c9\u306e\u30bb\u30eb3, level 2 \u30b0\u30ea\u30c3\u30c9\u306e\u30bb\u30eb 9, level 3 \u30b0\u30ea\u30c3\u30c9\u306e\u30bb\u30eb 12, level 4 \u30b0\u30ea\u30c3\u30c9\u306e\u6700\u521d\u306e\u30bb\u30eb\u3092\u53c2\u7167\u3059\u308b\uff0e<\/p>\n<p>\u3000\u305d\u306e\u30b0\u30ea\u30c3\u30c9\u306e\u5404\u5c64\u306b\u542b\u307e\u308c\u308b\u30bb\u30eb\u306e\u30ca\u30f3\u30d0\u30fc\u306f\u72ec\u7acb\u306b\uff0c\u4e88\u3081\u5b9a\u7fa9\u3055\u308c\u305f3\u3064\u306e\u89e3\u50cf\u5ea6\u306e\u3046\u3061\u306e\u4e00\u3064\u306b\u8a2d\u5b9a\u3055\u308c\u308b\uff0e<\/p>\n<ul>\n<li>LOW \u89e3\u50cf\u5ea6\u30b0\u30ea\u30c3\u30c9\u306f 4 \u00d7 4 \u30b0\u30ea\u30c3\u30c9\u306b\u5bfe\u5fdc\u3057\uff0c\u5408\u8a08 16 \u500b\u306e\u30bb\u30eb\u3092\u542b\u3080\uff08Figure 14-2 \u306b\u793a\u3059\uff09\uff0e<\/li>\n<li>MEDIUM \u89e3\u50cf\u5ea6\u30b0\u30ea\u30c3\u30c9\u306f 8 \u00d7 8 \u30b0\u30ea\u30c3\u30c9\u306b\u5bfe\u5fdc\u3057\uff0c\u5408\u8a08 64 \u500b\u306e\u30bb\u30eb\u3092\u542b\u3080\uff08Figure 14-3 \u306b\u793a\u3059\uff09\uff0e<\/li>\n<li>HIGH \u89e3\u50cf\u5ea6\u30b0\u30ea\u30c3\u30c9\u306f 16 \u00d7 16 \u30b0\u30ea\u30c3\u30c9\u306b\u5bfe\u5fdc\u3057\uff0c\u5408\u8a08 256 \u500b\u306e\u30bb\u30eb\u3092\u542b\u3080\uff08Figure 14-4 \u306b\u793a\u3059\uff09\uff0e<\/li>\n<\/ul>\n<p>\u3000\u5404\u5c64\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u89e3\u50cf\u5ea6\u306f MEDIUM \u3067\u3042\u308b\uff0e\u3053\u308c\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306f4\u5c64\u306e\u30b0\u30ea\u30c3\u30c9\u3092\u542b\u307f\uff0c\u305d\u308c\u305e\u308c\u304c MEDIUM \u89e3\u50cf\u5ea6\u3067\u3042\u308a\uff0c\u7b2c4\u5c64\u3067\u306f 64<sup>4<\/sup> \u500b\uff08\u7d04 1670 \u4e07\uff09\u306e\u30bb\u30eb\u3092\u542b\u3093\u3067\u3044\u308b\u3053\u3068\u3092\u610f\u5473\u3059\u308b\uff0e\u3059\u3079\u3066\u306e\u30b0\u30ea\u30c3\u30c9\u30ec\u30d9\u30eb\u3067\u89e3\u50cf\u5ea6\u3092 HIGH \u306b\u5897\u3084\u3059\u3068\uff0c\u7b2c4\u5c64\u3067\u306f\u6700\u5927 256<sup>4<\/sup> \u500b\u306e\u30bb\u30eb\uff0c 43 \u5104\u500b\u306b\u76f8\u5f53\u3059\u308b\u3053\u3068\u306b\u306a\u308b\uff01<\/p>\n<p>\u4ed8\u8a18\u3000\u30de\u30eb\u30c1\u30ec\u30d9\u30eb\u30b0\u30ea\u30c3\u30c9\u5185\u306e\u5404\u30bb\u30eb\u306f\u6b21\u306e\u30b0\u30ea\u30c3\u30c9\u30ec\u30d9\u30eb\u3067\u5b8c\u5168\u306b\u518d\u5206\u5272\u3055\u308c\u308b\uff0e<\/p>\n<h3>\u30b0\u30ea\u30c3\u30c9\u304b\u3089\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u69cb\u7bc9\u3059\u308b<\/h3>\n<p>\u3000\u30de\u30eb\u30c1\u30ec\u30d9\u30eb\u30b0\u30ea\u30c3\u30c9\u3092\u4f7f\u3046\u6642\uff0c\u30b0\u30ea\u30c3\u30c9\u306b\u3088\u308a\u8986\u308f\u308c\u308b\u7a7a\u9593\u306e\u5730\u7269\u3092\u8868\u73fe\u3059\u308b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u8a18\u8ff0\u3092\u3069\u3046\u3084\u3063\u3066\u751f\u6210\u3059\u308b\u306e\u304b\u6238\u60d1\u3046\u304b\u3082\u3057\u308c\u306a\u3044\uff0e\u5358\u7d14\u306a\u5358\u4e00\u30b0\u30ea\u30c3\u30c9\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3067\u306f\uff0c\u672c\u7ae0\u306e\u6700\u521d\u306b\u8ad6\u3058\u305f\u3088\u3046\u306b\uff0c\u5404\u30b8\u30aa\u30e1\u30c8\u30ea\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u8a18\u8ff0\u306f\u30b8\u30aa\u30e1\u30c8\u30ea\u3068\u4ea4\u5dee\u3059\u308b\u500b\u5225\u306e\u30bb\u30eb\u306e\u5168\u30ea\u30b9\u30c8\u304b\u3089\u69cb\u7bc9\u3055\u308c\u308b\uff0e\u540c\u3058\u3053\u3068\u3092\u30de\u30eb\u30c1\u30ec\u30d9\u30eb\u30b0\u30ea\u30c3\u30c9\u3067\u3082\u884c\u3046\uff0e\u30b8\u30aa\u30e1\u30c8\u30ea\u3068\u4ea4\u5dee\u3059\u308b\u5168\u5c64\u306e\u30b0\u30ea\u30c3\u30c9\u3067\u3059\u3079\u3066\u306e\u30bb\u30eb\u3092\u84c4\u7a4d\u3059\u308b\uff0e\u3057\u304b\u3057\uff0c\u305d\u3046\u3059\u308b\u3053\u3068\u3067\u975e\u52b9\u7387\u306b\u306a\u308a\uff0c\u30de\u30eb\u30c1\u30ec\u30d9\u30eb\u306e\u3044\u304f\u3064\u304b\u306e\u6709\u76ca\u306a\u7279\u6027\u306e\u5229\u70b9\u3092\u5931\u3044\u304b\u306d\u306a\u3044\uff0e\u30b8\u30aa\u30e1\u30c8\u30ea\u3092\u8a18\u8ff0\u3059\u308b\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306f\u7570\u306a\u308b\u30b0\u30ea\u30c3\u30c9\u5c64\u7531\u6765\u306e\u30bb\u30eb\u3092\u542b\u3080\u53ef\u80fd\u6027\u304c\u3042\u308b\u304c\uff0c\u5168\u3066\u306e\u30b0\u30ea\u30c3\u30c9\u30ec\u30d9\u30eb\u3067\u30b8\u30aa\u30e1\u30c8\u30ea\u306e\u4ea4\u5dee\u3059\u308b\u5168\u3066\u306e\u30bb\u30eb\u3092\u542b\u3080\u5fc5\u8981\u306f\u306a\u3044\uff0e\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306b\u542b\u307e\u308c\u308b\u3079\u304d\u305d\u308c\u3089\u306e\u30bb\u30eb\u3092\u5b9a\u7fa9\u3059\u308b\u305f\u3081\u306b\uff0cSQL Server \u306f3\u3064\u306e\u30eb\u30fc\u30eb\u3092\u9069\u7528\u3059\u308b\uff0e<\/p>\n<ul>\n<li>\u30ab\u30d0\u30fc\u30ea\u30f3\u30b0\u30eb\u30fc\u30eb<\/li>\n<li>\u6700\u6df1\u30bb\u30eb\u30eb\u30fc\u30eb<\/li>\n<li>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3054\u3068\u306e\u30bb\u30eb\u30eb\u30fc\u30eb<\/li>\n<\/ul>\n<p>\u3000\u3053\u308c\u3089\u306e\u30eb\u30fc\u30eb\u306e\u76ee\u7684\u306f\uff0c\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u8a18\u8ff0\u306e\u8a18\u8ff0\u3059\u308b\u30b8\u30aa\u30e1\u30c8\u30ea\u306b\u3088\u308a\u6b63\u78ba\u3055\u3092\u6700\u5927\u5316\u3057\uff0c\u305d\u308c\u306b\u5fc5\u8981\u306a\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u8a18\u8ff0\u306e\u7dcf\u91cf\u3092\u6700\u5c0f\u5316\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u306a\u30bb\u30eb\u3060\u3051\u3092\u542b\u3080\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u8a18\u8ff0\u3092\u78ba\u4fdd\u3059\u308b\u3053\u3068\u3067\u3042\u308b\uff0e\u5404\u30eb\u30fc\u30eb\u304c\u3069\u3046\u3084\u3063\u3066\u64cd\u4f5c\u3059\u308b\u304b\uff0c\u9806\u756a\u306b\u898b\u3066\u3044\u3053\u3046\uff0e<\/p>\n<h4>\u30ab\u30d0\u30fc\u30ea\u30f3\u30b0\u30eb\u30fc\u30eb<\/h4>\n<p>\u3000\u30ab\u30d0\u30fc\u30ea\u30f3\u30b0\u30eb\u30fc\u30eb\u3068\u306f\uff0c\u3069\u306e\u30b0\u30ea\u30c3\u30c9\u30ec\u30d9\u30eb\u3067\u3082\u3042\u308b\u30bb\u30eb\u304c\u5b8c\u5168\u306b\u30b8\u30aa\u30e1\u30c8\u30ea\u306b\u3088\u308a\u8986\u308f\u308c\u3066\u3044\u308b\u306a\u3089\uff0c\u305d\u306e\u30bb\u30eb\u306f\u66f4\u306b\u6df1\u3044\u5c64\u306b\u518d\u5206\u5272\u3055\u308c\u308b\u3079\u304d\u3067\u306f\u306a\u3044\u3053\u3068\u3092\u8ff0\u3079\u3066\u3044\u308b\uff0e\u4f8b\u3048\u3070\uff0clevel 1 \u306e\u30bb\u30eb\u304c\u30b8\u30aa\u30e1\u30c8\u30ea\u306b\u3088\u308a\u5b8c\u5168\u306b\u8986\u308f\u308c\u3066\u3044\u308b\u306a\u3089\uff0c\u305d\u306e level 1 \u306e\u30bb\u30eb\u306b\u542b\u307e\u308c\u308b level 2 \u306e\u30bb\u30eb\u306f\u3059\u3079\u3066\uff0c\u6697\u306b\uff0c\u5b8c\u5168\u306b\u8986\u308f\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u5206\u304b\u308b\uff08\u7d9a\u304f level 3, level 4 \u306e\u30bb\u30eb\u3082\u540c\u69d8\uff09\uff0e\u3086\u3048\u306b\uff0c\u3053\u306e\u518d\u5206\u5272\u3092\u5b9f\u884c\u3057\u3066\u5168\u5c64\u306e\u30b5\u30d6\u30bb\u30eb\u3092\u8a18\u9332\u3059\u308b\u3053\u3068\u306f\u591a\u304f\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u7a7a\u9593\u3092\u5360\u3081\u308b\u3053\u3068\u3068\u306a\u308b\u4e00\u65b9\u3067\u65b0\u3057\u3044\u60c5\u5831\u306f\u4f55\u3082\u5f97\u3089\u308c\u306a\u3044\uff0e\u3053\u306e\u5834\u5408\uff0c\u5b8c\u5168\u306b\u8986\u308f\u308c\u3066\u3044\u308b\u30bb\u30eb\u3060\u3051\u3092\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306b\u84c4\u7a4d\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\uff0eFigure 14-6 \u306b\u30ab\u30d0\u30fc\u30ea\u30f3\u30b0\u30eb\u30fc\u30eb\u304c\u4f8b\u306e\u30b8\u30aa\u30e1\u30c8\u30ea\u306b\u3069\u306e\u3088\u3046\u306b\u9069\u7528\u3055\u308c\u308b\u304b\u793a\u3059\uff0e<\/p>\n<p>\u4ed8\u8a18\u3000\u30ab\u30d0\u30fc\u30ea\u30f3\u30b0\u30eb\u30fc\u30eb\u306f\u30b8\u30aa\u30e1\u30c8\u30ea\u306b\u5b8c\u5168\u306b\u8986\u308f\u308c\u308b\u30bb\u30eb\u306b\u306e\u307f\u9069\u7528\u3055\u308c\u308b\uff0e\u4e00\u90e8\u3057\u304b\u8986\u308f\u308c\u3066\u3044\u306a\u3044\u306a\u3089\uff0c\u3055\u3089\u306b\u4f4e\u30ec\u30d9\u30eb\u306e\u30b0\u30ea\u30c3\u30c9\u306b\u518d\u5206\u5272\u3055\u308c\u308b\uff0e<\/p>\n<h4>\u6700\u6df1\u30bb\u30eb\u30eb\u30fc\u30eb<\/h4>\n<p>\u3000\u6700\u6df1\u30bb\u30eb\u30eb\u30fc\u30eb\u3068\u306f\uff0c\u4e00\u90e8\u8986\u308f\u308c\u3066\u3044\u308b\u30bb\u30eb\u304c\u518d\u5206\u5272\u3055\u308c\u308b\u6642\uff0c\u4ea4\u5dee\u306e\u8d77\u3053\u308b\u6700\u6df1\u30ec\u30d9\u30eb\u306e\u30b0\u30ea\u30c3\u30c9\u306b\u4f4d\u7f6e\u3059\u308b\u30bb\u30eb\u306e\u307f\u304c\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306b\u8ffd\u52a0\u3055\u308c\u308b\u5fc5\u8981\u304c\u3042\u308b\u3053\u3068\u3092\u8ff0\u3079\u3066\u3044\u308b\uff0e\u305d\u308c\u3089\u306e\u30bb\u30eb\u306e\u542b\u307e\u308c\u308b\u3088\u308a\u9ad8\u30ec\u30d9\u30eb\u306e\u30bb\u30eb\u3067\u306f\u306a\u3044\uff0e\u3059\u3079\u3066\u306e level 4 \u306e\u30bb\u30eb\u306f\u552f\u4e00\u306e level 3 \u306e\u30bb\u30eb\u5185\u306b\u4f4d\u7f6e\u3059\u308b\u305f\u3081\uff0c\u3059\u3079\u3066\u306e level 3 \u306e\u30bb\u30eb\u306f\u552f\u4e00\u306e level 2 \u306e\u30bb\u30eb\u5185\u306b\u4f4d\u7f6e\u3059\u308b\u305f\u3081\uff0c\u3072\u3068\u305f\u3073 level 4 \u306e\u30bb\u30eb\u304c\uff08\u6700\u6df1\u30ec\u30d9\u30eb\uff09\u30b8\u30aa\u30e1\u30c8\u30ea\u3068\u4ea4\u5dee\u3059\u308b\u3068\u5206\u304b\u308c\u3070\uff0c\u6697\u306b\u305d\u306e level 4 \u306e\u30bb\u30eb\u306e\u3088\u308a\u9ad8\u4f4d\u306e\u30b0\u30ea\u30c3\u30c9\u30ec\u30d9\u30eb\u306e\u5404\u30bb\u30eb\u306f\u305d\u306e\u30b8\u30aa\u30e1\u30c8\u30ea\u3068\u4e00\u90e8\u4ea4\u5dee\u3059\u308b\u3053\u3068\u304c\u5206\u304b\u308b\uff0e<\/p>\n<p>\u3000Figure 14-5 \u306b\u793a\u3059\u30ca\u30f3\u30d0\u30ea\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u306b\u57fa\u3065\u304f\u4f8b\u3092\u4f7f\u3046\u3053\u3068\u306f\uff0c\u4eee\u306b level 4 \u306e\u30bb\u30eb 10.2.31.5 \u304c\u30b8\u30aa\u30e1\u30c8\u30ea\u3068\u4ea4\u5dee\u3059\u308b\u306a\u3089\uff0c\u30bb\u30eb 10.2.31 (level3), 10.2 (level 2) \u304a\u3088\u3073 10 (level 1) \u3082\u307e\u305f\u305d\u306e\u30b8\u30aa\u30e1\u30c8\u30ea\u3068\u4ea4\u5dee\u3057\u306a\u304f\u3066\u306f\u306a\u3089\u306a\u3044\uff0c\u306a\u305c\u306a\u3089\u305d\u308c\u3089\u306f\u3059\u3067\u306b\u8ff0\u3079\u305f level 4 \u306e\u30bb\u30eb\u3092\u542b\u3093\u3067\u3044\u308b\u304b\u3089\u3067\u3042\u308b\uff0e\u6700\u6df1\u30bb\u30eb\u304c\u5e38\u306b level 4 \u306b\u3042\u308b\u3068\u306f\u9650\u3089\u306a\u3044\u3053\u3068\u306b\u6ce8\u610f\uff0eFigure 14-6 \u306b\u793a\u3059\u3088\u3046\u306b\uff0c\u4efb\u610f\u306e\u30ec\u30d9\u30eb\u306e\u30bb\u30eb\u304c\u30b8\u30aa\u30e1\u30c8\u30ea\u306b\u5b8c\u5168\u306b\u8986\u308f\u308c\u3066\u3044\u308b\u306a\u3089\uff0c\u305d\u308c\u4ee5\u4e0a\u518d\u5206\u5272\u3055\u308c\u305a\uff0c\u6700\u6df1\u30bb\u30eb\u306f\u5b8c\u5168\u306b\u8986\u308f\u308c\u3066\u3044\u308b\u30bb\u30eb\u306e\u3042\u308b\u30b0\u30ea\u30c3\u30c9\u30ec\u30d9\u30eb\u306b\u4f4d\u7f6e\u3057\u3066\u3044\u308b\uff0e<\/p>\n<h4>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3054\u3068\u306e\u30bb\u30eb\u30eb\u30fc\u30eb<\/h4>\n<p>\u3000\u6700\u6df1\u30bb\u30eb\u30eb\u30fc\u30eb\u304a\u3088\u3073\u30ab\u30d0\u30fc\u30ea\u30f3\u30b0\u30eb\u30fc\u30eb\u3092\u9069\u7528\u3057\u3066\u3082\u306a\u304a\uff0c\u8907\u96d1\u306a\u30b8\u30aa\u30e1\u30c8\u30ea\u3092\u8a18\u8ff0\u3059\u308b\u5fc5\u8981\u306e\u3042\u308b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u8a18\u8ff0\u306f\u591a\u304f\u306e\u660e\u78ba\u306a\u30b0\u30ea\u30c3\u30c9\u30bb\u30eb\u3092\u542b\u3093\u3067\u3044\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\uff0e\u3053\u308c\u306f\u30b8\u30aa\u30e1\u30c8\u30ea\u306e\u62e1\u5f35\u3092\u8a18\u8ff0\u3059\u308b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u8a18\u8ff0\u3067\u7cbe\u5ea6\u3092\u6700\u5927\u5316\u3059\u308b\u4e00\u65b9\uff0c\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u52a3\u5316\u3055\u305b\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\uff0e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3054\u3068\u306e\u30bb\u30eb\u30eb\u30fc\u30eb\u306f\uff0c\u5404\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3054\u3068\u306b\u84c4\u7a4d\u3055\u308c\u308b\u30bb\u30eb\u306e\u6700\u5927\u6570\u306e\u4e0a\u9650\u3092\u660e\u793a\u7684\u306b\u8a2d\u5b9a\u3059\u308b\u3082\u306e\u3067\u3042\u308b\uff0e\u30bb\u30eb\u306e\u518d\u5206\u5272\u304c\u3053\u306e\u4e0a\u9650\u3092\u8d85\u904e\u3057\u305d\u3046\u306a\u72b6\u6cc1\u3067\u306f\uff0c\u305d\u306e\u30bb\u30eb\u306f\u518d\u5206\u5272\u3055\u308c\u305a\uff0c\u305d\u306e\u6642\u70b9\u3067\u306e\u30b0\u30ea\u30c3\u30c9\u30ec\u30d9\u30eb\u306e\u30bb\u30eb\u306f\u4ee3\u308f\u308a\u306b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306b\u542b\u307e\u308c\u308b\uff08\u6700\u6df1\u30bb\u30eb\u30eb\u30fc\u30eb\u306b\u3088\u308a\u6307\u793a\u3055\u308c\u305f\u884c\u52d5\u3092\u8986\u3059\uff09\uff0e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3054\u3068\u306e\u30bb\u30eb\u30eb\u30fc\u30eb\u306b\u57fa\u3065\u304f CELLS_PER_OBJECT \u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u5024\u306f\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u4f5c\u6210\u3055\u308c\u308b\u6642\u306b\u6307\u5b9a\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u305a\uff0c\u7bc4\u56f2\u306f 1 \u304b\u3089 8,192 \u306e\u9593\u306b\u8a2d\u5b9a\u3055\u308c\u308b\uff0e\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3054\u3068\u306b 16 \u30bb\u30eb\u3067\u3042\u308b\uff0e<\/p>\n<p>\u4ed8\u8a18\u3000SQL Server \u304c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3054\u3068\u306e\u30bb\u30eb\u30eb\u30fc\u30eb\u3092\u7834\u308b\u552f\u4e00\u306e\u72b6\u6cc1\u306f\uff0clevel 1 \u306e\u30b0\u30ea\u30c3\u30c9\u30bb\u30eb\u304c CELL_PER_OBJECT \u5024\u3092\u8d85\u3048\u308b\u5de8\u5927\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8986\u3046\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u3067\u3042\u308b\uff0e\u3053\u306e\u5834\u5408\uff0cSQL Server \u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u3059\u3079\u3066\u8986\u308f\u308c\u308b\u307e\u3067 level 1 \u306e\u30b0\u30ea\u30c3\u30c9\u30bb\u30eb\u3092\u5fc5\u8981\u306a\u6570\u306b\u307e\u3067\u5897\u3084\u3059\uff0e<\/p>\n<h3>geography \u578b\u306b\u30b0\u30ea\u30c3\u30c9\u3092\u9069\u7528\u3059\u308b<\/h3>\n<p>\u3000\u672c\u7ae0\u306e\u3053\u306e\u6642\u70b9\u307e\u3067\uff0c\u5e73\u9762\u306e\u4e8c\u6b21\u5143\u306e\u30b0\u30ea\u30c3\u30c9\u30b7\u30b9\u30c6\u30e0\u304b\u3089\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u3069\u3046\u4f5c\u6210\u3055\u308c\u308b\u304b\u3092\u8ad6\u3058\u3066\u304d\u305f\uff0e\u3053\u306e\u7a2e\u306e\u30b7\u30b9\u30c6\u30e0\u306f geometry \u578b\u306b\u306f\u76f4\u63a5\u9069\u7528\u3067\u304d\u308b\u304c\uff0cgeography \u578b\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u4f5c\u6210\u306b\u3064\u3044\u3066\u306f\u3069\u3046\u3067\u3042\u308d\u3046\u304b\uff1f<\/p>\n<p>\u3000geometry \u578b\u540c\u69d8\uff0cgeography \u578b\u306e\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306f4\u5c64\u306e\u30b0\u30ea\u30c3\u30c9\u30b7\u30b9\u30c6\u30e0\u306b\u57fa\u3065\u304f\uff0e\u3057\u304b\u3057\uff0cgeography \u578b\u306e\u4f7f\u308f\u308c\u308b\u5730\u7403\u306e\u7403\u4f53\u30e2\u30c7\u30eb\u306b\u76f4\u63a5\u30b0\u30ea\u30c3\u30c9\u3092\u9069\u7528\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\uff0e\u307e\u305a geography \u578b\u306e\u5730\u7269\u3092\u5e73\u9762\u4e0a\u306b\u8868\u73fe\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\uff0e\u3053\u308c\u306f\uff0c\u6295\u5f71\u306b\u95a2\u9023\u3059\u308b\uff0e\u3059\u3067\u306b\u672c\u66f8\u3067\u4f55\u5ea6\u304b\u7d39\u4ecb\u3057\u305f\u304c\uff0c\u9577\u65b9\u5f62\u56f3\u6cd5\uff0c\u30e1\u30eb\u30ab\u30c8\u30eb\u56f3\u6cd5\uff0c\u30dc\u30f3\u30cc\u56f3\u6cd5\uff0c\u30ed\u30d3\u30f3\u30bd\u30f3\u56f3\u6cd5\u304c\u7a7a\u9593\u7d50\u679c\u30bf\u30d6\u306b\u8868\u793a\u3055\u308c\u308b\uff0egeography \u578b\u306e\u30c7\u30fc\u30bf\u306b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u9069\u7528\u3059\u308b\u306b\u306f\uff0cSQL Server \u306f\u4ed6\u306e\u6295\u5f71\u6cd5\u3092\u4f7f\u3044\uff0c\u6b21\u306e\u65b9\u6cd5\u3067\u751f\u6210\u3055\u308c\u308b\uff0e<\/p>\n<ol>\n<li>\u5730\u7403\u306e\u30e2\u30c7\u30eb\u306e\u4e21\u6975\u306b2\u3064\u306e\u56db\u89d2\u9310\u3092\u7f6e\u304f\uff0e2\u3064\u306e\u56db\u89d2\u9310\u306e\u5e95\u9762\u306f\u8d64\u9053\u3067\u63a5\u3057\uff0c\u305d\u308c\u305e\u308c\u306e\u56db\u89d2\u9310\u306f\u5317\u534a\u7403\u3068\u5357\u534a\u7403\u3092\u5b8c\u5168\u306b\u30ab\u30d0\u30fc\u3059\u308b\uff0e<\/li>\n<li>\u5730\u7403\u306e\u5404\u534a\u7403\u306e\u5730\u7269\u306f\u56db\u89d2\u9310\u306e\u9069\u5207\u306a\u5074\u9762\u306b\u6295\u5f71\u3055\u308c\u308b\uff0e<\/li>\n<li>\u56db\u89d2\u9310\u306f\u5e73\u5766\u5316\u3055\u308c\uff0c\u7d50\u5408\u3055\u308c\u3066\u5358\u4e00\u306e\u6295\u5f71\u50cf\u3092\u7d50\u3076\uff0e<\/li>\n<\/ol>\n<p>\u4ed8\u8a18\u3000geography \u578b\u3067\u306e\u30c7\u30fc\u30bf\u306f\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u9069\u7528\u3059\u308b\u6642\u306b\u6295\u5f71\u3055\u308c\u308b\u308f\u3051\u3067\u306f\u306a\u3044\uff0e\u3080\u3057\u308d\uff0c\u5358\u306b\u305d\u306e\u30c7\u30fc\u30bf\u306e\u8868\u73fe\u304c\u6295\u5f71\u3055\u308c\u3066\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u4f5c\u6210\u3055\u308c\u308b\u3060\u3051\u3067\u3042\u308b\uff0e<\/p>\n<p>\u3000\u4e00\u65e62\u3064\u306e\u534a\u7403\u304c\u6295\u5f71\u3055\u308c\u3066\u5358\u4e00\u5e73\u9762\u306b\u7d50\u5408\u3055\u308c\u308b\u3068\uff0cgeometry \u578b\u3068\u540c\u3058\u65b9\u6cd5\u3067\u7d50\u679c\u306e\u30c7\u30fc\u30bf\u306b\u30b0\u30ea\u30c3\u30c9\u304c\u9069\u7528\u3055\u308c\u308b\uff0e\u3053\u306e\u6295\u5f71\u30d7\u30ed\u30bb\u30b9\u3092 Figure 14-7 \u306b\u793a\u3059\uff0e<\/p>\n<p>\u3000\u3053\u306e\u6295\u5f71\u30d7\u30ed\u30bb\u30b9\u306f geography \u578b\u306e\u5217\u306b\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u751f\u6210\u3057\u305f\u3068\u304d\u306f\u3044\u3064\u3067\u3082\u81ea\u52d5\u7684\u306b\u900f\u904e\u7684\u306b\u767a\u751f\u3059\u308b\uff0e\u7d50\u679c\u3068\u3057\u3066\uff0cgeometry \u578b\u3067\u3082 geography \u578b\u3067\u3082\u30de\u30eb\u30c1\u30ec\u30d9\u30eb\u30b0\u30ea\u30c3\u30c9\u30b7\u30b9\u30c6\u30e0\u306e\u57fa\u672c\u7684\u306a\u540c\u3058\u30eb\u30fc\u30eb\u306e\u30bb\u30c3\u30c8\u3092\u9069\u7528\u3067\u304d\uff0cSQL Server \u306f\u8aad\u8005\u306e\u305f\u3081\u306b\u6b8b\u308a\u3092\u51e6\u7406\u3059\u308b\uff0e\u7279\u306b\u660e\u8a18\u3057\u306a\u3044\u9650\u308a\uff0c\u672c\u7ae0\u3067\u8ad6\u3058\u305f\u5185\u5bb9\u306e\u5168\u3066\u306f\u3069\u3061\u3089\u306e\u30c7\u30fc\u30bf\u578b\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306b\u3082\u7b49\u3057\u304f\u9069\u7528\u3055\u308c\u308b\u3068\u63a8\u5b9a\u3067\u304d\u308b\uff0e<\/p>\n<p>\u4ed8\u8a18\u3000&#8221;\u821e\u53f0\u88cf&#8221;\u3067\u306f\uff0cFigure 14-7 \u306b\u793a\u3057\u305f\u6295\u5f71\u3092 geography \u578b\u306e\u591a\u304f\u306e\u7a7a\u9593\u64cd\u4f5c\u304c\u5229\u7528\u3057\u3066\u3044\u308b\uff0e\u5404\u534a\u7403\u306f\u72ec\u7acb\u306b\u6295\u5f71\u3055\u308c\u308b\u305f\u3081\uff0cgeography \u578b\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u5358\u4e00\u306e\u534a\u7403\u3092\u8d85\u3048\u3089\u308c\u306a\u3044\u3068\u3044\u3046\u9650\u754c\u306e\u4e00\u56e0\u3068\u306a\u3063\u3066\u3044\u308b\uff0e<\/p>\n<h3>T-SQL \u3092\u4f7f\u3063\u3066\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f5c\u6210\u3059\u308b<\/h3>\n<p>\u3000\u80cc\u5f8c\u3067\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u3044\u304b\u306b\u3057\u3066\u52d5\u4f5c\u3059\u308b\u304b\u306e\u6a5f\u69cb\u3092\u898b\u305b\u305f\u4eca\uff0c\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u306e\u5b9f\u7528\u7684\u306a\u30c7\u30e2\u30f3\u30b9\u30c8\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u898b\u3066\u3044\u3053\u3046\uff0e\u59cb\u3081\u308b\u305f\u3081\u306b\uff0c\u305d\u306e\u4e0a\u3067\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u9069\u7528\u3067\u304d\u308b\u7c21\u5358\u306a\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3057\u3088\u3046\uff0e\u30c7\u30fc\u30bf\u306e\u5404\u884c\u304c\u30c6\u30fc\u30d6\u30eb\u306b\u8ffd\u52a0\u3055\u308c\u308b\u305f\u3073\u306b 1 \u305a\u3064\u5897\u52a0\u3059\u308b identity \u5217\u3068\uff0c\u7121\u4f5c\u70ba\u306e Point \u306e\u7cfb\u5217\u306e\u4f4d\u7f6e\u3092\u8a18\u9332\u3059\u308b geometry \u578b\u304a\u3088\u3073 geography \u578b\u306e\u5217\u3092\u542b\u3080\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u306b\u3059\u308b\uff0e\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\uff0c\u6b21\u306e\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3059\u308b\uff0e<\/p>\n<pre>CREATE TABLE RandomPoints (\n  id int identify(1,1),\n  geom geometry,\n  geog geography\n)\nGO<\/pre>\n<p>\u3000\u7121\u4f5c\u70ba\u306b\u5206\u6563\u3059\u308b Point \u30c7\u30fc\u30bf\u3092 10000 \u884c\u30c6\u30fc\u30d6\u30eb\u306b\u79fb\u5165\u3059\u308b\u305f\u3081\uff0c\u6b21\u3092\u5b9f\u884c\u3059\u308b\uff0e<\/p>\n<pre>DECLARE @i int = 1\nDECLARE @lat float, @long float\nWHILE @i &lt; 10000\nBEGIN\n  SET @lat = (RANF() * 180) - 90\n  SET @long = (RANF() * 360) - 180\n  INSERT INTO RandmoPoints (geom, geog) VALUES(\n    geometry::Point(@lat, @long, 4326)\n    geography::Point(@lat, @long, 4326)\n  )\n  SET @i = @i + 1\nEND\nGO<\/pre>\n<p>\u3000\u7a7a\u9593\u30c7\u30fc\u30bf\u306e\u5217\u3092\u542b\u3080\u30c6\u30fc\u30d6\u30eb\u3092\u6709\u3057\u3066\u3044\u308b\u4eca\uff0c\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u8ffd\u52a0\u3067\u304d\u308b\u306f\u305a\u3060\u308d\u3046\uff1f\u5b9f\u969b\u306b\u306f\uff0c\u307e\u3060\u3067\u304d\u306a\u3044\uff0e\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306f\uff0c\u305d\u308c\u3089\u306e\u30bb\u30eb\u3092\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3055\u308c\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u4e3b\u30ad\u30fc\u306b\u95a2\u9023\u4ed8\u3051\u308b\u3053\u3068\u3067\uff0c\u30b8\u30aa\u30e1\u30c8\u30ea\u306b\u5c5e\u3059\u308b\u30b0\u30ea\u30c3\u30c9\u30bb\u30eb\u3092\u8b58\u5225\u3059\u308b\uff0e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u81ea\u4f53\u306f (grid cell id, primary key) \u306e\u6570\u306e\u30da\u30a2\u306e\u5f62\u3092\u3068\u308b\uff0e\u305d\u308c\u3086\u3048\uff0c\u5b9a\u7fa9\u3055\u308c\u305f\u4e3b\u30ad\u30fc\u3092\u3082\u3064\u30c6\u30fc\u30d6\u30eb\u306b\u306e\u307f\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u8ffd\u52a0\u3067\u304d\u308b\uff0e<\/p>\n<p>\u3000\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u751f\u6210\u3059\u308b\u524d\u306b\uff0cRandomPoints \u30c6\u30fc\u30d6\u30eb\u306e id \u5217\u306b\u4e3b\u30ad\u30fc\u3092\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\uff0c\u6b21\u306e\u30af\u30a8\u30ea\u3092\u4f7f\u3063\u3066\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u308b\uff0e<\/p>\n<pre>ALTER TABLE RandomPoints\nADD CONSTRAINT idxCluster PRIMARY KEY CLUSTERED (id ASC)\nGO<\/pre>\n<p>\u6ce8\u610f\u3000\u30c6\u30fc\u30d6\u30eb\u306b\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u751f\u6210\u3059\u308b\u306b\u306f\uff0c\u30c6\u30fc\u30d6\u30eb\u306f\u307e\u305a\u30af\u30e9\u30b9\u30bf\u30fc\u5316\u4e3b\u30ad\u30fc\u3092\u6301\u305f\u306a\u304f\u3066\u306f\u306a\u3089\u306a\u3044\uff0e<\/p>\n<h4>geometry \u578b\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f5c\u6210\u3059\u308b<\/h4>\n<p>\u3000\u7a7a\u9593\u30c7\u30fc\u30bf\u306e\u5217\u304a\u3088\u3073\u4e3b\u30ad\u30fc\u3092\u542b\u3080\u30c6\u30fc\u30d6\u30eb\u3092\u6709\u3059\u308b\u4eca\uff0c\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u8ffd\u52a0\u3067\u304d\u308b\uff0egeometry \u578b\u3068 geography \u578b\u3068\u3067\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u751f\u6210\u3055\u308c\u308b\u65b9\u6cd5\u306f\u5c11\u3057\u9055\u3046\uff0e\u307e\u305a\u306f\u3058\u3081\u306b\uff0cRandomPoints \u30c6\u30fc\u30d6\u30eb\u306e geom \u5217\u306b geometry \u578b\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u3069\u306e\u3088\u3046\u306b\u751f\u6210\u3055\u308c\u308b\u304b\uff0c\u6b21\u306e\u30af\u30a8\u30ea\u306b\u793a\u3059\u69cb\u6587\u3092\u4f7f\u3063\u3066\u898b\u3066\u3044\u3053\u3046\uff0e<\/p>\n<pre>CREATE SPATIAL INDEX idxGeometry ON RandomPoints (geom)\nUSING GEOMETRY_GRID\nWITH (\n  BOUNDING_BOX = (-180, -90, 180, 90),\n  GRIDS = (\n    LEVEL_1 = MEDIUM,\n    LEVEL_2 = MEDIUM,\n    LEVEL_3 = MEDIUM,\n    LEVEL_4 = MEDIUM),\n  CELLS_PER_OBJECT = 16\n)\nGO<\/pre>\n<p>\u3000\u3053\u306e\u8a18\u8ff0\u306e\u5404\u8981\u7d20\u3092\u9806\u756a\u306b\u691c\u8a3c\u3057\u3066\u3044\u3053\u3046\uff0e<\/p>\n<ul>\n<li>\u6700\u521d\u306e\u884c\u306f SQL Server \u306b\u304a\u3044\u3066\u4efb\u610f\u306e\u578b\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u751f\u6210\u3059\u308b\u305f\u3081\u306e\u6a19\u6e96\u7684\u306a T-SQL \u69cb\u6587\u3092\u4f7f\u3046\uff0e<code>CREATE INDEX indexnsname ON tablename (columnname)<\/code>. \u3053\u306e\u5834\u5408\uff0cRandomPoints \u30c6\u30fc\u30d6\u30eb\u306e geom \u5217\u306b idxGeometry \u3068\u547c\u3070\u308c\u308b SPATIAL \u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u751f\u6210\u3057\u3066\u3044\u308b\uff0e<\/li>\n<li><code>USING GEOMETRY_GRID<\/code> \u306f GEOMETRY_GRID \u30c6\u30c3\u30bb\u30ec\u30fc\u30b7\u30e7\u30f3\u30b9\u30ad\u30fc\u30e0\u306b\u57fa\u3065\u3044\u3066\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u751f\u6210\u3059\u308b\u3053\u3068\u3092\u6307\u5b9a\u3059\u308b\uff0e\u5404\u30c7\u30fc\u30bf\u578b\u306f\u5bfe\u5fdc\u3059\u308b\u30c6\u30c3\u30bb\u30ec\u30fc\u30b7\u30e7\u30f3\u30b9\u30ad\u30fc\u30e0\u3092\u6301\u3064\uff0e\u4eca\u306f geometry \u578b\u306e\u5217\u306b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u751f\u6210\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u308b\u305f\u3081\uff0cGEOMETRY_GRID \u30b9\u30ad\u30fc\u30e0\u3092\u6307\u5b9a\u3059\u308b\uff0e<\/li>\n<li><code>WITH<\/code> \u53e5\u306f\u30b0\u30ea\u30c3\u30c9\u306e\u69cb\u7bc9\u65b9\u6cd5\u306b\u5f71\u97ff\u3059\u308b\u591a\u304f\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u542b\u3093\u3067\u3044\u308b\uff0eBOUNDING_BOX, GRIDS \u304a\u3088\u3073 CELLS_PER_OBJECT \u306f\u6b21\u3067\u8ff0\u3079\u308b\uff0e<\/li>\n<li><code>BOUNDING_BOX<\/code> \u306f\u30b0\u30ea\u30c3\u30c9\u304c\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\u3059\u308b\u7bc4\u56f2\u4ee5\u4e0a\u306e\u5ea7\u6a19\u3092\u6307\u5b9a\u3059\u308b\u3082\u306e\u3067\uff0cxmin, ymin, xmax, ymax \u306e\u9806\u3067\u3042\u308b\uff0egeometry \u578b\u306f\u7121\u9650\u306e\u5e73\u9762\u4e0a\u3067\u30a2\u30a4\u30c6\u30e0\u306e\u4f4d\u7f6e\u3092\u8a18\u8ff0\u3059\u308b\uff0e\u3057\u304b\u3057\uff0c\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306b\u5fc5\u8981\u3068\u3055\u308c\u308b\u7a7a\u9593\u3092\u5206\u5272\u3059\u308b\u30b0\u30ea\u30c3\u30c9\u306f\u6709\u9650\u306e\u5e73\u9762\u5185\u3067\u306e\u307f\u9069\u7528\u3055\u308c\u308b\uff0e\u305d\u308c\u3086\u3048 geometry \u578b\u306e\u5217\u306b\u9069\u7528\u3055\u308c\u308b\u3044\u304b\u306a\u308b\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u305f\u3081\u306b\u3082 BOUNDING_BOX \u306e\u7bc4\u56f2\u3092\u5e38\u306b\u6307\u5b9a\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\uff0exmax \u306f xmin \u3088\u308a\u5927\u304d\u304f\uff0cymax \u306f ymin \u3088\u308a\u3082\u5927\u304d\u3044\u9650\u308a\uff0c\u5883\u754c\u30dc\u30c3\u30af\u30b9\u306e\u5ea7\u6a19\u5024\u306f\u4efb\u610f\u306e\u6d6e\u52d5\u5c0f\u6570\u70b9\u5024\u3067\u3042\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\uff0e<\/li>\n<\/ul>\n<p>\u30c1\u30c3\u30d7\u30b9\u3000\u5883\u754c\u30dc\u30c3\u30af\u30b9\u306f\u30c7\u30fc\u30bf\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3055\u308c\u308b\u7bc4\u56f2\u3092\u6307\u5b9a\u3059\u308b\uff0e\u5883\u754c\u30dc\u30c3\u30af\u30b9\u306e\u5916\u5074\u306b\u4f4d\u7f6e\u3059\u308b\u3044\u304b\u306a\u308b\u5730\u7269\u3082\uff0c\u30c6\u30fc\u30d6\u30eb\u306e\u3044\u304b\u306a\u308b\u7a7a\u9593\u30af\u30a8\u30ea\u306b\u3082\u542b\u307e\u308c\u308b\u304c\uff0c\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3055\u308c\u308b\u3053\u3068\u306f\u306a\u3044\uff0e<\/p>\n<ul>\n<li><code>GRIDS<\/code> \u5c5e\u6027\u306f\u30b0\u30ea\u30c3\u30c9\u306e\u5404\u5c64\u306b\u542b\u307e\u308c\u308b\u30bb\u30eb\u306e\u5bc6\u5ea6\u3092\u6307\u5b9a\u3059\u308b\uff0eLOW \u89e3\u50cf\u5ea6\u306f 4 \u00d7 4 \u30b0\u30ea\u30c3\u30c9\u3092\u8868\u73fe\u3057\uff0cMEDIUM \u89e3\u50cf\u5ea6\u306f 8 \u00d7 8 \u30b0\u30ea\u30c3\u30c9\u306b\u5bfe\u5fdc\u3057\uff0cHIGH \u89e3\u50cf\u5ea6\u306f 16 \u00d7 16 \u30b0\u30ea\u30c3\u30c9\u3092\u6307\u5b9a\u3059\u308b\uff0e\u5168\u30b0\u30ea\u30c3\u30c9\u30ec\u30d9\u30eb\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u89e3\u50cf\u5ea6\u306f MEDIUM \u3067\u3042\u308b\uff0e<\/li>\n<li>CELLS_PER_OBJECT \u5024\u306f\uff0c\u500b\u3005\u306e\u5168\u3066\u306e\u30b8\u30aa\u30e1\u30c8\u30ea\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u8a18\u8ff0\u306b\u542b\u307e\u308c\u308b\u30bb\u30eb\u306e\u6700\u5927\u6570\u3092\u6307\u5b9a\u3059\u308b\uff0e\u4e00\u5ea6\u3053\u306e\u4e0a\u9650\u306b\u9054\u3059\u308b\u3068\uff0c\u30bb\u30eb\u306f\u305d\u308c\u4ee5\u4e0a\u4f4e\u5c64\u306e\u30b0\u30ea\u30c3\u30c9\u30ec\u30d9\u30eb\u306b\u518d\u5206\u5272\u3055\u308c\u306a\u304f\u306a\u308b\uff0e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u5024\u306f 16 \u3067\u3042\u308b\uff0e<\/li>\n<\/ul>\n<p>\u3000\u305f\u3063\u305f\u4eca\u8a18\u8ff0\u3057\u305f\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\uff0c\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306b\u7279\u5fb4\u7684\u306a\u5c5e\u6027\u306b\u95a2\u9023\u3059\u308b\uff0eSQL Server \u306b\u304a\u3044\u3066\u5168\u3066\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u578b\u306b\u6c4e\u7528\u7684\u306a\uff0c\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u591a\u304f\u306e\u8ffd\u52a0\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u308b\uff0e\u305f\u3068\u3048\u3070 PAD_INDEX \u3084 SORT_IN_TEMPDB \u306a\u3069\uff0e\u5229\u7528\u53ef\u80fd\u306a\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u5168\u3066\u306e\u30ea\u30b9\u30c8\u306f\u4ee5\u4e0b\u3092\u53c2\u7167\u306e\u3053\u3068\uff0ehttp:\/\/msdn.microsoft.com\/en-us\/library\/bb934196.aspx<\/p>\n<p>\u30c1\u30c3\u30d7\u30b9\u3000\u65e2\u5b58\u306e\u3059\u3079\u3066\u306e\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306b\u4f7f\u308f\u308c\u308b\u30b0\u30ea\u30c3\u30c9\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u6b21\u306e\u30c6\u30fc\u30d6\u30eb\u3092\u8abf\u3079\u308b\u3053\u3068\u3067\u30c1\u30a7\u30c3\u30af\u3067\u304d\u308b\uff0esys.spatial_index_tesselation.\u00a0<\/p>\n<h4>geography \u578b\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f5c\u6210\u3059\u308b<\/h4>\n<p>\u3000\u30c6\u30fc\u30d6\u30eb\u306e geography \u578b\u306e\u5217\u306b\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u751f\u6210\u3059\u308b\u69cb\u6587\u306f geometry \u578b\u306e\u305d\u308c\u3068\u3088\u304f\u4f3c\u3066\u3044\u308b\u304c\uff0c\u5c11\u3057\u9055\u3044\u304c\u3042\u308b\uff0eRandomPoints \u30c6\u30fc\u30d6\u30eb\u306e geography \u578b\u306e\u5217 geog \u306b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u751f\u6210\u3059\u308b\u305f\u3081\uff0c\u6b21\u306e\u30b3\u30fc\u30c9\u3092\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u308b\uff0e<\/p>\n<pre>CREATE SPATIAL_INDEX idxGeography ON RandomPoints (geog)\nUSING GEOGRAPHY_GRID\nWITH (\n  GRIDS = (\n    LEVEL_1 = MEDIUM,\n    LEVEL_2 = MEDIUM,\n    LEVEL_3 = MEDIUM,\n    LEVEL_4 = MEDIUM),\n  CELLS_PER_OBJECT = 16\n)<\/pre>\n<p>\u3000\u6700\u521d\u306b\u6ce8\u610f\u3059\u3079\u304d\u70b9\u3068\u3057\u3066\uff0c\u3053\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306f geomgraphy \u578b\u306b\u57fa\u3065\u3044\u3066\u3044\u308b\u305f\u3081\uff0cUSING GEOGRAPHY_GRID \u53e5\u3092\u4f7f\u3063\u3066\uff0c\u9069\u5207\u306a\u30c6\u30c3\u30bb\u30ec\u30fc\u30b7\u30e7\u30f3\u30b0\u30ea\u30c3\u30c9\u3092\u4f7f\u308f\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\uff0e\u6b21\u306b\uff0cgeometry \u578b\u3068\u9055\u3044\uff0cBOUNDING_BOX \u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u5fc5\u8981\u306a\u3044\uff0e\u5168\u3066\u306e geography \u578b\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u30b0\u30ea\u30c3\u30c9\u306f\u5168\u7403\u3092\u8986\u3046\u3068\u4eee\u5b9a\u3055\u308c\u3066\u3044\u308b\u305f\u3081\uff0c\u660e\u793a\u7684\u306b\u5883\u754c\u30dc\u30c3\u30af\u30b9\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u306f\u306a\u3044\uff0e\u4ed6\u65b9\u3067\uff0cgeography \u578b\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u751f\u6210\u3059\u308b\u306e\u306b\u4f7f\u308f\u308c\u308b\u8a2d\u5b9a\u306f geometry \u578b\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u751f\u6210\u3059\u308b\u306e\u306b\u6307\u5b9a\u3057\u305f\u3082\u306e\u3068\u5168\u304f\u540c\u3058\u3067\u3042\u308b\uff0e<\/p>\n<h3>SQL Server Management Studio \u306b\u304a\u3044\u3066\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f5c\u6210\u3059\u308b<\/h3>\n<p>\u3000\u3082\u3057\u671b\u3080\u306a\u3089\uff0cSQL Server Management Studio \u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u30e1\u30cb\u30e5\u30fc\u3092\u4f7f\u3063\u3066\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3082\u3067\u304d\uff0c\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u306b\u3088\u308a\uff0e<\/p>\n<ol>\n<li>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc\u30da\u30a4\u30f3\u3067\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u8ffd\u52a0\u3057\u305f\u3044\u30c6\u30fc\u30d6\u30eb\u306e\u5de6\u5074\u306b\u3042\u308b + \u30a2\u30a4\u30b3\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\uff0e<\/li>\n<li>\u30c6\u30fc\u30d6\u30eb\u306e\u4e0b\u306b\u5c55\u958b\u3055\u308c\u305f\u30ce\u30fc\u30c9\u306e\u30ea\u30b9\u30c8\u304b\u3089\uff0c\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u30bf\u30d6\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3066\u300c\u65b0\u3057\u3044\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u300d\u3092\u9078\u3076\uff0e<\/li>\n<li>\u300c\u65b0\u3057\u3044\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u300d\u30c0\u30a4\u30a2\u30ed\u30b0\u30dc\u30c3\u30af\u30b9\u304c\u51fa\u73fe\u3059\u308b\uff0e\u300c\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u7a2e\u985e\u300d\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30ea\u30b9\u30c8\u304b\u3089\uff0c\u300c\u7a7a\u9593\u300d\u3092\u9078\u3076\uff0e<\/li>\n<li>\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u540d\u3092\u30bf\u30a4\u30d7\u3059\u308b\uff0e<\/li>\n<li>\u300c\u8ffd\u52a0\u300d\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\uff0e<\/li>\n<li>\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u8ffd\u52a0\u3059\u308b\u5217\u3092\u9078\u3076\u3088\u3046\u4fc3\u3055\u308c\u308b\uff0e\u5bfe\u5fdc\u3059\u308b\u9069\u5207\u306a geography \u578b\u3042\u308b\u3044\u306f geometry \u578b\u306e\u5217\u306e\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3092\u30c1\u30a7\u30c3\u30af\u3057\uff0cOK\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\uff0e<\/li>\n<li>\u300c\u65b0\u3057\u3044\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u300d\u30c0\u30a4\u30a2\u30ed\u30b0\u30dc\u30c3\u30af\u30b9\u304b\u3089\u623b\u308b\u6642\uff0c\u300c\u30da\u30fc\u30b8\u306e\u9078\u629e\u300d\u30d8\u30c3\u30c0\u30fc\u304b\u3089\u300c\u7a7a\u9593\u300d\u3092\u9078\u3076\uff0e<\/li>\n<li>Figure 14-8 \u306b\u793a\u3057\u305f\u3088\u3046\u306b\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u8a2d\u5b9a\u30da\u30fc\u30b8\u304c\u51fa\u73fe\u3059\u308b\uff0e\uff08\u3082\u3057 geometry \u578b\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f5c\u6210\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u308b\u306a\u3089\uff09\u5883\u754c\u30dc\u30c3\u30af\u30b9\u306e\u5024\uff0c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3054\u3068\u306e\u30bb\u30eb\u6570\u304a\u3088\u3073\u30b0\u30ea\u30c3\u30c9\u306e\u5404\u5c64\u3067\u306e\u30b0\u30ea\u30c3\u30c9\u89e3\u50cf\u5ea6\u3092\u5165\u529b\u3059\u308b\uff0e<\/li>\n<li>\u9069\u5207\u306a\u5024\u3092\u5165\u529b\u3057\u7d42\u3048\u305f\u3089\uff0cOK\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\uff0e<\/li>\n<\/ol>\n<p>\u3000\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u4f5c\u6210\u3055\u308c\uff0c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc\u3067\u898b\u3048\u308b\u3088\u3046\u306b\u306a\u308b\uff0e<\/p>\n<p>\u4ed8\u8a18\u3000\u4e00\u5ea6\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f5c\u6210\u3059\u308b\u3068\u4e3b\u30ad\u30fc\u3092\u30c6\u30fc\u30d6\u30eb\u304b\u3089\u524a\u9664\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u304f\u306a\u308b\uff0e\u3068\u3044\u3046\u306e\u306f\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u4e3b\u30ad\u30fc\u306b\u4f9d\u5b58\u3057\u3066\u3044\u308b\u304b\u3089\u3067\u3042\u308b\uff0e\u4e3b\u30ad\u30fc\u3092\u524a\u9664\u3059\u308b\u305f\u3081\u306b\u306f\uff0c\u307e\u305a\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u524a\u9664\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\uff0e<\/p>\n<h3>\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f7f\u3046\u305f\u3081\u306e\u30af\u30a8\u30ea\u3092\u30c7\u30b6\u30a4\u30f3\u3059\u308b<\/h3>\n<p>\u3000\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u6539\u5584\u3067\u304d\u308b\u306e\u306f\u9650\u3089\u308c\u305f\u7a7a\u9593\u30af\u30a8\u30ea\u3060\u3051\u3067\u3042\u308b\uff0e\u7279\u306b\uff0cSQL Server \u306f\u6b21\u306e\u30e1\u30bd\u30c3\u30c9\u306e\u7d50\u679c\u306e\u305f\u3081\u306e\u4e00\u6b21\u30d5\u30a3\u30eb\u30bf\u30fc\u3068\u3057\u3066\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f7f\u3046\u3053\u3068\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u308b\uff0e<\/p>\n<ul>\n<li>Filter()<\/li>\n<li>STContains()<\/li>\n<li>STDistance()<\/li>\n<li>STEquals()<\/li>\n<li>STIntersects()<\/li>\n<li>STOverlaps()<\/li>\n<li>STTouches()<\/li>\n<li>STWithin()<\/li>\n<\/ul>\n<p>\u3000\u3053\u308c\u3089\u306e\u30e1\u30bd\u30c3\u30c9\u306e\u3044\u305a\u308c\u304b\u306e\u7d50\u679c\u306b\u57fa\u3065\u304f\u30c7\u30fc\u30bf\u3092\u62bd\u51fa\u3059\u308b\u30af\u30a8\u30ea\u3092\u66f8\u3044\u3066\u3044\u308b\u306a\u3089\uff0c\u305d\u3057\u3066\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f7f\u3046\u30af\u30a8\u30ea\u3092\u6b32\u3057\u3066\u3044\u308b\u306a\u3089\uff0c\u305c\u3072\u6b21\u306e\u57fa\u6e96\u306b\u5408\u81f4\u3057\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\uff0e<\/p>\n<ul>\n<li>\u7d50\u679c\u96c6\u5408\u3092\u30d5\u30a3\u30eb\u30bf\u30fc\u3059\u308b\u305f\u3081\u306e\u30af\u30a8\u30ea\u3067\u3053\u308c\u3089\u306e\u30e1\u30bd\u30c3\u30c9\u306f WHERE \u53e5\u306b\u542b\u307e\u308c\u3066\u3044\u306a\u304f\u3066\u306f\u306a\u3089\u306a\u3044\uff08SELECT \u53e5\u3084 HAVING \u53e5\uff0cGROUP BY \u53e5\u3067\u306f\u306a\u3044\uff09\uff0e<\/li>\n<li>STDIstance() \u30e1\u30bd\u30c3\u30c9\u3092\u9664\u3044\u3066\uff0cWHERE \u53e5\u306b\u542b\u307e\u308c\u308b\u5f0f\u306f <code>A.Method(B) = 1<\/code> \u306e\u5f62\u3067\u306a\u304f\u3066\u306f\u306a\u3089\u306a\u3044\uff0e<\/li>\n<\/ul>\n<p>\u4ed8\u8a18\u3000\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f7f\u3046\u305f\u3081\u306b\u306f\uff0c\u4e00\u822c\u7684\u306a\u69cb\u6587 <code>A.Method(B) = 1<\/code> \u3092\u4f7f\u3063\u3066\u30af\u30a8\u30ea\u5f0f\u3092\u8a18\u8ff0\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\uff0e\u8ad6\u7406\u7684\u306b\u7b49\u4fa1\u3067\u3042\u3063\u3066\u3082\uff0c\u30af\u30a8\u30ea <code>SELECT * FROM TABLE WHERE A.STEqual(B) = 1<\/code> \u306f\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u304c\uff0c\u30af\u30a8\u30ea <code>SELECT * FROM TABLE WHERE 1 = A.STEqual(B)<\/code> \u306f\u3067\u304d\u306a\u3044\uff0e<\/p>\n<ul>\n<li>STDistance() \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u304a\u3046\u3068\u3057\u3066\u3044\u308b\u5834\u5408\uff0cWHERE \u53e5\u306e\u5f0f\u306f\u69cb\u6587 <code>A.STDIstance(B) &lt; x<\/code> \u3042\u308b\u3044\u306f <code>A.STDistance(B) &lt;= x<\/code> \u3092\u4f7f\u3063\u3066\u6307\u5b9a\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\uff0e<\/li>\n<li>\u305d\u306e\u30e1\u30bd\u30c3\u30c9\u306f\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u5b9a\u7fa9\u3055\u308c\u305f\u30c7\u30fc\u30bf\u306e\u5217\u3067\u5b9f\u884c\u3055\u308c\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\uff0e<\/li>\n<\/ul>\n<p>\u3000\u4e86\u627f\u3044\u305f\u3060\u304d\u305f\u3044\u304c\uff0c\u305f\u3068\u3048\u3053\u308c\u3089\u306e\u57fa\u6e96\u306b\u5168\u3066\u5408\u81f4\u3057\u3066\u3082\uff0c\u30af\u30a8\u30ea\u30aa\u30d7\u30c6\u30a3\u30de\u30a4\u30b6\u30fc\u306f\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f7f\u7528\u3057\u306a\u3044\u53ef\u80fd\u6027\u304c\u3042\u308a\uff0c\u95a2\u9023\u3059\u308b\u30af\u30a8\u30ea\u30d7\u30e9\u30f3\u306e\u30b3\u30b9\u30c8\u306b\u4f9d\u5b58\u3059\u308b\uff08\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u8a73\u7d30\u3092\u8ad6\u3058\u308b\uff09\uff0e<\/p>\n<p>\u3000\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306f\u975e\u5e38\u306b\u9078\u629e\u7684\u306a\u30af\u30a8\u30ea\u306b\u3088\u308a\u4f7f\u308f\u308c\u305f\u6642\u306b\u6700\u3082\u52b9\u679c\u3092\u767a\u63ee\u3059\u308b\uff0e\u3064\u307e\u308a\uff0c\u4ea4\u5dee\u3059\u308b\u30b8\u30aa\u30e1\u30c8\u30ea\u5185\u90e8\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u304c\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u5168\u4f53\u306b\u6bd4\u8f03\u3057\u3066\u76f8\u5bfe\u7684\u306b\u5c0f\u3055\u304f\u9078\u629e\u3055\u308c\u308b\u3088\u3046\u306a\u72b6\u6cc1\u3067\u3042\u308b\uff0e\u6a2a\u305f\u308f\u308b\u30c6\u30fc\u30d6\u30eb\u304b\u3089\u9078\u629e\u3055\u308c\u305f\u884c\u306e\u30d1\u30fc\u30bb\u30f3\u30c6\u30fc\u30b8\u304c\u5897\u52a0\u3059\u308b\u306b\u3064\u308c\uff0c\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f7f\u3046\u3053\u3068\u304c\u5b9f\u969b\u30af\u30a8\u30ea\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u6539\u5584\u3055\u305b\u308b\u3069\u3053\u308d\u304b\u52a3\u5316\u3055\u305b\u308b\u30dd\u30a4\u30f3\u30c8\u307e\u3067\uff0c\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306b\u5bfe\u3057\u3066\u8abf\u3079\u308b\u5b9f\u884c\u30b3\u30b9\u30c8\u306f\u30c6\u30fc\u30d6\u30eb\u306e\u5168\u30b9\u30ad\u30e3\u30f3\u3092\u5b9f\u884c\u3059\u308b\u30b3\u30b9\u30c8\u3092\u4e0a\u56de\u308a\u59cb\u3081\u308b\uff0e<\/p>\n<p>\u3000FIgure 14-9 \u306f\u30af\u30a8\u30ea\u30bb\u30c3\u30c8\u3092\u5b9f\u884c\u3059\u308b\u306e\u306b\u8981\u3057\u305f\u6642\u9593\u3068 \u7121\u4f5c\u70ba\u306b\u5206\u6563\u3057\u305f RandomPoints \u30c6\u30fc\u30d6\u30eb\u5185\u306e\u30dd\u30a4\u30f3\u30c8\u306e\u30bb\u30c3\u30c8\u3068\u3092\u30d7\u30ed\u30c3\u30c8\u3057\u305f\u30b0\u30e9\u30d5\u306b\u793a\u3059\uff0e\u6b21\u306e\u4e00\u822c\u7684\u306a\u69cb\u6587\u306b\u57fa\u3065\u304f\uff0e<\/p>\n<pre>DECLARE @Window geometry\nSET @Window = geometry::STPolyFromText('POLYGON((0 0, 1 0, 1 1, 0 1, 0 0))', 4326)\n\nSELECT *\nFROM RandomPoints\nWHERE geom.STIntersects(@Window) = 1<\/pre>\n<p>\u3000\u30af\u30a8\u30ea\u3092\u7e70\u308a\u8fd4\u3057\u5b9f\u884c\u3057\uff0c\u6b63\u65b9\u5f62\u306e Polygon @Window \u306e\u8fba\u306e\u9577\u3055\u3092\u5897\u52a0\u3059\u308b\u3088\u3046\u6307\u5b9a\u3059\u308b\uff0e\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u5404\u5927\u304d\u3055\u3054\u3068\u306b\uff0cRandomPoints \u30c6\u30fc\u30d6\u30eb\u306e geom \u5217\u3067\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f7f\u7528\u3057\u305f\u5834\u5408\u3068\u4f7f\u7528\u3057\u306a\u3044\u5834\u5408\u3067\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3057\u305f\u3082\u306e\u3067\u3042\u308b\uff0e<\/p>\n<p>\u3000Figure 14-9 \u3092\u898b\u3066\u660e\u3089\u304b\u306a\u3088\u3046\u306b\uff0c\u30af\u30a8\u30ea\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u30b5\u30a4\u30ba\u304c\u975e\u5e38\u306b\u5c0f\u3055\u3044\u6642\u306b\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u6700\u3082\u5229\u76ca\u304c\u3042\u308b\uff0e\u3053\u306e\u6bd4\u8f03\u306f\u5358\u7d14\u3067\u4eba\u5de5\u7684\u306a\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306b\u57fa\u3065\u3044\u305f\u7d50\u679c\u3067\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3042\u308b\uff0e\u7279\u5b9a\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u304a\u3051\u308b\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f7f\u3046\u76f8\u5bfe\u7684\u306a\u5229\u76ca\u306f\u591a\u304f\u306e\u56e0\u5b50\u306b\u4f9d\u5b58\u3057\uff0c\u3053\u3053\u3067\u56f3\u793a\u3057\u305f\u305d\u308c\u3068\u306f\u5909\u5316\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\uff0e<\/p>\n<h3>\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306b\u30d2\u30f3\u30c8\u3092\u63d0\u4f9b\u3059\u308b<\/h3>\n<p>\u3000\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3059\u308b\u3068\u306a\u308b\u3068\uff0cSQL Server \u304c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u5fc5\u8981\u306a\u7d50\u679c\u3092\u898b\u3064\u3051\u3066\u8fd4\u3059\u306e\u306b\u4f7f\u3046\u4e00\u3064\u4ee5\u4e0a\u306e\u30a2\u30d7\u30ed\u30fc\u30c1\u304c\u3057\u3070\u3057\u3070\u5b58\u5728\u3059\u308b\uff0eSQL Server \u306f\u7279\u5b9a\u306e\u30af\u30a8\u30ea\u306e\u305f\u3081\u306b\u3069\u3061\u3089\u306e\u30a2\u30d7\u30ed\u30fc\u30c1\uff08\u3084\u30d7\u30e9\u30f3\uff09\u3092\u4f7f\u3046\u304b\u3092\u6c7a\u5b9a\u3059\u308b\u305f\u3081\u306b\u30b3\u30b9\u30c8\u30d9\u30fc\u30b9\u306e\u30af\u30a8\u30ea\u30aa\u30d7\u30c6\u30a3\u30de\u30a4\u30b6\u30fc\u3092\u63a1\u7528\u3057\u3066\u3044\u308b\uff0e\u30af\u30a8\u30ea\u30aa\u30d7\u30c6\u30a3\u30de\u30a4\u30b6\u30fc\u306f\u5404\u30d7\u30e9\u30f3\u306e\u63a8\u5b9a\u30b3\u30b9\u30c8\u3068\u3082\u306b\u591a\u304f\u306e\u4ee3\u66ff\u30af\u30a8\u30ea\u30d7\u30e9\u30f3\u3092\u767a\u751f\u3055\u305b\u308b\uff0e\u305d\u306e\u30af\u30a8\u30ea\u306e\u305f\u3081\u306b\u9078\u3070\u308c\u308b\u5b9f\u969b\u306e\u5b9f\u884c\u30d7\u30e9\u30f3\u306f\u63a8\u5b9a\u30b3\u30b9\u30c8\u306e\u6700\u3082\u4f4e\u3044\u3082\u306e\u306e\u4e00\u3064\u3067\u3042\u308b\uff0e\u3064\u307e\u308a\uff0c\u6700\u3082\u52b9\u7387\u306e\u826f\u3044\u30af\u30a8\u30ea\u3067\u3042\u308b\uff0e<\/p>\n<p>\u3000\u4e00\u822c\u7684\u306b\u306f\uff0c\u3053\u306e\u30d7\u30ed\u30bb\u30b9\u306f\u81ea\u52d5\u7684\u306b\u8d77\u3053\u308a\uff0c\u8aad\u8005\u306f\u4f55\u3082\u5fc3\u914d\u3059\u308b\u5fc5\u8981\u306f\u306a\u3044\uff0e\u4f8b\u3048\u3070\u30c6\u30fc\u30d6\u30eb\u306b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u5b58\u5728\u3057\uff0c\u304b\u3064\u305d\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f7f\u3046\u30af\u30a8\u30ea\u30aa\u30d7\u30c6\u30a3\u30de\u30a4\u30b6\u30fc\u306e\u63a8\u5b9a\u304c\u6700\u3082\u52b9\u7387\u7684\u306a\u30af\u30a8\u30ea\u3092\u751f\u6210\u3059\u308b\u306a\u3089\uff0c\u305d\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306f\u81ea\u52d5\u7684\u306b\u4f7f\u308f\u308c\u308b\uff0e\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306f\u7a7a\u9593\u30af\u30a8\u30ea\u3092\u3088\u308a\u52b9\u7387\u7684\u306b\u3057\uff0c\u305d\u308c\u3067\uff0c\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u751f\u6210\u3059\u308b\u3068\uff0c\u4ed6\u306b\u306f\u4f55\u3082\u3059\u308b\u3053\u3068\u304c\u306a\u3044\uff0e\u672c\u5f53\u3060\u308d\u3046\u304b\uff1f\u4e0d\u5e78\u306a\u3053\u3068\u306b\uff0c\u3053\u308c\u306f\u5b9f\u969b\u306b\u306f\u6b63\u3057\u304f\u306a\u3044\uff0e\u4e8b\u5b9f\uff0c\u5148\u8ff0\u3057\u305f\u6587\u306b\u306f2\u3064\u306e\u8aa4\u308a\u304c\u3042\u308b\uff0e\u9806\u756a\u306b\u305d\u308c\u3089\u3092\u898b\u3066\u3044\u3053\u3046\uff0e<\/p>\n<p>\u3000\u7b2c\u4e00\u306b\uff0c\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f7f\u3046\u3053\u3068\u304c\u5e38\u306b\u7a7a\u9593\u30af\u30a8\u30ea\u3092\u3088\u308a\u52b9\u7387\u7684\u306b\u3059\u308b\u308f\u3051\u3067\u306f\u306a\u3044\uff0e\u3059\u3067\u306b\u898b\u305f\u901a\u308a\uff0cGRIDS, CELLS_PER_OBJECT \u304a\u3088\u3073 BOUNDING_BOX \u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u5024\u3092\u4e0d\u9069\u5207\u306b\u8a2d\u5b9a\u3059\u308b\u3068\uff0c\u30bd\u30fc\u30b9\u30c6\u30fc\u30d6\u30eb\u306e\u7a7a\u9593\u30c7\u30fc\u30bf\u306b\u5bfe\u3057\u3066\u76f4\u63a5\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3088\u308a\u3082\u9762\u5012\u306a\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u4f7f\u7528\u306b\u81f3\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\uff0e\u3053\u306e\u5834\u5408\uff0c\u30af\u30a8\u30ea\u30aa\u30d7\u30c6\u30a3\u30de\u30a4\u30b6\u30fc\u306f\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306b\u3088\u308b\u30af\u30a8\u30ea\u5b9f\u884c\u30d7\u30e9\u30f3\u3092\uff08\u6b63\u3057\u304f\uff09\u4f7f\u7528\u3057\u306a\u3044\u9078\u629e\u3092\u3059\u308b\uff0e\u3068\u3044\u3046\u306e\u306f\u9ad8\u30b3\u30b9\u30c8\u306b\u95a2\u9023\u3059\u308b\u304b\u3089\u3067\u3042\u308b\uff0e<\/p>\n<p>\u3000\u4e8c\u756a\u76ee\u306e\u8aa4\u3063\u305f\u4eee\u5b9a\u306f\uff0c\u30af\u30a8\u30ea\u30aa\u30d7\u30c6\u30a3\u30de\u30a4\u30b6\u30fc\u306f\u3044\u305a\u308c\u306e\u30d7\u30e9\u30f3\u304c\u63a8\u5b9a\u30b3\u30b9\u30c8\u304c\u6700\u3082\u4f4e\u3044\u304b\u306b\u57fa\u3065\u3044\u3066\u5b9f\u884c\u30d7\u30e9\u30f3\u3092\u6c7a\u5b9a\u3059\u308b\u306e\u3067\u3042\u3063\u3066\uff0c\u6642\u3005\u3053\u306e\u63a8\u5b9a\u304c\u6b63\u3057\u304f\u306a\u3044\u3053\u3068\u304c\u3042\u308b\u3068\u3044\u3046\u4e8b\u5b9f\u306b\u3088\u308b\uff0e\u3053\u308c\u306f\u3069\u306e\u7a2e\u985e\u306e\u30af\u30a8\u30ea\u30d7\u30e9\u30f3\u3067\u3082\u8d77\u3053\u308b\u3053\u3068\u3067\u3042\u308b\u304c\uff0c\u63a8\u5b9a\u3055\u308c\u308b\u7a7a\u9593\u30af\u30a8\u30ea\u306b\u30b3\u30b9\u30c8\u3092\u6b63\u3057\u304f\u5272\u308a\u4ed8\u3051\u308b\u3053\u3068\u306f\u7279\u306b\u96e3\u3057\u3044\uff0e\u7d50\u679c\u3068\u3057\u3066\uff0c\u30aa\u30d7\u30c6\u30a3\u30de\u30a4\u30b6\u30fc\u306f\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f7f\u3046\u30af\u30a8\u30ea\u30d7\u30e9\u30f3\u3092\u9078\u3070\u306a\u3044\u6c7a\u5b9a\u3092\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\uff0e\u3068\u3044\u3046\u306e\u306f\uff0c\u4ed6\u306e\u30d7\u30e9\u30f3\u3068\u6bd4\u8f03\u3057\u3066\u95a2\u9023\u3059\u308b\u30b3\u30b9\u30c8\u3092\u6b63\u3057\u304f\u63a8\u5b9a\u3059\u308b\u306e\u306b\u5931\u6557\u3057\u305f\u304b\u3089\u3067\u3042\u308b\uff0e\u5148\u8ff0\u3057\u305f\u3088\u3046\u306b\uff0c\u3053\u308c\u306f\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u4f7f\u308f\u308c\u306a\u3044\u3068\u3044\u3046\u7d50\u679c\u306b\u306a\u308b\uff0e\u3057\u304b\u3057\u3053\u306e\u5834\u5408\uff0c\u30af\u30a8\u30ea\u30aa\u30d7\u30c6\u30a3\u30de\u30a4\u30b6\u30fc\u306f\u8aa4\u3063\u305f\u6c7a\u5b9a\u3092\u4e0b\u3057\u3066\u304a\u308a\uff0c\u305d\u306e\u30af\u30a8\u30ea\u5b9f\u884c\u30d7\u30e9\u30f3\u306f\u6700\u9069\u3067\u306a\u3044\u3082\u306e\u304c\u9078\u3070\u308c\u308b\uff0e<\/p>\n<p>\u30c1\u30c3\u30d7\u30b9\u3000\u30af\u30a8\u30ea\u30aa\u30d7\u30c6\u30a3\u30de\u30a4\u30b6\u30fc\u304c\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f7f\u3063\u305f\u30d7\u30e9\u30f3\u3092\u9078\u629e\u3057\u305f\u304b\u3069\u3046\u304b\u3092\u77e5\u308b\u306b\u306f\uff0c\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3059\u308b\u524d\u306b SQL Server Management Studio \u3067\u300c\u30af\u30a8\u30ea\u300d\u30e1\u30cb\u30e5\u30fc\u2192\u300c\u5b9f\u969b\u306e\u5b9f\u884c\u8a08\u753b\u3092\u542b\u3081\u308b\u300d\u3092\u9078\u629e\u3059\u308b\uff0e\u4eee\u306b\u5b9f\u884c\u8a08\u753b\u304c\uff08\u7a7a\u9593\uff09\u30af\u30e9\u30b9\u30bf\u30fc\u5316\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u30b7\u30fc\u30af\u3068\u547c\u3070\u308c\u308b\u30b9\u30c6\u30c3\u30d7\u3092\u542b\u3093\u3067\u3044\u308b\u306a\u3089\uff0c\u30af\u30a8\u30ea\u5b9f\u884c\u306e\u4e00\u90e8\u3068\u3057\u3066\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u4f7f\u308f\u308c\u305f\u3053\u3068\u304c\u5206\u304b\u308b\uff0e\u3053\u306e\u30b9\u30c6\u30c3\u30d7\u306b\u30de\u30a6\u30b9\u30ab\u30fc\u30bd\u30eb\u3092\u30db\u30d0\u30ea\u30f3\u30b0\u3055\u305b\u308b\u3068\uff0c\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u4e00\u6b21\u30d5\u30a3\u30eb\u30bf\u30fc\u304b\u3089\u8fd4\u3063\u305f\u591a\u304f\u306e\u884c\u304c\u542b\u307e\u308c\u308b\u60c5\u5831\u30a6\u30a3\u30f3\u30c9\u30a6\u304c\u73fe\u308c\u308b\uff0e<\/p>\n<p>\u3000\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u30af\u30a8\u30ea\u5b9f\u884c\u3067\u4f7f\u308f\u308c\u308b\u3053\u3068\u3092\u78ba\u5b9f\u306b\u3057\u305f\u3044\u306a\u3089\uff0cindex hint \u3092\u8ffd\u52a0\u3057\u3066\u7279\u5b9a\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f7f\u3046\u3088\u3046\u30af\u30a8\u30ea\u30aa\u30d7\u30c6\u30a3\u30de\u30a4\u30b6\u30fc\u306b\u624b\u52d5\u3067\u5f37\u5236\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u308b\uff0e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u30d2\u30f3\u30c8\u306f\u30af\u30a8\u30ea\u306b\u5185\u306b <code>WITH (INDEX)<\/code> \u53e5\u3092\u4f7f\u3046\u3053\u3068\u3067\uff0c\u6b21\u306e\u4f8b\u3067\u30cf\u30a4\u30e9\u30a4\u30c8\u3057\u3066\u3042\u308b\uff0e<\/p>\n<pre>DECLARE @Region geometry\nSET @Region = geometry::STPointFromText('POLYGON((0 0, 10 0, 10 10, 0 10, 0 0))', 4326)\nSELECT\n*\nFROM\nRandomPoints\nWITH(INDEX(idxGeometry))\nWHERE geom.STIntersects(@Region) = 1<\/pre>\n<p>\u3000\u3053\u306e\u30b5\u30f3\u30d7\u30eb\u3067\u306f\uff0c@Region \u5909\u6570\u3068\u4ea4\u5dee\u3059\u308b geom \u5217\u5185\u306b\u542b\u307e\u308c\u308b\u30b8\u30aa\u30e1\u30c8\u30ea\u304c RandomPoints \u30c6\u30fc\u30d6\u30eb\u5185\u306b\u5b58\u5728\u3059\u308b\u5168\u884c\u3092\u30af\u30a8\u30ea\u306f\u9078\u629e\u3059\u308b\uff0e<code>WITH INDEX(idxGeometry)<\/code> \u3067\u6307\u5b9a\u3057\u305f\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u30d2\u30f3\u30c8\u306f\uff0c\u30af\u30a8\u30ea\u304c idxGeometry \u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f7f\u3063\u3066\u5b9f\u884c\u3055\u308c\u308b\u3053\u3068\u3092\u78ba\u4fdd\u3059\u308b\uff0e<\/p>\n<p>\u6ce8\u610f\u3000\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u7a7a\u9593\u30af\u30a8\u30ea\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u6539\u5584\u3057\u3066\u3082\uff0c\u4e0d\u9069\u5207\u306a\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u4f7f\u7528\u3092\u5f37\u5236\u3059\u308b\u3053\u3068\u306f\u540c\u3058\u304f\u3089\u3044\u30af\u30a8\u30ea\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u52a3\u5316\u3055\u305b\u308b\uff0e<\/p>\n<h3>\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u6700\u9069\u5316\u3059\u308b<\/h3>\n<p>\u3000\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u7a7a\u9593\u30af\u30a8\u30ea\u306e\u7d50\u679c\u306b\u4e00\u6b21\u30d5\u30a3\u30eb\u30bf\u30fc\u3068\u3057\u3066\u52d5\u4f5c\u3059\u308b\u3053\u3068\u3067\u52b9\u7387\u7684\u3067\u3042\u308b\u306a\u3089\uff0c\u305d\u308c\u306f\u9ad8\u901f\u3067\u306a\u304f\u3066\u306f\u306a\u3089\u306a\u3044\u3060\u3051\u3067\u306a\u304f\uff0c\u8fd4\u308b\u7d50\u679c\u306e\u507d\u967d\u6027\u306e\u6570\u3092\u3082\u6700\u5c0f\u9650\u306b\u3057\u306a\u304f\u3066\u306f\u306a\u3089\u306a\u3044\uff0e\u3053\u308c\u30892\u3064\u306e\u76ee\u7684\u3092\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u5408\u81f4\u3055\u305b\u308b\u306e\u306b\u3069\u3046\u3046\u307e\u304f\u3084\u308b\u304b\u306f\uff0c\u307b\u3068\u3093\u3069\u9078\u3070\u308c\u308b\u30b0\u30ea\u30c3\u30c9\u89e3\u50cf\u5ea6\uff0c\u5883\u754c\u30dc\u30c3\u30af\u30b9\u304a\u3088\u3073\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3054\u3068\u306e\u30bb\u30eb\u6570\u3068\u3044\u3063\u305f\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u5024\u306b\u3088\u3063\u3066\u6c7a\u307e\u308b\uff0e<\/p>\n<p>\u3000\u3053\u308c\u3089\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u500b\u5225\u306e\u4f7f\u7528\u306e\u9069\u5207\u306a\u5024\u306e\u5177\u4f53\u7684\u306a\u30ac\u30a4\u30c0\u30f3\u30b9\u3092\u4e0e\u3048\u308b\u3053\u3068\u306f\u975e\u5e38\u306b\u96e3\u3057\u3044\uff0e\u3068\u3044\u3046\u306e\u306f\uff0c\u305d\u308c\u3089\u306f\u554f\u984c\u306b\u3057\u3066\u3044\u308b\u7279\u5b9a\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u6b63\u78ba\u306a\u5206\u5e03\u306b\u5f37\u304f\u4f9d\u5b58\u3057\u3066\u3044\u308b\u304b\u3089\u3067\u3042\u308b\uff0e\u3057\u304b\u3057\uff0c\u672c\u7ae0\u3067\u306f\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u8a2d\u5b9a\u306e\u5b9a\u7fa9\u3092\u3059\u308b\u969b\u306b\u5fc3\u306b\u7559\u3081\u304a\u304f\u3079\u304d\u4e00\u822c\u7684\u306a\u30a2\u30a4\u30c7\u30a2\u3092\u793a\u305d\u3046\uff0e<\/p>\n<p>\u30c1\u30c3\u30d7\u30b9\u3000\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3054\u3068\u306b\u7570\u306a\u308b\u8a2d\u5b9a\u3092\u4f7f\u3063\u3066\uff0c\u540c\u3058\u5217\u306b\u8907\u6570\u306e\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u751f\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\uff0e\u4e0d\u5747\u4e00\u306b\u5206\u5e03\u3059\u308b\u30c7\u30fc\u30bf\u3067\u306f\u3053\u308c\u306f\u7279\u306b\u5f79\u7acb\u3064\u3068\u5206\u304b\u308b\u304b\u3082\u3057\u308c\u306a\u3044\uff0e<\/p>\n<h4>\u30b0\u30ea\u30c3\u30c9\u89e3\u50cf\u5ea6<\/h4>\n<p>\u3000\u6b63\u3057\u3044\u30b0\u30ea\u30c3\u30c9\u89e3\u50cf\u5ea6\u3092\u9078\u629e\u3059\u308b\u3053\u3068\u306f\uff0c\u30b0\u30ea\u30c3\u30c9\u306e\u5404\u5c64\u306b\u542b\u307e\u308c\u308b\u30bb\u30eb\u306e\u6570\u3092\u9078\u629e\u3059\u308b\u3053\u3068\u3067\u3082\u3042\u308b\u306e\u3060\u304c\uff0c\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\uff08\u5730\u7269\u5468\u56f2\u306e\u5bc6\u7740\u5ea6\uff09\u306b\u3088\u308a\u63d0\u4f9b\u3055\u308c\u308b\u7cbe\u5ea6\u3068\uff0c\u305d\u306e\u7cbe\u5ea6\u3092\u5f97\u308b\u306e\u306b\u5fc5\u8981\u306a\u30b0\u30ea\u30c3\u30c9\u30bb\u30eb\u306e\u6570\u3068\u306e\u30d0\u30e9\u30f3\u30b9\u3092\u53d6\u308b\u3053\u3068\u3067\u3042\u308b\uff0e\u6700\u9069\u306a\u30b0\u30ea\u30c3\u30c9\u89e3\u50cf\u5ea6\u3092\u9054\u6210\u3057\u3088\u3046\u3068\u8a66\u307f\u308b\u6642\uff0c\u6b21\u306e\u56e0\u5b50\u3092\u8003\u616e\u3059\u3079\u304d\u3067\u3042\u308b\uff0e<\/p>\n<ul>\n<li>\u30b0\u30ea\u30c3\u30c9\u30bb\u30eb\u306e\u89e3\u50cf\u5ea6\u306e\u8a2d\u5b9a\u304c\u4f4e\u3059\u304e\u308b\u3068\uff08\u4f8b\u3048\u3070\u76f8\u5bfe\u7684\u306b\u5927\u304d\u3044\u5c11\u6570\u306e\u30b0\u30ea\u30c3\u30c9\u30bb\u30eb\u3092\u542b\u3080\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\uff09\uff0c\u4e00\u6b21\u30d5\u30a3\u30eb\u30bf\u30fc\u306f\u3088\u308a\u591a\u304f\u306e\u507d\u967d\u6027\uff0c\u3064\u307e\u308a\u554f\u984c\u306b\u3057\u3066\u3044\u308b\u30b8\u30aa\u30e1\u30c8\u30ea\u3068\u5b9f\u969b\u306b\u306f\u4ea4\u5dee\u3057\u306a\u3044\u30b0\u30ea\u30c3\u30c9\u30bb\u30eb\u3068\u4ea4\u5dee\u3059\u308b\u5730\u7269\u3092\u8fd4\u3059\uff0e\u3053\u308c\u306f\u4e8c\u6b21\u30d5\u30a3\u30eb\u30bf\u30fc\u304c\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u4ed5\u4e8b\u3092\u5897\u3084\u3059\u7d50\u679c\u3068\u306a\u308a\uff0c\u30af\u30a8\u30ea\u306e\u52a3\u5316\u306b\u3064\u306a\u304c\u308b\uff0e<\/li>\n<li>\u30b0\u30ea\u30c3\u30c9\u30bb\u30eb\u306e\u89e3\u50cf\u5ea6\u306e\u8a2d\u5b9a\u304c\u9ad8\u3059\u304e\u308b\u3068\uff08\u4f8b\u3048\u3070\u591a\u6570\u3060\u304c\u305d\u308c\u305e\u308c\u306f\u500b\u5225\u306b\u5c0f\u3055\u3044\u30b0\u30ea\u30c3\u30c9\u30bb\u30eb\u3092\u542b\u3080\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\uff09\uff0c\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306f\u5404\u30b8\u30aa\u30e1\u30c8\u30ea\u306b\u3088\u308a\u591a\u304f\u306e\u8a18\u8ff0\u3092\u542b\u3081\uff0c\u305d\u308c\u306f\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u554f\u3044\u5408\u308f\u305b\u306b\u3088\u308a\u9577\u3044\u6642\u9593\u3092\u8981\u3057\uff0c\u30af\u30a8\u30ea\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u52a3\u5316\u3055\u305b\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u3066\u3044\u308b\uff0e<\/li>\n<\/ul>\n<p>\u30c1\u30c3\u30d7\u30b9\u3000\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306f\u7a7a\u9593\u30af\u30a8\u30ea\u306e\u4e00\u6b21\u30d5\u30a3\u30eb\u30bf\u30fc\u3068\u3057\u3066\u306e\u307f\u4f7f\u308f\u308c\u308b\uff0e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u5185\u306e\u30b0\u30ea\u30c3\u30c9\u30bb\u30eb\u304c\u30b8\u30aa\u30e1\u30c8\u30ea\u306e\u8fd1\u4f3c\u306e\u307f\u3092\u8868\u73fe\u3057\u3066\u3044\u3066\u3082\uff0c\u30af\u30a8\u30ea\u3067\u9593\u9055\u3063\u305f\u7d50\u679c\u3092\u5f97\u308b\u3053\u3068\u306f\u6c7a\u3057\u3066\u306a\u3044\uff0e\u3068\u3044\u3046\u306e\u306f\u305d\u308c\u3089\u306f\u4e8c\u6b21\u30d5\u30a3\u30eb\u30bf\u30fc\u3067\u9664\u53bb\u3055\u308c\u308b\u304b\u3089\u3067\u3042\u308b\uff08Filter() \u30e1\u30bd\u30c3\u30c9\u3092\u9664\u304f\uff0e\u3053\u308c\u306f\u4e00\u6b21\u30d5\u30a3\u30eb\u30bf\u30fc\u306b\u57fa\u3065\u304f\u7d50\u679c\u3092\u8fd4\u3057\uff0c\u4e8c\u6b21\u30d5\u30a3\u30eb\u30bf\u30fc\u306f\u9069\u7528\u3055\u308c\u306a\u3044\uff09\uff0e<\/p>\n<p>\u3000\u3067\u306f\uff0c\u7279\u5b9a\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306b\u6700\u9069\u306a\u30b0\u30ea\u30c3\u30c9\u89e3\u50cf\u5ea6\u306f\u3069\u3046\u3084\u3063\u3066\u5b9a\u7fa9\u3057\u305f\u3089\u826f\u3044\u306e\u304b\uff1f\u4e0d\u5e78\u306a\u3053\u3068\u306b\uff0c\u5f93\u3046\u3079\u304d\u6c7a\u5b9a\u7684\u306a\u898f\u5247\u306f\u306a\u304f\uff0c\u554f\u984c\u306b\u3057\u3066\u3044\u308b\u7279\u5b9a\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306b\u5927\u304d\u304f\u4f9d\u5b58\u3057\u3066\u304a\u308a\u201d\u6b63\u89e3\u201d\u306f\u306a\u3044\uff0e\u9069\u5207\u306a\u30b0\u30ea\u30c3\u30c9\u30b5\u30a4\u30ba\u3092\u5b9a\u7fa9\u3059\u308b\u305f\u3081\u306e\u4e00\u3064\u306e\u30a2\u30d7\u30ed\u30fc\u30c1\u306f\u6b21\u306e\u3088\u3046\u306a\u3082\u306e\u3067\u3042\u308b\uff0e<\/p>\n<ol>\n<li>\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u5168\u304f\u306a\u3044\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3057\u79fb\u5165\u3059\u308b\uff0e\u30c6\u30fc\u30d6\u30eb\u306b\u542b\u307e\u308c\u308b\u30c7\u30fc\u30bf\u306b\u5bfe\u3057\u3066\u5178\u578b\u7684\u306a\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3057\uff0c\u5b9f\u884c\u306b\u304b\u304b\u3063\u305f\u6642\u9593\u3092\u8a18\u9332\u3059\u308b\uff0e\u3053\u308c\u3089\u306e\u7d50\u679c\u3092\u4f7f\u3063\u3066\uff0c\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u8ffd\u52a0\u3057\u3066\u5f97\u3089\u308c\u305f\u6539\u5584\u7d50\u679c\u306b\u5bfe\u3059\u308b\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u3068\u3059\u308b\uff0e<\/li>\n<li>\u307e\u305a\u5168\u5c64\u306e\u30b0\u30ea\u30c3\u30c9\u3092\u4f4e\u89e3\u50cf\u5ea6\u3092\u4f7f\u3063\u3066 geometry \u578b\u3042\u308b\u3044\u306f geography \u578b\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f5c\u6210\u3059\u308b\uff0e\u3053\u308c\u306f\u6700\u3082\u4e00\u822c\u7684\u306a\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u751f\u6210\u3059\u308b\uff0e<\/li>\n<li>\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u3067\u4f7f\u3063\u305f\u5143\u306e\u30af\u30a8\u30ea\u3068\u540c\u3058\u8a2d\u5b9a\u3067\u30af\u30a8\u30ea\u3092\u518d\u5ea6\u5b9f\u884c\u3057\uff0c\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u9055\u3044\u3092\u8a55\u4fa1\u3059\u308b\uff08\u30af\u30a8\u30ea\u30aa\u30d7\u30c6\u30a3\u30de\u30a4\u30b6\u30fc\u306b\u65b0\u3057\u3044\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f7f\u3046\u3053\u3068\u3092\u78ba\u4fdd\u3059\u308b\u305f\u3081\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u30d2\u30f3\u30c8\u3092\u4f7f\u7528\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3053\u3068\u306b\u6ce8\u610f\uff09\uff0e<\/li>\n<li>\u65e2\u5b58\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u524a\u9664\u3057\uff0c\u5404\u5c64\u306e\u89e3\u50cf\u5ea6\u3092 LOW \u304b\u3089 MEDIUM \u306b\u5897\u3084\u3057\u3066\u65b0\u3057\u3044\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f5c\u6210\u3059\u308b\uff0e<\/li>\n<li>\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u30c6\u30b9\u30c8\u3092\u518d\u5b9f\u884c\u3057\uff0c\u7d50\u679c\u3092\u8a18\u9332\u3059\u308b\uff0e<\/li>\n<li>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u4e0a\u306e\u5229\u76ca\u3092\u7d99\u7d9a\u3057\u3066\u5f97\u308b\u307e\u3067\uff0c\u5404\u5c64\u306e\u89e3\u50cf\u5ea6\u3092\u540c\u6642\u306b\u3082\u3046\u4e00\u6bb5\u5897\u3084\u3057\u3066\u30b9\u30c6\u30c3\u30d74\u30685\u3092\u7e70\u308a\u8fd4\u3059\uff0e\u30b0\u30ea\u30c3\u30c9\u89e3\u50cf\u5ea6\u3092\u5897\u3084\u3059\u3053\u3068\u3067\u30af\u30a8\u30ea\u306e\u5b9f\u884c\u304c\u9045\u304f\u306a\u3063\u305f\u3089\uff0c\u3084\u3081\u3066\u6700\u9069\u306a\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u8a2d\u5b9a\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u518d\u4f5c\u6210\u3059\u308b\uff08\u3042\u308b\u3044\u306f\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u5168\u304f\u4f7f\u7528\u3057\u306a\u3044\uff09\uff0e<\/li>\n<\/ol>\n<p>\u3000\u3053\u306e\u30a2\u30d7\u30ed\u30fc\u30c1\u306f\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u305f\u3081\u306e\u6700\u9069\u306a\u30b0\u30ea\u30c3\u30c9\u89e3\u50cf\u5ea6\u306e\u6700\u521d\u306e\u6307\u6a19\u3092\u4e0e\u3048\u308b\u306e\u306b\u4f7f\u308f\u308c\u308b\u304c\uff0c\u3068\u3066\u3082\u96d1\u306a\u65b9\u6cd5\u3067\u3042\u308b\uff0e\u5b9f\u52d9\u3067\u306f\uff0c\u6700\u9069\u306a\u30b0\u30ea\u30c3\u30c9\u89e3\u50cf\u5ea6\u306e\u8a2d\u5b9a\u306f\uff0c\u5883\u754c\u30dc\u30c3\u30af\u30b9\u3068\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3054\u3068\u306e\u30bb\u30eb\u6570\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u306b\u9078\u3070\u308c\u308b\u5024\u306b\u4f9d\u5b58\u3059\u308b\uff0e\u30c6\u30fc\u30d6\u30eb\u306b\u542b\u307e\u308c\u308b\u30c7\u30fc\u30bf\u304c\u5909\u5316\u3059\u308b\u306a\u3089\uff0c\u6700\u9069\u306a\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u30c7\u30b6\u30a4\u30f3\u3082\u307e\u305f\u5909\u5316\u3059\u308b\uff0e<\/p>\n<h4>\u5883\u754c\u30dc\u30c3\u30af\u30b9<\/h4>\n<p>\u3000geometry \u578b\u306e\u5217\u306b\u9069\u7528\u3055\u308c\u308b\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u5883\u754c\u30dc\u30c3\u30af\u30b9\u306f\u30b0\u30ea\u30c3\u30c9\u306e\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\u3059\u308b\u7a7a\u9593\u306e\u7bc4\u56f2\u3092\u5b9a\u7fa9\u3059\u308b\uff0e\u6700\u521d\u306e\u52d8\u306f\uff0c\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u9069\u7528\u3055\u308c\u308b\u30c6\u30fc\u30d6\u30eb\u306b\u542b\u307e\u308c\u308b\u5168\u30c7\u30fc\u30bf\u306e\u7bc4\u56f2\u3092\u30ab\u30d0\u30fc\u3059\u308b\u5883\u754c\u30dc\u30c3\u30af\u30b9\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304b\u3082\u3057\u308c\u306a\u3044\u304c\uff0c\u305d\u308c\u304c\u6700\u5584\u3068\u306f\u9650\u3089\u306a\u3044\uff0e<\/p>\n<p>\u3000\u5883\u754c\u30dc\u30c3\u30af\u30b9\u5185\u306b\u542b\u307e\u308c\u308b\u9818\u57df\u306f\uff0c\u56fa\u5b9a\u3055\u308c\u305f\u6570\u5024\u306e\u30bb\u30eb\u306b\u5206\u89e3\u3055\u308c\uff0c\u5404\u5c64\u306e\u30b0\u30ea\u30c3\u30c9\u306e\u89e3\u50cf\u5ea6\u3067\u63d0\u4f9b\u3055\u308c\u308b\u30d1\u30e9\u30e1\u30fc\u30bf\u3067\u6307\u5b9a\u3055\u308c\u308b\uff0e\u5883\u754c\u30dc\u30c3\u30af\u30b9\u3092\u3088\u308a\u5c0f\u3055\u304f\uff0c\u3057\u304b\u3057\u305d\u306e\u540c\u3058\u5883\u754c\u30dc\u30c3\u30af\u30b9\u5185\u306e\u30bb\u30eb\u6570\u3092\u540c\u3058\u306b\u4fdd\u3064\u3088\u3046\u6307\u5b9a\u3059\u308b\u3053\u3068\u306f\uff0c\u5404\u30b0\u30ea\u30c3\u30c9\u30bb\u30eb\u304c\u3088\u308a\u5c0f\u3055\u304f\u306a\u308b\u3053\u3068\u3067\u3042\u308b\uff0e\u305d\u308c\u3086\u3048\uff0c\u305d\u306e\u30b0\u30ea\u30c3\u30c9\u30bb\u30eb\u306f\u3069\u3093\u306a\u5730\u7269\u3067\u3082\u3088\u308a\u6b63\u78ba\u306b\u30d5\u30a3\u30c3\u30c8\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\uff0e<\/p>\n<p>\u3000\u4e2d\u592e\u90e8\u306b\u5bc6\u96c6\u3057\u3066\u3044\u3066\u6975\u7aef\u306b\u5916\u308c\u3066\u3044\u308b\u5730\u7269\u304c\u307b\u3068\u3093\u3069\u306a\u3044\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u304c\u3042\u308b\u3068\u8003\u3048\u3066\u307f\u308b\uff0e\u30c7\u30fc\u30bf\u306e\u5168\u7bc4\u56f2\u3092\u30ab\u30d0\u30fc\u3059\u308b\u3088\u3046\u30b0\u30ea\u30c3\u30c9\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u306f\uff0c\u5404\u30b0\u30ea\u30c3\u30c9\u30bb\u30eb\u304c\u6bd4\u8f03\u7684\u5927\u304d\u3044\u4e8b\u3092\u610f\u5473\u3059\u308b\uff0e\u3068\u3044\u3046\u306e\u306f\uff0c\u305d\u306e\u30b0\u30ea\u30c3\u30c9\u306f\u9060\u304f\u96e2\u308c\u305f\u5730\u7269\u3092\u30ab\u30d0\u30fc\u3059\u308b\u305f\u3081\u306b\u62e1\u5f35\u3057\u306a\u304f\u3066\u306f\u306a\u3089\u306a\u3044\u305f\u3081\u3067\u3042\u308b\uff0e\u30c7\u30fc\u30bf\u306e\u5bc6\u96c6\u3059\u308b\u9818\u57df\u5468\u8fba\u306b\u5bc6\u7740\u3059\u308b\u5883\u754c\u30dc\u30c3\u30af\u30b9\u3092\u6307\u5b9a\u3057\uff0c\u3054\u304f\u4e00\u90e8\u306e\u5916\u308c\u305f\u5730\u7269\u3092\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304b\u3089\u9664\u5916\u3059\u308b\u3053\u3068\u3067\uff0c\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306f\u3053\u306e\u9818\u57df\u306b\u542b\u307e\u308c\u308b\u30c7\u30fc\u30bf\u306e\u5927\u90e8\u5206\u3092\u3088\u308a\u6b63\u78ba\u306b\u63cf\u304f\u3053\u3068\u304c\u3067\u304d\u308b\uff0e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306b\u542b\u307e\u308c\u306a\u3044\u3053\u308c\u3089\u306e\u5730\u7269\u306f\uff0c\u30c6\u30fc\u30d6\u30eb\u306b\u5bfe\u3057\u3066\u554f\u3044\u5408\u308f\u305b\u305f\u6642\u306b\u3044\u304b\u306a\u308b\u7d50\u679c\u306b\u3082\u542b\u307e\u308c\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3092\u610f\u5473\u3057\u306a\u3044\uff0e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u4e00\u6b21\u30d5\u30a3\u30eb\u30bf\u30fc\u304b\u3089\u53d6\u5f97\u3055\u308c\u306a\u3044\u3068\u3044\u3046\u3060\u3051\u3067\u3042\u308b\uff0e<\/p>\n<p>\u30c1\u30c3\u30d7\u30b9\u3000\u30c6\u30fc\u30d6\u30eb\u306b\u542b\u307e\u308c\u308b geometry \u578b\u306e\u30c7\u30fc\u30bf\u306e\u6700\u5927\u5ea7\u6a19\u5024\u304a\u3088\u3073\u6700\u5c0f\u5ea7\u6a19\u5024\u306b\u57fa\u3065\u3044\u3066\u5883\u754c\u30dc\u30c3\u30af\u30b9\u306e\u7bc4\u56f2\u3092\u8a2d\u5b9a\u3067\u304d\u308b\u304c\uff0c\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u5883\u754c\u3092\u72ed\u3081\u308b\u3053\u3068\u3067\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u6539\u5584\u3055\u305b\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\uff0e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u30b0\u30ea\u30c3\u30c9\u304c\u3088\u308a\u7c92\u72b6\u306b\u306a\u308b\u304b\u3089\u3067\u3042\u308b\uff0e<\/p>\n<h4>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3054\u3068\u306e\u30bb\u30eb\u6570<\/h4>\n<p>\u3000<code>CELLS_PER_OBJECT<\/code> \u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u5185\u3067\u5404\u5730\u7269\u3092\u8a18\u8ff0\u3057\u84c4\u7a4d\u3059\u308b\u30b0\u30ea\u30c3\u30c9\u30bb\u30eb\u306e\u6700\u5927\u6570\u3092\u660e\u793a\u7684\u306b\u5ba3\u8a00\u3059\u308b\u3082\u306e\u3067\u3042\u308b\uff0e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3054\u3068\u306e\u30bb\u30eb\u6570\u306e\u6700\u9069\u306a\u6570\u306f\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u5927\u304d\u3055\u3068\u5404\u8a18\u8ff0\u306e\u7cbe\u5ea6\u3068\u304c\u30d0\u30e9\u30f3\u30b9\u3059\u308b\u5024\u3067\u3042\u308b\uff0e\u3053\u306e\u6700\u9069\u6570\u306f\u5404\u5c64\u3067\u4f7f\u308f\u308c\u308b\u30bb\u30eb\u89e3\u50cf\u5ea6\u3068\u8907\u96d1\u306b\u30ea\u30f3\u30af\u3057\u3066\u304a\u308a\uff0c\u3088\u308a\u9ad8\u89e3\u50cf\u5ea6\u306e\u30b0\u30ea\u30c3\u30c9\u306f\u3088\u308a\u5c0f\u3055\u3044\u30bb\u30eb\u3092\u542b\u3093\u3067\u3044\u308b\u305f\u3081\uff0c\u305d\u306e\u30b0\u30ea\u30c3\u30c9\u306e\u4e0e\u3048\u3089\u308c\u305f\u5c64\u3067\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u5b8c\u5168\u306b\u30ab\u30d0\u30fc\u3059\u308b\u306e\u306b\u5fc5\u8981\u306a\u30bb\u30eb\u304c\u3088\u308a\u591a\u304f\u306a\u308b\u3053\u3068\u3092\u610f\u5473\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\uff0e\u6b21\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3054\u3068\u306e\u30bb\u30eb\u306e\u7406\u60f3\u7684\u306a\u6570\u3092\u8a2d\u5b9a\u3057\u3088\u3046\u3068\u8a66\u307f\u308b\u6642\u306b\u7559\u610f\u3057\u3066\u307b\u3057\u3044\u3044\u304f\u3064\u304b\u306e\u56e0\u5b50\u3067\u3042\u308b\uff0e<\/p>\n<ul>\n<li>CELLS_PER_OBJECT \u306e\u8a2d\u5b9a\u304c\u4f4e\u3059\u304e\u308b\u3068\uff0c\u6700\u6df1\u30bb\u30eb\u30eb\u30fc\u30eb\u3068\u30ab\u30d0\u30fc\u30ea\u30f3\u30b0\u30eb\u30fc\u30eb\u306b\u3082\u3068\u3065\u304d\uff0c\u5404\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u8a18\u8ff0\u306f\u30b8\u30aa\u30e1\u30c8\u30ea\u3092\u8a18\u8ff0\u3059\u308b\u306e\u306b\u5fc5\u8981\u306a\u30bb\u30eb\u306e\u7dcf\u6570\u3092\u542b\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u304f\u306a\u308b\uff0e\u305d\u306e\u3088\u3046\u306a\u5834\u5408\u306b\u306f\uff0c\u30b0\u30ea\u30c3\u30c9\u30bb\u30eb\u306f\u518d\u5206\u5272\u3055\u308c\u305a\uff0c\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u8a18\u8ff0\u306f\u6b63\u78ba\u3067\u306f\u306a\u304f\u306a\u308b\u3060\u308d\u3046\uff0e<\/li>\n<li>CELLS_PER_OBJECT \u306e\u8a2d\u5b9a\u304c\u9ad8\u3059\u304e\u308b\u3068\uff0c\u5404\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u8a18\u8ff0\u306f\u591a\u304f\u306e\u6570\u306e\u30bb\u30eb\u3092\u542b\u3080\u3088\u3046\u6210\u9577\u3059\u308b\u3053\u3068\u306b\u306a\u308b\uff0e\u3053\u308c\u306b\u3088\u308a\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306f\u3088\u308a\u6b63\u78ba\u306b\u306a\u308b\u304c\uff0c\u3088\u308a\u9045\u3044\u3082\u306e\u3068\u306a\u308a\uff0c\u305d\u308c\u306b\u3088\u308a\uff0c\u7a7a\u9593\u30af\u30a8\u30ea\u306e\u7d50\u679c\u3092\u9ad8\u901f\u5316\u3059\u308b\u3068\u3044\u3046\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f7f\u7528\u3059\u308b\u76ee\u7684\u3092\u5426\u5b9a\u3059\u308b\u3053\u3068\u306b\u306a\u308b\uff0e<\/li>\n<\/ul>\n<p>\u3000\u5148\u8ff0\u3057\u305f\u4ed6\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u540c\u69d8\uff0c\u6700\u9069\u306a\u8a2d\u5b9a\u3092\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u306f\uff0c\u7279\u5b9a\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306b\u57fa\u3065\u3044\u3066\uff0c\u3042\u308b\u7a0b\u5ea6\u306e\u624b\u52d5\u3067\u306e\u8a66\u884c\u932f\u8aa4\u3092\u542b\u3080\uff0e\u4f55\u306e\u5024\u3092\u8a2d\u5b9a\u3059\u3079\u304d\u304b\u660e\u78ba\u3067\u306a\u3044\u3068\u304d\u306f\uff0cCELLS_PER_OBJECT \u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u5024 16 \u3092\u4f7f\u3046\u3068\u3088\u3044\uff0e\u305d\u308c\u306f\u591a\u304f\u306e\u72b6\u6cc1\u3067\u9069\u5ea6\u306b\u3088\u304f\u52d5\u4f5c\u3059\u308b\uff0e<\/p>\n<h3>\u8981\u7d04<\/h3>\n<p>\u3000\u672c\u7ae0\u3067\u306f\uff0c\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306b\u3064\u3044\u3066\u5b66\u3073\uff0c\u305d\u308c\u3089\u3092\u4f7f\u3063\u3066\u7a7a\u9593\u30c7\u30fc\u30bf\u306b\u5bfe\u3059\u308b\u30af\u30a8\u30ea\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u6539\u5584\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u5b66\u3093\u3060\uff0e\u7279\u306b\uff0c\u6b21\u306e\u70b9\u306b\u3064\u3044\u3066\u5b66\u3093\u3060\uff0e<\/p>\n<ul>\n<li>\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306f\u7279\u5b9a\u306e\u7a7a\u9593\u64cd\u4f5c\u306e\u7d50\u679c\u306e\u305f\u3081\u306e\u4e00\u6b21\u30d5\u30a3\u30eb\u30bf\u30fc\u3068\u3057\u3066\u52d5\u4f5c\u3059\u308b\uff0e<\/li>\n<li>\u4e00\u6b21\u30d5\u30a3\u30eb\u30bf\u30fc\u306f\u30af\u30a8\u30ea\u306e\u7d50\u679c\u3092\u542b\u3080\u3053\u3068\u304c\u4fdd\u8a3c\u3055\u308c\u305f\u30b8\u30aa\u30e1\u30c8\u30ea\u306e\u5019\u88dc\u96c6\u5408\u3092\u901f\u304f\u6700\u9069\u306b\u63d0\u4f9b\u3059\u308b\u304c\uff0c\u8ffd\u52a0\u306e\u507d\u967d\u6027\u306e\u7d50\u679c\u3092\u542b\u3093\u3067\u3044\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\uff0e<\/li>\n<li>\u4e8c\u6b21\u30d5\u30a3\u30eb\u30bf\u30fc\u306f\u4e00\u6b21\u30d5\u30a3\u30eb\u30bf\u30fc\u306e\u7d50\u679c\u3092\u771f\u306e\u7d50\u679c\u96c6\u5408\u306b\u7cbe\u88fd\u3059\u308b\u305f\u3081\u306b\u4f7f\u308f\u308c\u308b\uff0e\u4e8c\u6b21\u30d5\u30a3\u30eb\u30bf\u30fc\u306f\u4e00\u6b21\u30d5\u30a3\u30eb\u30bf\u30fc\u3088\u308a\u9045\u3044\u304c\uff0c\u3088\u308a\u6b63\u78ba\u3067\u3042\u308b\uff0e<\/li>\n<li>\u7a7a\u9593\u5730\u7269\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\uff0cSQL Server \u306f\u5730\u7269\u3092\u30de\u30eb\u30c1\u30ec\u30d9\u30eb\u30b0\u30ea\u30c3\u30c9\u5185\u306e\u30bb\u30eb\u306b\u5272\u308a\u4ed8\u3051\u308b\uff0e<\/li>\n<li>SQL Server \u306f\u30ab\u30d0\u30fc\u30ea\u30f3\u30b0\u30eb\u30fc\u30eb\uff0c\u6700\u6df1\u30bb\u30eb\u30eb\u30fc\u30eb\u304a\u3088\u3073\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3054\u3068\u306e\u30bb\u30eb\u6570\u30eb\u30fc\u30eb\u3092\u9069\u7528\u3057\uff0c\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u9805\u76ee\u306e\u7cbe\u5ea6\u3092\u6700\u5927\u5316\u3059\u308b\u3088\u3046\u8a66\u307f\u308b\u4e00\u65b9\u3067\uff0c\u305d\u308c\u306b\u8981\u3059\u308b\u30b0\u30ea\u30c3\u30c9\u30bb\u30eb\u6570\u3092\u6700\u5c0f\u5316\u3059\u308b\u3088\u3046\u8a66\u307f\u308b\uff0e<\/li>\n<li>geometry \u578b\u3084 geography \u578b\u306e\u3044\u305a\u308c\u306b\u5bfe\u3057\u3066\u3082\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f5c\u6210\u3067\u304d\uff0cT-SQL \u306b\u3088\u3063\u3066\u3082 SQL Server Management Studio \u306b\u3088\u3063\u3066\u3082\u53ef\u80fd\u3067\u3042\u308b\uff0e<\/li>\n<li>\u6642\u306b\uff0c\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f7f\u7528\u3059\u308b\u306b\u306f\uff0c\u30af\u30a8\u30ea\u30d2\u30f3\u30c8\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u30af\u30a8\u30ea\u3092\u6700\u9069\u5316\u3059\u308b\u3053\u3068\u304c\u5fc5\u8981\u3067\u3042\u308b\uff0e<\/li>\n<li>\u7a7a\u9593\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u5f71\u97ff\u3059\u308b\u591a\u304f\u306e\u56e0\u5b50\u304c\u3042\u308a\uff0c\u305d\u308c\u3089\u306f\u30b9\u30d4\u30fc\u30c9\u3068\u6b63\u78ba\u6027\u306e\u9593\u306e\u30c8\u30ec\u30fc\u30c9\u30aa\u30d5\u3092\u6700\u9069\u5316\u3059\u308b\u3088\u3046\u8abf\u6574\u3055\u308c\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\uff0e<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u3000\u52b9\u7387\u7684\u306a\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u4f5c\u6210\u306f\uff0c\u8fc5\u901f\u304b\u3064\u52b9\u7387\u7684\u306b\u7d50\u679c\u3092\u63a2\u7d22\u3059\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u91cd\u8981\u3067\u3042\u308b\uff0e\u7a7a\u9593\u30c7\u30fc\u30bf\u3092\u84c4\u7a4d\u3059\u308b\u305f\u3081\u306b\u30c7\u30b6\u30a4\u30f3\u3055\u308c\u308b geometry \u578b\u304a\u3088\u3073 geography \u578b\u306b\u52a0\u3048\u3066\uff0cS &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.muscle-hypertrophy.com\/?p=16525\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u7b2c14\u7ae0\u3000\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u4f5c\u6210 (Beginning Spatial with SQL Server 2008)&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":15391,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[7907,7554,11223,7180,12624,12630,7682,7901,7752,3562,4673,7587,7724,12625,1398,12018,8413,12862,12863,12864,12865,1396,1397,12021,4569,7727,12080,4672,4657,12874,2740,2750,12541,7753,12537,12538,12539,12658,12618,12875,2872,12876,12623,5123,11941,4658,4549,12868,2829,12528,12866,2783,12877,12849,12855,12857,12869,9582,4669,673,462,3633,32,2499,12861,12860,3900,3121,7717,12856,12878,12871,12859,4552,5909,12872,12852,4483,12853,5039,11894,12870,7779,7780,12873,12858,12414,12867,967,7400,7684,7181,12851,12282,3677,12575,4029,12854,7775,12850,7778],"class_list":["post-16525","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology","tag-add-constraint","tag-alter-table","tag-begin","tag-beginning-spatial-with-sql-server-2008","tag-bounding_box","tag-cells_per_object","tag-create-spatial-index","tag-create-table","tag-declare","tag-end","tag-from","tag-geography","tag-geometry","tag-grids","tag-high","tag-identity","tag-insert-into","tag-level1","tag-level2","tag-level3","tag-level4","tag-low","tag-medium","tag-pad_index","tag-point","tag-polygon","tag-primary-key-clustered","tag-select","tag-set","tag-sort_in_tempdb","tag-sql-server","tag-sql-server-management-studio","tag-stcontains","tag-stdistance","tag-stequals","tag-stintersects","tag-stoverlaps","tag-sttouches","tag-stwithin","tag-sys-spatial_index_tesselation","tag-t-sql","tag-using-geography_grid","tag-using-geometry_grid","tag-where","tag-while","tag-with","tag-4549","tag-12868","tag-2829","tag-12528","tag-12866","tag-2783","tag-12877","tag-12849","tag-12855","tag-12857","tag-12869","tag-9582","tag-4669","tag-673","tag-462","tag-3633","tag-32","tag-2499","tag-12861","tag-12860","tag-3900","tag-3121","tag-7717","tag-12856","tag-12878","tag-12871","tag-12859","tag-4552","tag-5909","tag-12872","tag-12852","tag-4483","tag-12853","tag-5039","tag-11894","tag-12870","tag-7779","tag-7780","tag-12873","tag-12858","tag-12414","tag-12867","tag-967","tag-7400","tag-7684","tag-7181","tag-12851","tag-12282","tag-3677","tag-12575","tag-4029","tag-12854","tag-7775","tag-12850","tag-7778"],"_links":{"self":[{"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=\/wp\/v2\/posts\/16525","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=16525"}],"version-history":[{"count":69,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=\/wp\/v2\/posts\/16525\/revisions"}],"predecessor-version":[{"id":16958,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=\/wp\/v2\/posts\/16525\/revisions\/16958"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=\/wp\/v2\/media\/15391"}],"wp:attachment":[{"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=16525"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=16525"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.muscle-hypertrophy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=16525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}