First test by creating a new layer with three points and then trying to use the
tool fails because layer has no attributes. I would await that intermnal fid
would be used for sorting then.
Error is:
java.lang.IllegalArgumentException: Unrecognized attribute name: No valid
attribute
at
com.vividsolutions.jump.feature.FeatureSchema.getAttributeIndex(FeatureSchema.java:110)
at
com.vividsolutions.jump.feature.AbstractBasicFeature.getAttribute(AbstractBasicFeature.java:110)
at
org.openjump.core.ui.plugin.tools.geometrychange.PointsToPathsPlugIn$1.apply(PointsToPathsPlugIn.java:99)
at
org.openjump.core.ui.plugin.tools.geometrychange.PointsToPathsPlugIn$1.apply(PointsToPathsPlugIn.java:98)
at java.util.Comparator.lambda$comparing$77a9974f$1(Unknown Source)
at java.util.TimSort.countRunAndMakeAscending(Unknown Source)
at java.util.TimSort.sort(Unknown Source)
at java.util.Arrays.sort(Unknown Source)
at java.util.ArrayList.sort(Unknown Source)
at
org.openjump.core.ui.plugin.tools.geometrychange.PointsToPathsPlugIn.run(PointsToPathsPlugIn.java:103)
at
com.vividsolutions.jump.workbench.ui.task.TaskMonitorManager$TaskWrapper.run(TaskMonitorManager.java:151)
---
** [feature-requests:#265] Create a "make line" tool**
**Status:** open
**Created:** Tue Jan 14, 2020 06:00 PM UTC by Jukka Rahkonen
**Last Updated:** Sun Jan 26, 2020 06:38 PM UTC
**Owner:** nobody
**Attachments:**
-
[OpenJUMP_makeline.jml.txt](https://sourceforge.net/p/jump-pilot/feature-requests/265/attachment/OpenJUMP_makeline.jml.txt)
(2.6 kB; text/plain)
-
[OpenJUMP_makeline_definition.odt](https://sourceforge.net/p/jump-pilot/feature-requests/265/attachment/OpenJUMP_makeline_definition.odt)
(39.3 kB; application/vnd.oasis.opendocument.text)
The new tool should build a linestring from the points from a layer. Points
should be added as vertices to the linestring in the same order than they
appear in data, or sorted by a selected attribute. More details in the
attachments.
---
Sent from sourceforge.net because [email protected] is
subscribed to https://sourceforge.net/p/jump-pilot/feature-requests/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/jump-pilot/admin/feature-requests/options. Or, if
this is a mailing list, you can unsubscribe from the mailing list._______________________________________________
Jump-pilot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel