-
-
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.
Offer a per feature, as well as a global minimum distance parameter, …
…for the Random points on lines algorithm (#35793)
- Loading branch information
Showing
11 changed files
with
333 additions
and
146 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
38 changes: 38 additions & 0 deletions
38
python/plugins/processing/tests/testdata/expected/randompointsonlines_gmin2.gml
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,38 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ogr:FeatureCollection | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://ogr.maptools.org/ randompointsonlines_gmin2.xsd" | ||
xmlns:ogr="http://ogr.maptools.org/" | ||
xmlns:gml="http://www.opengis.net/gml"> | ||
<gml:boundedBy> | ||
<gml:Box> | ||
<gml:coord><gml:X>0.9943696164605311</gml:X><gml:Y>-1</gml:Y></gml:coord> | ||
<gml:coord><gml:X>5.016982402766835</gml:X><gml:Y>4.065340382087966</gml:Y></gml:coord> | ||
</gml:Box> | ||
</gml:boundedBy> | ||
|
||
<gml:featureMember> | ||
<ogr:randompointsonlines_gmin2 fid="lines.1"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>0.994369616460531,-1.0</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:rand_point_id>0</ogr:rand_point_id> | ||
</ogr:randompointsonlines_gmin2> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:randompointsonlines_gmin2 fid="lines.2"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>3.21878902270166,1.0</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:rand_point_id>1</ogr:rand_point_id> | ||
</ogr:randompointsonlines_gmin2> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:randompointsonlines_gmin2 fid="lines.2"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>5.01698240276683,1.99347056185985</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:rand_point_id>2</ogr:rand_point_id> | ||
</ogr:randompointsonlines_gmin2> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:randompointsonlines_gmin2 fid="lines.4"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>3.57261885032267,4.06534038208797</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:rand_point_id>3</ogr:rand_point_id> | ||
</ogr:randompointsonlines_gmin2> | ||
</gml:featureMember> | ||
</ogr:FeatureCollection> |
30 changes: 30 additions & 0 deletions
30
python/plugins/processing/tests/testdata/expected/randompointsonlines_gmin2.xsd
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,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xs:schema targetNamespace="http://ogr.maptools.org/" xmlns:ogr="http://ogr.maptools.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml" elementFormDefault="qualified" version="1.0"> | ||
<xs:import namespace="http://www.opengis.net/gml" schemaLocation="http://schemas.opengis.net/gml/2.1.2/feature.xsd"/> | ||
<xs:element name="FeatureCollection" type="ogr:FeatureCollectionType" substitutionGroup="gml:_FeatureCollection"/> | ||
<xs:complexType name="FeatureCollectionType"> | ||
<xs:complexContent> | ||
<xs:extension base="gml:AbstractFeatureCollectionType"> | ||
<xs:attribute name="lockId" type="xs:string" use="optional"/> | ||
<xs:attribute name="scope" type="xs:string" use="optional"/> | ||
</xs:extension> | ||
</xs:complexContent> | ||
</xs:complexType> | ||
<xs:element name="randompointsonlines_gmin2" type="ogr:randompointsonlines_gmin2_Type" substitutionGroup="gml:_Feature"/> | ||
<xs:complexType name="randompointsonlines_gmin2_Type"> | ||
<xs:complexContent> | ||
<xs:extension base="gml:AbstractFeatureType"> | ||
<xs:sequence> | ||
<xs:element name="geometryProperty" type="gml:PointPropertyType" nillable="true" minOccurs="0" maxOccurs="1"/> | ||
<xs:element name="rand_point_id" nillable="true" minOccurs="0" maxOccurs="1"> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:long"> | ||
<xs:totalDigits value="20"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:element> | ||
</xs:sequence> | ||
</xs:extension> | ||
</xs:complexContent> | ||
</xs:complexType> | ||
</xs:schema> |
80 changes: 0 additions & 80 deletions
80
python/plugins/processing/tests/testdata/expected/randompointsonlines_min1.gml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.