4

I would like to read text files with this structure:

FileHeader "WWW Object Text","Coordinate Document"
begin
    FileInfo "Application","XXX"
    FileInfo "SerialNo","XXXX"
    FileInfo "Author","xxxx"
    FileInfo "Company","xxxx"
    FileInfo "Description",
    FileInfo "Coordinate System","ZZZZZ"
end
PointList 
begin
    Point "1",6619195.566,139583.0563,17.3598,"227",,
    Point "2",6619195.1951,139583.12,16.7636,"228",,
    Point "3.1CUL",6618174.0649,141818.0054,17.3889,"612",,
    Point "3.2CUL",6618176.6504,141817.6756,17.4405,"612",,
end
LineList 
AttributeList 

It seems simple, but I have not figured it out how to read it with Add delimited text layer. Does it belong to a known format?

2 Answers 2

3

I assume that there are 11 lines to the first "Point" line in every file. If so, use those options in "Create a Layer from a Delimited Text File" window: (You may need to modify X and Y field)

enter image description here

And then, you need to specify "Coordinate System".

2
  • Awesome! I did not know what was Escape for, now it is clear
    – Marco
    Apr 16, 2018 at 14:40
  • "Your" file format seems to be designed to potentially include other geometry types (cf. LineList) i guess the import of these objects won't be as easy as for points ...
    – Snaileater
    Apr 16, 2018 at 16:21
1

I don't know if it's a known file format but if your aim is only to retrieve the points it contains you can certainly copy the part between begin and end (pointlist) and retrieve these data in a csv file. Unless you want a more automatic procedure (of course)

2
  • Yes, I would like to read them without the need of creating new ones or modifying them
    – Marco
    Apr 16, 2018 at 12:50
  • i suppose i wasn't clear enough ...
    – Snaileater
    Apr 16, 2018 at 16:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.