{"id":1419,"date":"2011-05-17T00:28:26","date_gmt":"2011-05-17T00:28:26","guid":{"rendered":"http:\/\/www.gisdeveloper.co.kr\/?p=1419"},"modified":"2017-02-11T17:47:11","modified_gmt":"2017-02-11T08:47:11","slug":"simpleshp-v01","status":"publish","type":"post","link":"http:\/\/www.gisdeveloper.co.kr\/?p=1419","title":{"rendered":"SimpleSHP v0.1"},"content":{"rendered":"<p><P>SimpleSHP\ub294 ESRI\uc5d0\uc11c \uc815\uc758\ud55c SHP\uc640 DBF \ud30c\uc77c\uc744 \ucc98\ub9ac\ud558\uae30 \uc704\ud55c \uc790\ubc14 \ud074\ub798\uc2a4 \ubaa8\uc74c\uc785\ub2c8\ub2e4. \uc774 \ub77c\uc774\ube0c\ub7ec\ub9ac\ub294 \uc0ac\uc6a9\ud558\uae30 \uc26c\uc6b0\uba70 \uac00\ubccd\uace0 \ub9e4\uc6b0 \ub2e8\uc21c\ud55c \uad6c\uc870\ub97c \uac16\uc2b5\ub2c8\ub2e4. \uc544\ub798\uc758 UML\uc740 SHP \ud30c\uc77c Access\uc5d0 \ub300\ud55c Class Diagram \uc785\ub2c8\ub2e4.<\/P><\/p>\n<p><P align='center'><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/1\/1181256005.png\" width=\"498\" height=\"433\" alt=\"\uc0ac\uc6a9\uc790 \uc0bd\uc785 \uc774\ubbf8\uc9c0\" \/> <\/p>\n<p>SHP \ud30c\uc77c\uc5d0 \ub300\ud55c Access\uc5d0 \ub300\ud55c \uc608\uc81c \ucf54\ub4dc\ub294 \uc544\ub798\uc640 \uac19\uc2b5\ub2c8\ub2e4.<\/p>\n<pre>AccessSHP access = new AccessSHP(\"filename.shp\");\r\nRowSetSHP rowSet = access.getRowSet();\r\nint rowCount = rowSet.getRowCount();\r\ntry {\r\n    for(int fid=0; fid < rotCount; fid++) {\r\n        RowSHP row = rowSet.getRow(fid+1);\r\n        if(row.load()) {\r\n            System.out.println(row.getFID());\r\n            Geometry geom = row.getGeometry();\r\n            System.out.println(geom.getEnvelopeInternal().toString());\r\n            row.unload();\r\n        }\r\n    }\r\n\r\n    access.release();\r\n} catch (IOException e) {\r\n    e.printStackTrace();\r\n}  <\/pre>\n<p<\ub2e4\uc74c UML\uc740 DBF \ud30c\uc77c Access\uc5d0 \ub300\ud55c Class Diagram\uc785\ub2c8\ub2e4.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/1\/1112338480.png\" class=\"aligncenter\" width=\"478\" height=\"342\" alt=\"\uc0ac\uc6a9\uc790 \uc0bd\uc785 \uc774\ubbf8\uc9c0\" \/><\/P>DBF \ud30c\uc77c\uc5d0 \ub300\ud55c Access\uc5d0 \ub300\ud55c \uc608\uc81c \ucf54\ub4dc\ub294 \uc544\ub798\uc640 \uac19\uc2b5\ub2c8\ub2e4.<BR><\/p>\n<pre>AccessDBF access = new AccessDBF(\"filename.dbf\");\r\nRowSetDBF rowSet = access.getRowSet();\r\nint rowCount = rowSet.getRowCount();\r\ntry {\r\n    for(int fid=0; fid < rowCount; ++fid) {       \r\n        RowDBF row = rowSet.getRow(fid+1);\r\n        if(row.load()) {\r\n            System.out.println(row.getFID());\r\n            FieldSet fieldSet = access.getFieldSet();\r\n            for(int iField=0; iField                Field field = fieldSet.getField(iField);\r\n                System.out.println(field.getFieldName() \r\n                    + \": \" + row.getValueAsString(iField));\r\n            }\r\n  \r\n            row.unload();\r\n        }\r\n\r\n        access.release();\r\n    }\r\n} catch (IOException e) {\r\n    e.printStackTrace();\r\n}  <\/pre>\n<p> <STRONG>\ubc84\uc804 \uc774\ub825<BR><\/STRONG>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; 1.&nbsp; v0.1 2011\/05\/20 \ucd5c\ucd08 \ubc30\ud3ec<br \/>\n<P><STRONG>\ub77c\uc774\ube0c\ub7ec\ub9ac \uc18c\uc2a4\ucf54\ub4dc \ub2e4\uc6b4\ub85c\ub4dc<\/p>\n<p><\/STRONG><\/p>\n<p style='text-align:center'><a href=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/1\/1264480715.zip\"><img width='64' src='\/images\/download.svg' \/><\/a><\/p>\n<p><STRONG>\uc0c1\uc138 \ubb38\uc11c URL<\/STRONG><\/p>\n<p align='center'><A href=\"http:\/\/www.gisdeveloper.co.kr\/download\/simpleshp\/\">http:\/\/www.gisdeveloper.co.kr\/download\/simpleshp<\/A><\/p>\n<p><STRONG>\uc678\ubd80 \ucc38\uc870 \ub77c\uc774\ube0c\ub7ec\ub9ac<\/STRONG><\/p>\n<p align='center'>JTS(Java Topology Suite, <A href=\"http:\/\/www.vividsolutions.com\/jts\/jtshome.htm\">http:\/\/www.vividsolutions.com\/jts\/jtshome.htm<\/A>)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SimpleSHP\ub294 ESRI\uc5d0\uc11c \uc815\uc758\ud55c SHP\uc640 DBF \ud30c\uc77c\uc744 \ucc98\ub9ac\ud558\uae30 \uc704\ud55c \uc790\ubc14 \ud074\ub798\uc2a4 \ubaa8\uc74c\uc785\ub2c8\ub2e4. \uc774 \ub77c\uc774\ube0c\ub7ec\ub9ac\ub294 \uc0ac\uc6a9\ud558\uae30 \uc26c\uc6b0\uba70 \uac00\ubccd\uace0 \ub9e4\uc6b0 \ub2e8\uc21c\ud55c \uad6c\uc870\ub97c \uac16\uc2b5\ub2c8\ub2e4. \uc544\ub798\uc758 UML\uc740 SHP \ud30c\uc77c Access\uc5d0 \ub300\ud55c Class Diagram \uc785\ub2c8\ub2e4. SHP \ud30c\uc77c\uc5d0 \ub300\ud55c Access\uc5d0 \ub300\ud55c \uc608\uc81c \ucf54\ub4dc\ub294 \uc544\ub798\uc640 \uac19\uc2b5\ub2c8\ub2e4. AccessSHP access = new AccessSHP(&#8220;filename.shp&#8221;); RowSetSHP rowSet = access.getRowSet(); int rowCount = rowSet.getRowCount(); try { for(int fid=0; &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/www.gisdeveloper.co.kr\/?p=1419\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;SimpleSHP v0.1&#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":[44],"tags":[],"class_list":["post-1419","post","type-post","status-publish","format-standard","hentry","category-gis-tools"],"_links":{"self":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/1419","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=1419"}],"version-history":[{"count":8,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/1419\/revisions"}],"predecessor-version":[{"id":4492,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/1419\/revisions\/4492"}],"wp:attachment":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1419"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1419"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1419"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}