10楼#
发布于:2005-11-07 16:34
<P>4.2 .ACODE</P>
<P>The .ACODE (Arc Lookup Table) contains seven fields whose item<BR>names are the same (except the -ID) as that in the ADS files<BR>documentation. However, additional items should be able to be be<BR>added as desired, after the LABEL item.</P> <P>An example of an actual .ACODE section follows:</P> <P>LANDLICP.ACODE 8 8 80 7<BR>LANDLICP-ID 4-1 14-1 8-1 50-1 -1 -1-1 1-<BR>XLABEL 4-1 54-1 8 2 60-1 -1 -1-1 2-<BR>YLABEL 4-1 94-1 8 2 60-1 -1 -1-1 3-<BR>SIZE 4-1 134-1 8 2 60-1 -1 -1-1 4-<BR>ANGLE 4-1 174-1 8 2 60-1 -1 -1-1 5-<BR>SZLBL 4-1 214-1 4-1 50-1 -1 -1-1 6-<BR>IFONTF 4-1 254-1 4-1 50-1 -1 -1-1 7-<BR>LABEL 52-1 294-1 52-1 20-1 -1 -1-1 8-<BR> 1 0.0000000E+00 0.0000000E+00 0.0000000E+00 0.0000000E+00 0<BR> 0<BR> 2 0.0000000E+00 0.0000000E+00 0.0000000E+00 0.0000000E+00 0<BR> 0<BR> 3 0.0000000E+00 0.0000000E+00 0.0000000E+00 0.0000000E+00 0<BR> 0<BR> 4 0.0000000E+00 0.0000000E+00 0.0000000E+00 0.0000000E+00 0<BR> 0<BR> 5 0.0000000E+00 0.0000000E+00 0.0000000E+00 0.0000000E+00 0<BR> 0<BR> 6 0.0000000E+00 0.0000000E+00 0.0000000E+00 0.0000000E+00 0<BR> 0<BR> 7 0.0000000E+00 0.0000000E+00 0.0000000E+00 0.0000000E+00 0<BR> 0</P> <P>4.3 .BND</P> <P>The .BND (Coverage Min/Max Coordinates) table contains four<BR>fields whose item names are self-explanatory.</P> <P>An example of an actual .BND section follows:</P> <P>LANDLICP.BND XX 4 4 16 1<BR>XMIN 4-1 14-1 12 3 60-1 -1 -1-1 1-<BR>YMIN 4-1 54-1 12 3 60-1 -1 -1-1 2-<BR>XMAX 4-1 94-1 12 3 60-1 -1 -1-1 3-<BR>YMAX 4-1 134-1 12 3 60-1 -1 -1-1 4-<BR> 3.4009988E+05 4.1000000E+06 3.4090012E+05 4.1003995E+06</P> <P>An example of a double-precision .BND section follows:</P> <P>STDFIG11CPX.BND XX 4 4 32 1<BR>XMIN 8-1 14-1 18 5 60-1 -1 -1-1 1-<BR>YMIN 8-1 94-1 18 5 60-1 -1 -1-1 2-<BR>XMAX 8-1 174-1 18 5 60-1 -1 -1-1 3-<BR>YMAX 8-1 254-1 18 5 60-1 -1 -1-1 4-<BR> 3.40100000000000000E+05 4.10000000000000000E+06 3.40900000000000000E+05<BR>4.10040<BR>000000000000E+06</P> |
|
|
11楼#
发布于:2005-11-07 16:34
<P>4 INFO FILE FORMATS</P>
<P>INFO files follow the same format:</P> <P> name of the info file and summary information<BR> definitions for each of the items<BR> actual data values</P> <P>The name line consists of six fields:</P> <P> 1. name of the INFO file<BR> 2. appears to be flag for ARC/INFO table ('XX') or other<BR> INFO table (' ')<BR> 3. number of items<BR> 4. appears to repeat number of items <BR> 5. length of data record<BR> 6. number of data records</P> <P>The definitions for each item consist of eight fields:</P> <P> 1- name of item<BR> 2- width of item followed by a constant of '-1'<BR> 3- start position of item followed by a constant of '4-1'<BR> 4- output format of item (see below for discussion)<BR> 5- type of item (see below for discussion)<BR> 6- appears to be constant of '-1'<BR> 7- appears to be constant of '-1-1'<BR> 8- appears to be sequential identifier</P> <P>The output format field is handled differently for numeric and<BR>character items. Numeric items give the output width followed by<BR>a space then the number of decimal positions. Character items<BR>give the output width followed by a constant of '-1'.</P> <P>The type of the item is specified by the following codes:</P> <P> 20-1 indicates character<BR> 50-1 indicates binary integer<BR> 60-1 indicates real number</P> <P>The other item types have not yet been identified.</P> <P>Formats will be given for the most common INFO files:</P> <P> .AAT<BR> .ACODE<BR> .BND<BR> .PAT<BR> .PCODE<BR> .TIC<BR>4.1 .AAT</P> <P>The .AAT (Arc Attribute Table) contains seven fields whose item<BR>names are self-explanatory. However, additional items may be<BR>added as desired, after the -ID item.</P> <P>An example of an actual .AAT section follows:</P> <P>LANDLICL.AAT XX 7 7 28 7<BR>FNODE# 4-1 14-1 5-1 50-1 -1 -1-1 1-<BR>TNODE# 4-1 54-1 5-1 50-1 -1 -1-1 2-<BR>LPOLY# 4-1 94-1 5-1 50-1 -1 -1-1 3-<BR>RPOLY# 4-1 134-1 5-1 50-1 -1 -1-1 4-<BR>LENGTH 4-1 174-1 12 3 60-1 -1 -1-1 5-<BR>LANDLICL# 4-1 214-1 5-1 50-1 -1 -1-1 6-<BR>LANDLICL-ID 4-1 254-1 5-1 50-1 -1 -1-1 7-<BR> 2 1 0 0 2.0006265E+02 1 <BR>2<BR> 3 2 0 0 2.0006250E+02 2 <BR>3<BR> 1 4 0 0 1.0989176E+03 3 <BR>1<BR> 4 3 0 0 2.0003140E+02 4 <BR>4<BR> 3 4 0 0 2.8198248E+02 5 <BR>6<BR> 4 5 0 0 8.2309576E+02 6 <BR>7<BR> 5 2 0 0 2.2345322E+02 7 <BR>5<BR></P> |
|
|
12楼#
发布于:2005-11-07 16:34
<P>3.6 PRJ</P>
<P>The PRJ (Projection Parameters) file consists of a set of<BR>projection keywords and values including a set of parameters<BR>following the keyword "Parameters".</P> <P>This file needs further research for specific keywords and<BR>parameters for the projections supported by ADS and MOSS.</P> <P>An example of an actual PRJ section follows:</P> <P>PRJ 2<BR>Projection UTM<BR>~<BR>Zone 13<BR>~<BR>Datum NAD27<BR>~<BR>Zunits NO<BR>~<BR>Units METERS<BR>~<BR>Spheroid CLARKE1866<BR>~<BR>Xshift 0.0000000000<BR>~<BR>Yshift 0.0000000000<BR>~<BR>Parameters<BR>~<BR>EOP</P> <P>3.7 SIN</P> <P>Spatial Index</P> <P>It usually is comprised of a single line with the value "EOX".</P> <P>An example of an actual SIN section follows:</P> <P>SIN 2<BR>EOX</P> <P>3.8 TOL</P> <P>This consists of ten lines with a tolerance type, a tolerance<BR>status, and a tolerance value on each line. The tolerance types<BR>are:</P> <P> 1. fuzzy<BR> 2. generalize (unused)<BR> 3. node match (unused)<BR> 4. dangle<BR> 5. tic match<BR> 6. undefined<BR> 7. undefined<BR> 8. undefined<BR> 9. undefined<BR> 10. undefined</P> <P>The tolerance status "is set to 1 if the tolerance is verified<BR>(been applied to operations of the coverage) and to 2 if the<BR>tolerance is not verified (been set by the TOLERANCE command, but<BR>not yet used in processing)." </P> <P>An example of an actual TOL section follows:</P> <P>TOL 2<BR> 1 1 8.1813842E-01<BR> 2 2 0.0000000E+00<BR> 3 2 0.0000000E+00<BR> 4 1 0.0000000E+00<BR> 5 2 0.0000000E+00<BR> 6 2 8.0025000E+00<BR> 7 2 8.0025000E-01<BR> 8 2 8.0025000E-01<BR> 9 2 8.0025000E-01<BR> 10 2 8.0025000E-01<BR> -1 0 0 0 0 0 0</P> <P>An example of a double-precision TOL section follows:</P> <P>TOL 3<BR> 1 2 8.00000000000000E-02<BR> 2 2 0.00000000000000E+00<BR> 3 2 0.00000000000000E+00<BR> 4 2 0.00000000000000E+00<BR> 5 2 0.00000000000000E+00<BR> 6 2 8.00000000000000E+00<BR> 7 2 8.00000000000000E-01<BR> 8 2 8.00000000000000E-01<BR> 9 2 8.00000000000000E-01<BR> 10 2 8.00000000000000E-01<BR> -1 0 0 0 0 0 0</P> |
|
|
13楼#
发布于:2005-11-07 16:34
<P>3.4 LOG</P>
<P>The LOG (Coverage History) file contains a free form set of lines<BR>of indeterminate number which are separated by lines which begins<BR>with a tilde, "~".</P> <P>ARC records many commands and their resource impacts in this<BR>file. The standard ARC format for writing in the LOG has nine<BR>fields:</P> <P> Year (I4)<BR> Month (I2)<BR> Day (I2)<BR> Hours (I2)<BR> Minutes (I2)<BR> Connect Time in minutes (I4)<BR> CPU Time in seconds (I6)<BR> I/O Time in seconds (I6)<BR> Command line (A100)</P> <P>However, any information can be added to the LOG file in free-<BR>form format.</P> <P>An example of an actual LOG section follows:</P> <P>LOG 2<BR>19940118 849 0 3 35export cover landli stdfigc none<BR>~<BR>19940118 850 0 7 190clean landli landlicp # # poly<BR>~<BR>EOL</P> <P>3.5 PAL</P> <P>The PAL (Polygon Topology) file consists of repeating sets of<BR>polygon information. The first line of each set has five<BR>numbers:</P> <P> 1. number of arcs in polygon<BR> 2. x min of polygon<BR> 3. y min of polygon<BR> 4. x max of polygon<BR> 5. y max of polygon</P> <P>The subsequent lines of a set give information on the arcs which<BR>comprise the polygon. There are three numbers per arc with<BR>information for two arcs per line.</P> <P> 1. the arc number (negative if reversed)<BR> 2. the node number<BR> 3. the polygon number</P> <P>The first polygon given is the universal polygon.</P> <P>"The PAL file contains the polygon topology for a coverage and<BR>min-max boxes for the polygons. For each polygon in a coverage<BR>the PAL file has a (usually) clockwise list of the arcs, nodes<BR>that comprise the polygons, as well as the adjacent polygons, and<BR>a min-max box. To keep a continuous list, 'virtual' arcs with<BR>arc# of 0 are used to connect to holes (thus forming donuts),<BR>which are connected in counter-clockwise order. The PAL file is<BR>a random access, variable record length file, with the length<BR>dependent on the number of arcs surrounding the polygon (1 to<BR>10000).</P> <P>The arc# in the PAL file is the record number of that arc within<BR>the coverage's ARC file, the node# is the same as the node# in<BR>the arc file at the appropriate end, and the polygon# is the<BR>record number of that polygon within the coverage's PAL file. <BR>The PAL file record number for a polygon is the same as the PAT<BR>file record number and the CNT file record number." SDL<BR>documentation, July 1989, p. 24.</P> <P>An example of an actual PAL section follows:</P> <P>PAL 2<BR> 5 3.4009988E+05 4.1000000E+06 3.4090012E+05 4.1003995E+06<BR> 0 0 0 -1 1 2<BR> -7 2 3 -6 5 3<BR> -3 4 2<BR> 4 3.4009988E+05 4.1001995E+06 3.4090012E+05 4.1003995E+06<BR> 1 2 1 3 1 1<BR> 4 4 4 2 3 3<BR> 4 3.4019978E+05 4.1000000E+06 3.4079997E+05 4.1001998E+06<BR> -2 2 2 5 3 4<BR> 6 4 1 7 5 1<BR> 2 3.4050000E+05 4.1001002E+06 3.4070003E+05 4.1001998E+06<BR> -4 3 2 -5 4 3<BR> -1 0 0 0 0 0 0<BR></P> |
|
|
14楼#
发布于:2005-11-07 16:34
<P>3.2 CNT</P>
<P>The CNT (Polygon Centroid Coordinates) file contains the centroid<BR>of each polygon in the coverage. It has sets of centroid<BR>information with an initial coordinate line and, if there are<BR>labels, one line per label giving the number for the label. The<BR>coordinate line has three fields:</P> <P> 1- number of labels in polygon<BR> 2- centroid x<BR> 3- centroid y</P> <P>An example of an actual CNT section follows:</P> <P>CNT 2<BR> 0 3.4048516E+05 4.1001702E+06<BR> 1 3.4046691E+05 4.1002662E+06<BR> 1<BR> 1 3.4048875E+05 4.1000852E+06<BR> 2<BR> 0 3.4060000E+05 4.1001665E+06<BR> -1 0 0 0 0 0 0</P> <P>3.3 LAB</P> <P>The LAB (label point coordinates and topology) file consists of<BR>repeating sets of label point information. The first line of<BR>each set has four numbers:</P> <P> 1. coverage-ID<BR> 2. polygon which encloses it<BR> 3. x coordinate<BR> 4. y coordinate</P> <P>The second and final line of the set gives the label box window. <BR>This information is marked as marked as obsolete in the SDL<BR>documentation. It currently contains repetitions of the x and y<BR>coordinates.</P> <P>Note that the LAB section ends with a different '-1' line than<BR>the other files.</P> <P>An example of an actual LAB section follows:</P> <P>LAB 2<BR> 1 2 3.4046650E+05 4.1002668E+06<BR> 3.4046650E+05 4.1002668E+06 3.4046650E+05 4.1002668E+06<BR> 2 3 3.4048869E+05 4.1000852E+06<BR> 3.4048869E+05 4.1000852E+06 3.4048869E+05 4.1000852E+06<BR> -1 0 0.0000000E+00 0.0000000E+00</P> <P>An example of a double-precision LAB section follows:</P> <P>LAB 3<BR> 1 2 3.40500000000000E+05 4.10006225000000E+06<BR> 3.40500000000000E+05 4.10006225000000E+06<BR> 3.40500000000000E+05 4.10006225000000E+06<BR> 2 3 3.40468812500000E+05 4.10026225000000E+06<BR> 3.40468812500000E+05 4.10026225000000E+06<BR> 3.40468812500000E+05 4.10026225000000E+06<BR> -1 0 0.00000000000000E+00 0.00000000000000E+00<BR></P> |
|
|
15楼#
发布于:2005-11-07 16:33
<P>3.1 ARC</P>
<P>The ARC (arc coordinates and topology) file consists of repeating<BR>sets of arc information. The first line of each set has seven<BR>numbers:</P> <P> 1. coverage#<BR> 2. coverage-ID<BR> 3. from node<BR> 4. to node<BR> 5. left polygon<BR> 6. right polygon<BR> 7. number of coordinates</P> <P>The subsequent lines of a set are the coordinates with two x-y<BR>pairs per line, if the coverage is single-precision. If there<BR>are an odd number of coordinates, the last line will have only<BR>one x-y pair. Double-precision puts one coordinate pair on each<BR>line.</P> <P>An example of an actual ARC section follows:</P> <P>ARC 2<BR> 1 2 2 1 1 2 2<BR> 3.4029994E+05 4.1001998E+06 3.4009988E+05 4.1002000E+06<BR> 2 3 3 2 3 2 2<BR> 3.4050000E+05 4.1001998E+06 3.4029994E+05 4.1001998E+06<BR> 3 1 1 4 1 2 4<BR> 3.4009988E+05 4.1002000E+06 3.4040006E+05 4.1003995E+06<BR> 3.4090012E+05 4.1002000E+06 3.4070003E+05 4.1001995E+06<BR> 4 4 4 3 4 2 2<BR> 3.4070003E+05 4.1001995E+06 3.4050000E+05 4.1001998E+06<BR> 5 6 3 4 4 3 3<BR> 3.4050000E+05 4.1001998E+06 3.4059997E+05 4.1001002E+06<BR> 3.4070003E+05 4.1001995E+06<BR> 6 7 4 5 1 3 3<BR> 3.4070003E+05 4.1001995E+06 3.4079997E+05 4.1000002E+06<BR> 3.4019978E+05 4.1000000E+06<BR> 7 5 5 2 1 3 2<BR> 3.4019978E+05 4.1000000E+06 3.4029994E+05 4.1001998E+06<BR> -1 0 0 0 0 0 0</P> <P>An example of a double-precision ARC section follows:</P> <P>ARC 3<BR> 1 0 0 0 0 0 7<BR> 3.40200000000000E+05 4.10000000000000E+06<BR> 3.40300000000000E+05 4.10020000000000E+06<BR> 3.40500000000000E+05 4.10020000000000E+06<BR> 3.40600000000000E+05 4.10010000000000E+06<BR> 3.40700000000000E+05 4.10020000000000E+06<BR> 3.40800000000000E+05 4.10000000000000E+06<BR> 3.40200000000000E+05 4.10000000000000E+06<BR> 2 0 0 0 0 0 4<BR> 3.40100000000000E+05 4.10020000000000E+06<BR> 3.40400000000000E+05 4.10040000000000E+06<BR> 3.40900000000000E+05 4.10020000000000E+06<BR> 3.40100000000000E+05 4.10020000000000E+06<BR> -1 0 0 0 0 0 0<BR></P> |
|
|
16楼#
发布于:2005-11-07 16:33
<P>这个是以前看过的一个格式说明,发上做参考</P>
<P>下载地址:</P> <P><a href="attachment/2005-11/200511716371527846.txt">2005-11/200511716371527846.txt</a></P> <P> ANALYSIS</P> <P> OF</P> <P> ARC EXPORT FILE FORMAT<br> <br> FOR</P> <P> ARC/INFO (REV 6.1.1)</P><br><br><br><br><br> <P><br> TABLE OF CONTENTS</P> <P>1 INTRODUCTION. . . . . . . . . . . . . . . . . . . . . . . 1</P> <P>2 OVERALL ORGANIZATION. . . . . . . . . . . . . . . . . . . 2</P> <P>3 ARC FILE FORMATS. . . . . . . . . . . . . . . . . . . . . 3<br> 3.1 ARC. . . . . . . . . . . . . . . . . . . . . . . . . 4<br> 3.2 CNT. . . . . . . . . . . . . . . . . . . . . . . . . 6<br> 3.3 LAB. . . . . . . . . . . . . . . . . . . . . . . . . 7<br> 3.4 LOG. . . . . . . . . . . . . . . . . . . . . . . . . 8<br> 3.5 PAL. . . . . . . . . . . . . . . . . . . . . . . . . 9<br> 3.6 PRJ. . . . . . . . . . . . . . . . . . . . . . . . . 11<br> 3.7 SIN. . . . . . . . . . . . . . . . . . . . . . . . . 12<br> 3.8 TOL. . . . . . . . . . . . . . . . . . . . . . . . . 13</P> <P>4 INFO FILE FORMATS . . . . . . . . . . . . . . . . . . . . 14<br> 4.1 .AAT . . . . . . . . . . . . . . . . . . . . . . . . 15<br> 4.2 .ACODE . . . . . . . . . . . . . . . . . . . . . . . 16<br> 4.3 .BND . . . . . . . . . . . . . . . . . . . . . . . . 17<br> 4.4 .PAT . . . . . . . . . . . . . . . . . . . . . . . . 18<br> 4.5 .PCODE . . . . . . . . . . . . . . . . . . . . . . . 19<br> 4.6 .TIC . . . . . . . . . . . . . . . . . . . . . . . . 20</P> <P>5 CONCLUSION. . . . . . . . . . . . . . . . . . . . . . . . 21</P> <P>APPENDIX A: SAMPLE EXPORT FILE BEFORE TOPOLOGY. . . . . . . . 22</P> <P>APPENDIX B: SAMPLE EXPORT FILE AFTER POLYGON TOPOLOGY . . . . 24</P> <P>APPENDIX C: SAMPLE EXPORT FILE AFTER LINE TOPOLOGY. . . . . . 27</P> <P>APPENDIX D: SAMPLE EXPORT FILE FOR POINT COVERAGE . . . . . . 30</P> <P>APPENDIX E: SAMPLE EXPORT FILE FOR SINGLE-PRECISION<br> COVERAGE. . . . . . . . . . . . . . . . . . . . . . . . . 35</P> <P>APPENDIX F: SAMPLE EXPORT FILE FOR DOUBLE-PRECISION<br> COVERAGE. . . . . . . . . . . . . . . . . . . . . . . . . 37<br>1 INTRODUCTION</P> <P><br>Note: ESRI considers the export/import file format to be<br>proprietary. As a consequence, the identified format can only<br>constitute a "best guess" and must always be considered as<br>tentative and subject to revision, as more is learned.</P> <P>It appears that all ARC/INFO files except user-created lookup<br>tables are exported, including .ACODE and .PCODE.<br>2 OVERALL ORGANIZATION</P> <P>The export file begins with a line with three fields.</P> <P> 1- an initial 'EXP'<br> 2- what appears to be a constant of '0'<br> 3- the pathname for the creation of the export file</P> <P>The export file ends with a line beginning 'EOS'.</P> <P>The ARC files are included first, in alphabetical order except<br>for the SIN, LOG, and PRJ files which occur last. Then the INFO<br>files are included in alphabetical order.</P> <P>The beginning of each ARC file is indicated by the file name (a<br>three-character identifier) followed by ' 2' for single-<br>precision or ' 3' for double-precision. Single-precision<br>carries 8 digits, and double-precision carries 15 digits.</P> <P>Each ARC file ends with a line of seven numbers beginning with a<br>-1 and followed by six zeros, except the SIN, LOG, and PRJ files<br>which end in 'EOX', 'EOL', and 'EOP', respectively. The LAB file<br>uses a slight variation of this -1 ending line (see below). The<br>format for each ARC file is specific to that type of file. These<br>formats are covered below.</P> <P>The beginning of the INFO file section is indicated by 'IFO 2',<br>and its end is indicated by 'EOI'. The INFO files each begin with<br>the file name. For example, the polygon attribute table would be<br>'STDFIG24C.PAT' on a line by itself. The format is the same for<br>every INFO file. This format is given below.<br>3 ARC FILE FORMATS</P> <P>Formats will be given for the most common ARC files:</P> <P> ARC<br> CNT<br> LAB<br> LOG<br> PAL<br> PAR<br> PRJ<br> SIN<br> TOL</P><br> [此贴子已经被作者于2005-11-7 16:37:41编辑过]
|
|
|
17楼#
发布于:2005-11-07 16:08
<P>我看了一下那个网站,那里只说了怎么读写的方法,但是涉及到内核数据如何读取的问题,却略了。</P>
<P>嗯,如果问题解决了,一定过来说明的。</P> [此贴子已经被作者于2005-11-7 16:17:52编辑过]
|
|
18楼#
发布于:2005-11-07 15:49
希望有结果到这里发布下成果和经验,这个问题还是大家比较需要的:)
|
|
|
19楼#
发布于:2005-11-07 15:43
<P>真是不错的地方,先谢谢您,我去看看</P>
<P><img src="images/post/smile/dvbbs/em02.gif" /> </P> |
|