Lines Matching refs:LineString
13 use geoPHP\Geometry\LineString;
121 $trackFromRoute = new LineString($this->trackFromRoute);
197 * @return LineString[]
215 // Avoids creating invalid LineString
216 $segments[] = new LineString(count($points) <> 1 ? $points : []);
219 ? new LineString()
232 * @return LineString[]
248 $line = new LineString($components);
348 /** @var LineString $geometry */
387 * Writes a LineString or MultiLineString to the GPX
389 * The (Multi)LineString will be included in a <trk></trk> block
390 * The LineString or each LineString of the MultiLineString will be in <trkseg> </trkseg> inside the <trk>
392 * @param LineString|MultiLineString $geom
406 $components = $geom->geometryType() === 'LineString' ? [$geom] : $geom->getComponents();
446 if (strpos($component->geometryType(), 'LineString') !== false && $component->getData('gpxType') === 'route') {
449 if (strpos($component->geometryType(), 'LineString') !== false && $component->getData('gpxType') !== 'route') {
452 if (strpos($component->geometryType(), 'Point') === false && strpos($component->geometryType(), 'LineString') === false) {