Maybe... I has been wrong in the previous example... I am sorry.
i get and i have lot of similar file as data.csv (data with yx(z) OR with wkt)
often so I must be able to process efficiently so i would like to solve/avoid
all fo problem...
in my oppinion there is two (or more) parts of the problem: the WKT file format
and the CSV file format.
I can accept the restriction of the WKT format, that it can be stored only the
geometry but then should not be allowed the "WKT (set options)" chance. The WKT
file with other attribute datas is not a valid WKT file.
Everything, what is not valid WKT format (storing not geometry only) that we
need to be able to read with CSV driver, independent what it stores: xyz or WKT
string and optional attribute data(s) instead of "wkt (set options)".
Maybe we could need a "Column containing WKT value" option at "csv (set
options)" panel...
(I beg you pardon for my poor English knowledge. The precise wording of things
isn't too easy for me but fortunately easier as Chinese...)
[ The xy has been replaced to yx in Hungarian Geodetic System but the formulas
are the same... it is our individual social problem... :P ]
---
** [bugs:#494] Load WKT file with set options**
**Status:** pending
**Milestone:**
**Labels:** WKT WKT (set options)
**Created:** Thu Jul 30, 2020 08:54 AM UTC by János Tamás Kis
**Last Updated:** Sun Aug 30, 2020 09:34 AM UTC
**Owner:** michael michaud
**Attachments:**
-
[proba.jmp](https://sourceforge.net/p/jump-pilot/bugs/494/attachment/proba.jmp)
(6.5 kB; application/octet-stream)
-
[proba.wkt](https://sourceforge.net/p/jump-pilot/bugs/494/attachment/proba.wkt)
(149 Bytes; application/octet-stream)
-
[reverse.jmp](https://sourceforge.net/p/jump-pilot/bugs/494/attachment/reverse.jmp)
(7.2 kB; application/octet-stream)
-
[reverse.wkt](https://sourceforge.net/p/jump-pilot/bugs/494/attachment/reverse.wkt)
(149 Bytes; application/octet-stream)
I have a simple WKT file with an attribute data (like 'proba.wkt' file) where
the geomerty is in the second data field/column.
I have open it with the "wkt (set options)" function into a new project.
I have set the "Column containing WKT geometry" listbox to "2".
That was great: I could see the map and data.
I have saved the project as proba.jmp and I saw the
~~~
<key class="java.lang.String">WKT-Column</key>
<value class="java.lang.String">2</value>
~~~
lines in JMP file so I thought everyhing is OK, but when I tried reopen the JMP
file I got a java.lang.Exception:
> Field 1 is needed for geometry but [] has only 0 fields.
What was wrong...?
It's OK, I tried other way...
Let be the geometry in the first and the attribute data in the second data
field/column (like 'reverse.wkt' file) and open it (with "Column containing WKT
geometry" listbox to "1" option) and save the project (reverse.jmp). There are
the
~~~
<key class="java.lang.String">WKT-Column</key>
<value class="java.lang.String">1</value>
~~~
rows.
When I tried reopen then I got the
> Field 0 is needed for geometry but [] has only 0 fields
exception, similar before but the index is 0...
I am afraid, the JMP files are correct but the loader have wrong about indexing
besause it try load geometry from other column what I have set and stored in
JMP file or what am i wrong with?
---
Sent from sourceforge.net because jump-pilot-devel@lists.sourceforge.net is
subscribed to https://sourceforge.net/p/jump-pilot/bugs/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/jump-pilot/admin/bugs/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel