Skip to content
Permalink
Browse files
Offer a per feature, as well as a global minimum distance parameter, …
…for the Random points on lines algorithm (#35793)
  • Loading branch information
havatv committed Apr 19, 2020
1 parent 384859c commit 860645ab4286cf752e6f3d354f2672afa92b3f92
@@ -12,181 +12,181 @@
</gml:boundedBy>

<gml:featureMember>
<ogr:randompointsonlines fid="randompointsonlines.0">
<ogr:randompointsonlines 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>
</gml:featureMember>
<gml:featureMember>
<ogr:randompointsonlines fid="randompointsonlines.1">
<ogr:randompointsonlines fid="lines.1">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>0.865114722736331,-1.0</gml:coordinates></gml:Point></ogr:geometryProperty>
<ogr:rand_point_id>1</ogr:rand_point_id>
</ogr:randompointsonlines>
</gml:featureMember>
<gml:featureMember>
<ogr:randompointsonlines fid="randompointsonlines.2">
<ogr:randompointsonlines fid="lines.1">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>-0.743751104455388,-1.0</gml:coordinates></gml:Point></ogr:geometryProperty>
<ogr:rand_point_id>2</ogr:rand_point_id>
</ogr:randompointsonlines>
</gml:featureMember>
<gml:featureMember>
<ogr:randompointsonlines fid="randompointsonlines.3">
<ogr:randompointsonlines fid="lines.1">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>0.998081030930547,-1.0</gml:coordinates></gml:Point></ogr:geometryProperty>
<ogr:rand_point_id>3</ogr:rand_point_id>
</ogr:randompointsonlines>
</gml:featureMember>
<gml:featureMember>
<ogr:randompointsonlines fid="randompointsonlines.4">
<ogr:randompointsonlines fid="lines.1">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>-0.527822047403662,-1.0</gml:coordinates></gml:Point></ogr:geometryProperty>
<ogr:rand_point_id>4</ogr:rand_point_id>
</ogr:randompointsonlines>
</gml:featureMember>
<gml:featureMember>
<ogr:randompointsonlines fid="randompointsonlines.5">
<ogr:randompointsonlines fid="lines.1">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>-0.206838547674781,-1.0</gml:coordinates></gml:Point></ogr:geometryProperty>
<ogr:rand_point_id>5</ogr:rand_point_id>
</ogr:randompointsonlines>
</gml:featureMember>
<gml:featureMember>
<ogr:randompointsonlines fid="randompointsonlines.6">
<ogr:randompointsonlines fid="lines.1">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>-0.224178519478878,-1.0</gml:coordinates></gml:Point></ogr:geometryProperty>
<ogr:rand_point_id>6</ogr:rand_point_id>
</ogr:randompointsonlines>
</gml:featureMember>
<gml:featureMember>
<ogr:randompointsonlines fid="randompointsonlines.7">
<ogr:randompointsonlines fid="lines.1">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>0.339492080894094,-1.0</gml:coordinates></gml:Point></ogr:geometryProperty>
<ogr:rand_point_id>7</ogr:rand_point_id>
</ogr:randompointsonlines>
</gml:featureMember>
<gml:featureMember>
<ogr:randompointsonlines fid="randompointsonlines.8">
<ogr:randompointsonlines fid="lines.1">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>0.87107814540936,-1.0</gml:coordinates></gml:Point></ogr:geometryProperty>
<ogr:rand_point_id>8</ogr:rand_point_id>
</ogr:randompointsonlines>
</gml:featureMember>
<gml:featureMember>
<ogr:randompointsonlines fid="randompointsonlines.9">
<ogr:randompointsonlines fid="lines.1">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>0.692621836689681,-1.0</gml:coordinates></gml:Point></ogr:geometryProperty>
<ogr:rand_point_id>9</ogr:rand_point_id>
</ogr:randompointsonlines>
</gml:featureMember>
<gml:featureMember>
<ogr:randompointsonlines fid="randompointsonlines.10">
<ogr:randompointsonlines fid="lines.2">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>4.06982464840608,1.0</gml:coordinates></gml:Point></ogr:geometryProperty>
<ogr:rand_point_id>10</ogr:rand_point_id>
</ogr:randompointsonlines>
</gml:featureMember>
<gml:featureMember>
<ogr:randompointsonlines fid="randompointsonlines.11">
<ogr:randompointsonlines fid="lines.2">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>4.79132461080717,1.0</gml:coordinates></gml:Point></ogr:geometryProperty>
<ogr:rand_point_id>11</ogr:rand_point_id>
</ogr:randompointsonlines>
</gml:featureMember>
<gml:featureMember>
<ogr:randompointsonlines fid="randompointsonlines.12">
<ogr:randompointsonlines fid="lines.2">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>4.51438540565048,1.0</gml:coordinates></gml:Point></ogr:geometryProperty>
<ogr:rand_point_id>12</ogr:rand_point_id>
</ogr:randompointsonlines>
</gml:featureMember>
<gml:featureMember>
<ogr:randompointsonlines fid="randompointsonlines.13">
<ogr:randompointsonlines fid="lines.2">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>3.78400298357133,1.0</gml:coordinates></gml:Point></ogr:geometryProperty>
<ogr:rand_point_id>13</ogr:rand_point_id>
</ogr:randompointsonlines>
</gml:featureMember>
<gml:featureMember>
<ogr:randompointsonlines fid="randompointsonlines.14">
<ogr:randompointsonlines fid="lines.2">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>4.8250159892403,1.0</gml:coordinates></gml:Point></ogr:geometryProperty>
<ogr:rand_point_id>14</ogr:rand_point_id>
</ogr:randompointsonlines>
</gml:featureMember>
<gml:featureMember>
<ogr:randompointsonlines fid="randompointsonlines.15">
<ogr:randompointsonlines fid="lines.2">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>5.00502180455731,1.29377556660287</gml:coordinates></gml:Point></ogr:geometryProperty>
<ogr:rand_point_id>15</ogr:rand_point_id>
</ogr:randompointsonlines>
</gml:featureMember>
<gml:featureMember>
<ogr:randompointsonlines fid="randompointsonlines.16">
<ogr:randompointsonlines fid="lines.2">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>4.5613480038941,1.0</gml:coordinates></gml:Point></ogr:geometryProperty>
<ogr:rand_point_id>16</ogr:rand_point_id>
</ogr:randompointsonlines>
</gml:featureMember>
<gml:featureMember>
<ogr:randompointsonlines fid="randompointsonlines.17">
<ogr:randompointsonlines fid="lines.2">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>4.47082956972335,1.0</gml:coordinates></gml:Point></ogr:geometryProperty>
<ogr:rand_point_id>17</ogr:rand_point_id>
</ogr:randompointsonlines>
</gml:featureMember>
<gml:featureMember>
<ogr:randompointsonlines fid="randompointsonlines.18">
<ogr:randompointsonlines fid="lines.2">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>5.00355294633537,1.2078473606193</gml:coordinates></gml:Point></ogr:geometryProperty>
<ogr:rand_point_id>18</ogr:rand_point_id>
</ogr:randompointsonlines>
</gml:featureMember>
<gml:featureMember>
<ogr:randompointsonlines fid="randompointsonlines.19">
<ogr:randompointsonlines fid="lines.2">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>5.01293482227269,1.75668710295238</gml:coordinates></gml:Point></ogr:geometryProperty>
<ogr:rand_point_id>19</ogr:rand_point_id>
</ogr:randompointsonlines>
</gml:featureMember>
<gml:featureMember>
<ogr:randompointsonlines fid="randompointsonlines.20">
<ogr:randompointsonlines fid="lines.4">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>5.45660491023169,4.11968613381611</gml:coordinates></gml:Point></ogr:geometryProperty>
<ogr:rand_point_id>20</ogr:rand_point_id>
</ogr:randompointsonlines>
</gml:featureMember>
<gml:featureMember>
<ogr:randompointsonlines fid="randompointsonlines.21">
<ogr:randompointsonlines fid="lines.4">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>3.78645266020438,2.98379593968487</gml:coordinates></gml:Point></ogr:geometryProperty>
<ogr:rand_point_id>21</ogr:rand_point_id>
</ogr:randompointsonlines>
</gml:featureMember>
<gml:featureMember>
<ogr:randompointsonlines fid="randompointsonlines.22">
<ogr:randompointsonlines fid="lines.4">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>2.0,0.844225610300582</gml:coordinates></gml:Point></ogr:geometryProperty>
<ogr:rand_point_id>22</ogr:rand_point_id>
</ogr:randompointsonlines>
</gml:featureMember>
<gml:featureMember>
<ogr:randompointsonlines fid="randompointsonlines.23">
<ogr:randompointsonlines fid="lines.4">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>3.65776768699273,4.06779659853037</gml:coordinates></gml:Point></ogr:geometryProperty>
<ogr:rand_point_id>23</ogr:rand_point_id>
</ogr:randompointsonlines>
</gml:featureMember>
<gml:featureMember>
<ogr:randompointsonlines fid="randompointsonlines.24">
<ogr:randompointsonlines fid="lines.4">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>4.35274779800432,2.9721280020792</gml:coordinates></gml:Point></ogr:geometryProperty>
<ogr:rand_point_id>24</ogr:rand_point_id>
</ogr:randompointsonlines>
</gml:featureMember>
<gml:featureMember>
<ogr:randompointsonlines fid="randompointsonlines.25">
<ogr:randompointsonlines fid="lines.4">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>4.02647088988085,2.97885060722278</gml:coordinates></gml:Point></ogr:geometryProperty>
<ogr:rand_point_id>25</ogr:rand_point_id>
</ogr:randompointsonlines>
</gml:featureMember>
<gml:featureMember>
<ogr:randompointsonlines fid="randompointsonlines.26">
<ogr:randompointsonlines fid="lines.4">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>4.03062245091484,2.97876506851358</gml:coordinates></gml:Point></ogr:geometryProperty>
<ogr:rand_point_id>26</ogr:rand_point_id>
</ogr:randompointsonlines>
</gml:featureMember>
<gml:featureMember>
<ogr:randompointsonlines fid="randompointsonlines.27">
<ogr:randompointsonlines fid="lines.4">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>2.48398460138168,2.0</gml:coordinates></gml:Point></ogr:geometryProperty>
<ogr:rand_point_id>27</ogr:rand_point_id>
</ogr:randompointsonlines>
</gml:featureMember>
<gml:featureMember>
<ogr:randompointsonlines fid="randompointsonlines.28">
<ogr:randompointsonlines fid="lines.4">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>2.0,0.538945986405747</gml:coordinates></gml:Point></ogr:geometryProperty>
<ogr:rand_point_id>28</ogr:rand_point_id>
</ogr:randompointsonlines>
</gml:featureMember>
<gml:featureMember>
<ogr:randompointsonlines fid="randompointsonlines.29">
<ogr:randompointsonlines fid="lines.4">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>5.04337850348996,4.10776614131395</gml:coordinates></gml:Point></ogr:geometryProperty>
<ogr:rand_point_id>29</ogr:rand_point_id>
</ogr:randompointsonlines>
@@ -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>
@@ -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>

This file was deleted.

0 comments on commit 860645a

Please sign in to comment.