{"id":1598,"date":"2012-02-01T06:21:40","date_gmt":"2012-02-01T06:21:40","guid":{"rendered":"http:\/\/www.gisdeveloper.co.kr\/?p=1598"},"modified":"2017-01-27T16:02:36","modified_gmt":"2017-01-27T07:02:36","slug":"fingereyes-fid-%eb%a6%ac%ec%8a%a4%ed%8a%b8%eb%a1%9c-feature-%ea%b0%80%ec%a0%b8%ec%98%a4%ea%b8%b0","status":"publish","type":"post","link":"http:\/\/www.gisdeveloper.co.kr\/?p=1598","title":{"rendered":"[GIS] FingerEyes, FID \ub9ac\uc2a4\ud2b8\ub85c Feature \uac00\uc838\uc624\uae30"},"content":{"rendered":"<p>FID\uac12\uc740 FeatureID\ub85c\uc368 \uc774 \uac12\uc5d0 \ub300\ud55c Feature\ub97c \uac00\uc838\uc624\ub294 \uc608\uc81c \ucf54\ub4dc\uc785\ub2c8\ub2e4. \ucc38\uace0\ub85c Feature\ub294 \uacf5\uac04 \ub370\uc774\ud130 + \uc18d\uc131 \ub370\uc774\ud130\uc758 \uc14b\uc785\ub2c8\ub2e4.<\/p>\n<pre>var pnuLyr:XrShapeMapLayer = map.layers.getLayer(\"JIBUN\") as XrShapeMapLayer;\r\nif(pnuLyr != null) {\r\n    var fids:Vector. = new Vector.();\r\n    fids.push(100, 200, 300, 400, 500, 600, 700, 10000);\r\n    if(!pnuLyr.queryByFIDs(fids, true, callback))\r\n    {\r\n        \/\/ Query Request Error !!\r\n    }\r\n}<\/pre>\n<p>\uba3c\uc800 \ub300\uc0c1 \ub808\uc774\uc5b4\ub97c \ud30c\uc545\ud574\uc57c \ud569\ub2c8\ub2e4. FID\uc5d0 \uad00\ub828\ub41c \ub808\uc774\uc5b4\uc774\ubbc0\ub85c 1\ubc88 \ucf54\ub4dc\uc5d0\uc11c XrShapeMapLayer\uac00 \ud544\uc694\ud558\uace0 \uc694\uccad\ud560 FID\uc758 \ub9ac\uc2a4\ud2b8\ub97c 3~4\ubc88\uc5d0\uc11c \ub9cc\ub4e4\uace0 \uc788\uc2b5\ub2c8\ub2e4. \uadf8\ub9ac\uace0 5\ubc88 \ucf54\ub4dc\uc5d0\uc11c queryByFIDs \ub9e4\uc11c\ub4dc\ub97c \ud1b5\ud574 \ub9ac\ud018\uc2a4\ud2b8\ub97c \uc11c\ubc84\uc5d0 \ub0a0\ub9bd\ub2c8\ub2e4. <\/p>\n<p>\uc11c\ubc84\uc5d0 \ub300\ud55c \uc751\ub2f5\uc740 \ube44\ub3d9\uae30\uc801\uc73c\ub85c \ucc98\ub9ac\ub418\ubbc0\ub85c \ucf5c\ubc31\ud568\uc218\uac00 \ud544\uc694\ud558\uba70 queryByFIDs\uc758 \uc138\ubc88\uc9f8 \uc778\uc790\uc5d0 \uc9c0\uc815\ud569\ub2c8\ub2e4. \ub450\ubc88\uc9f8 \uc778\uc790\ub294 \uacf5\uac04 \ub370\uc774\ud130 \ubfd0\ub9cc \uc544\ub2c8\ub77c \uc18d\uc131 \ub370\uc774\ud130\uae4c\uc9c0 \uac00\uc838\uc624\ub77c\ub294 \uc758\ubbf8\uc785\ub2c8\ub2e4. \uadf8\ub807\ub2e4\uba74 \uc11c\ubc84\ub85c\ubd80\ud130 \ubc1b\uc740 Feature\ub97c \ucc98\ub9ac\ud558\uae30 \uc704\ud55c \ucf5c\ubc31\ud568\uc218\ub97c \uc0b4\ud3b4\ubcf4\uba74, \uadf8 \uc608\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4.<\/p>\n<pre>private function callback(arg:XrSpatialQueryResult):void\r\n{\r\n    if(arg != null)\r\n    {\r\n        var shp:IXrShape = null;\r\n        var shapes:Object = arg.shapeSet.rows;\r\n        for each(shp in shapes)\r\n        {\r\n            var attribute:XrAttributes = \r\n                arg.attributeSet.rows[shp.fid] as XrAttribute;\r\n            if(attribute != null)\r\n            {\r\n                trace(shp.centroid.x + \" \" + shp.centroid.y \r\n                    + \" \" + attribute.getValueAsString(1));\r\n            }\r\n        }\r\n    }\r\n    else\r\n    {\r\n        \/\/ \uc544\ubb34\uac83\ub3c4 \uc624\uc9c8 \uc54a\uc558\uc74c..\r\n    }\r\n}<\/pre>\n<p>\uacb0\uacfc\uac00 \uc624\uba74 \ub3c4\ud615\uc758 \uc911\uc2ec\uc810\uacfc \ub450\ubc88\uc9f8 \uc18d\uc131\uac12\uc744 \ud45c\uc2dc\ud558\ub294 \ucf54\ub4dc\uc785\ub2c8\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>FID\uac12\uc740 FeatureID\ub85c\uc368 \uc774 \uac12\uc5d0 \ub300\ud55c Feature\ub97c \uac00\uc838\uc624\ub294 \uc608\uc81c \ucf54\ub4dc\uc785\ub2c8\ub2e4. \ucc38\uace0\ub85c Feature\ub294 \uacf5\uac04 \ub370\uc774\ud130 + \uc18d\uc131 \ub370\uc774\ud130\uc758 \uc14b\uc785\ub2c8\ub2e4. var pnuLyr:XrShapeMapLayer = map.layers.getLayer(&#8220;JIBUN&#8221;) as XrShapeMapLayer; if(pnuLyr != null) { var fids:Vector. = new Vector.(); fids.push(100, 200, 300, 400, 500, 600, 700, 10000); if(!pnuLyr.queryByFIDs(fids, true, callback)) { \/\/ Query Request Error !! } } \uba3c\uc800 \ub300\uc0c1 \ub808\uc774\uc5b4\ub97c \ud30c\uc545\ud574\uc57c &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/www.gisdeveloper.co.kr\/?p=1598\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;[GIS] FingerEyes, FID \ub9ac\uc2a4\ud2b8\ub85c Feature \uac00\uc838\uc624\uae30&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[70],"tags":[69,5,53],"class_list":["post-1598","post","type-post","status-publish","format-standard","hentry","category-fingereyes-xr","tag-fingereyes","tag-gis","tag-xr"],"_links":{"self":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/1598","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1598"}],"version-history":[{"count":1,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/1598\/revisions"}],"predecessor-version":[{"id":3092,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/1598\/revisions\/3092"}],"wp:attachment":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1598"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1598"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1598"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}