Methods for using TXT coordinate files to create elements in ArcGIS, including detailed TXT file formats ~

Source: Internet
Author: User
Tags polyline
Due to work needs Coordinates Results To restore to the basemap, you need a simple and quick method. Research And found that two of arctoolbox/samples/data management/features can be used Tools Create features from text file (import) and write features to text file (export) Complete TXT text Format But the two tools exchange the txt File The format does not have a clear description. I analyzed the python Code , Completed the format parsing, is published now, hope to help everyone, also welcome to exchange, My QQ: 25737305

The tool can operate on four types of elements: "point", "multipoint", "polyline", and "polygon, the TXT text format is also different. I Parse them separately, indicating that the text is written at the end of the Data row, and the brackets include:

1. Point. This type is the simplest!
Point (element type flag)
1-93862868531.3 326049964372.0 1. # qnan 1. # qnan (oidfield value x y z m)
2 154791397227.0 210779774948.0 1. # qnan 1. # qnan (same as above)
3-4940150975.33 83982566580.7 1. # qnan 1. # qnan (same as above)
4-163024982186.0-113623472433.0 1. # qnan 1. # qnan (same as above)
5-223953510882.0 200899472997.0 1. # qnan 1. # qnan (same as above)
End)

2. mulitipoint
multipoint (element type marker)
1 0 (the oidfield value is always 0)
0-327554372488.0 214032549252.0 1. # qnan 1. # qnan (part No. x y z m)
1-305923423361.0 339264359985.0 1. # qnan 1. # qnan (same as above)
2-226230452895.0 175324535026.0 1. # qnan 1. # qnan (same as above)
3-217122684842.0 265263744552.0 1. # qnan 1. # qnan (same as above)
2 0 (the oidfield value is always 0)
0-201184090749.0 340402830992.0 1. # qnan 1. # qnan (part No. x y z m)
1-169306902562.0 388218613271.0 1. # qnan 1. # qnan (same as above)
2-98721700149.0 323325765892.0 1. # qnan 1. # qnan (same as above)
end (End mark)

3. polyline
polyline (element type marker)
1 0 (oidfield value part number)
0-255337489816.0 349625784731.0 1. # qnan 1. # qnan (part No. x y z m)
1-324078053841.0 261790619588.0 1. # qnan 1. # qnan (same as above)
2-283342904789.0 64479741368.9 1. # qnan 1. # qnan (same as above)
3-145861776740.0 123036518131.0 1. # qnan 1. # qnan (same as above)
2 0
0-210783420541.0 198141949195.0 1. # qnan 1. # qnan (part No. x y z m)
1-78394186122.8 247787912102.0 1. # qnan 1. # qnan (same as above)
2-50388771149.8 103941917013.0 1. # qnan 1. # qnan (same as above)
3-210783420541.0-39904078076.1 1. # qnan 1. # qnan (same as above)
end (End mark)

4. Polygon
polygon (element type marker)
2 0 (oidfield value part number)
0-72536866995.8 146862759859.0 0.0 1. # qnan (part No. x y z m)
1 41310233670.3 92216151539.6 0.0 1. # qnan (same as above)
2-53182859882.6 21630949126.6 0.0 1. # qnan (same as above)
3-107829468202.0 100185448586.0 0.0 1. # qnan (same as above)
4-72536866995.8 146862759859.0 0.0 1. # qnan (same as above)
interiorring (internal ring sign)
5-63429098942.5 103600861606.0 0.0 1. # qnan (part No. x y z m)
6-52044388875.9 71723673419.7 0.0 1. # qnan (same as above)
7-13336374649.5 75139086439.6 0.0 1. # qnan (same as above)
8-22444142702.7 105877803619.0 0.0 1. # qnan (same as above)
9-44075091829.3 110431687646.0 0.0 1. # qnan (same as above)
10-63429098942.5 103600861606.0 0.0 1. # qnan (same as above)
2 1 (oidfield value part number)
0-299092597321.0 245909737439.0 0.0 1. # qnan (part No. x y z m)
1-171583844575.0 196955484152.0 0.0 1. # qnan (same as above)
2-170445373569.0 69446731406.3 0.0 1. # qnan (same as above)
3-294538713295.0 86523796506.2 0.0 1. # qnan (same as above)
4-299092597321.0 245909737439.0 0.0 1. # qnan (same as above)
end (End mark)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.