-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port Distance Matrix algorithm to new API
Enhancements: - support source/target layers in different CRS - output layers with geometry (i.e. keep input point geometry - avoids need to rejoin result back to original table to get geometry) - keep original data types for id fields - don't fire off many single feature requests - instead request multiple features at once to improve speed
- Loading branch information
1 parent
7f58af1
commit b7f888b
Showing
5 changed files
with
844 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
python/plugins/processing/tests/testdata/expected/distance_matrix.gfs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<GMLFeatureClassList> | ||
<GMLFeatureClass> | ||
<Name>distance_matrix</Name> | ||
<ElementPath>distance_matrix</ElementPath> | ||
<!--MULTIPOINT--> | ||
<GeometryType>4</GeometryType> | ||
<SRSName>EPSG:4326</SRSName> | ||
<DatasetSpecificInfo> | ||
<FeatureCount>81</FeatureCount> | ||
<ExtentXMin>0.00000</ExtentXMin> | ||
<ExtentXMax>8.00000</ExtentXMax> | ||
<ExtentYMin>-5.00000</ExtentYMin> | ||
<ExtentYMax>3.00000</ExtentYMax> | ||
</DatasetSpecificInfo> | ||
<PropertyDefn> | ||
<Name>InputID</Name> | ||
<ElementPath>InputID</ElementPath> | ||
<Type>String</Type> | ||
<Width>8</Width> | ||
</PropertyDefn> | ||
<PropertyDefn> | ||
<Name>TargetID</Name> | ||
<ElementPath>TargetID</ElementPath> | ||
<Type>String</Type> | ||
<Width>8</Width> | ||
</PropertyDefn> | ||
<PropertyDefn> | ||
<Name>Distance</Name> | ||
<ElementPath>Distance</ElementPath> | ||
<Type>Real</Type> | ||
</PropertyDefn> | ||
</GMLFeatureClass> | ||
</GMLFeatureClassList> |
Oops, something went wrong.