mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
Fix direction for eventLayer offset
This commit is contained in:
parent
17c04547ac
commit
f2443737e0
@ -46,7 +46,8 @@ class QgsGeometryAnalyzer
|
|||||||
bool onlySelectedFeatures = false,
|
bool onlySelectedFeatures = false,
|
||||||
int uniqueIdField = -1 );
|
int uniqueIdField = -1 );
|
||||||
|
|
||||||
/**Creates an event layer (multipoint or multiline). Note that currently (until QgsGeometry supports m-values) the z-coordinate of the line layer is used for linear referencing
|
/**Creates an event layer (multipoint or multiline) by locating features from a (non-spatial) event table along the features of a line layer.
|
||||||
|
Note that currently (until QgsGeometry supports m-values) the z-coordinate of the line layer is used for linear referencing
|
||||||
@param lineLayer layer with the line geometry
|
@param lineLayer layer with the line geometry
|
||||||
@param eventLayer layer with features and location field
|
@param eventLayer layer with features and location field
|
||||||
@param lineField join index in line layer
|
@param lineField join index in line layer
|
||||||
@ -56,6 +57,9 @@ class QgsGeometryAnalyzer
|
|||||||
@param unlocatedFeatureIds out: ids of event features where linear referencing was not successful
|
@param unlocatedFeatureIds out: ids of event features where linear referencing was not successful
|
||||||
@param locationField1 attribute index of location field in event layer
|
@param locationField1 attribute index of location field in event layer
|
||||||
@param locationField2 attribute index of location end field (or -1 for point layer)
|
@param locationField2 attribute index of location end field (or -1 for point layer)
|
||||||
|
@param offsetField attribute index for offset field. Negative offset value = offset to left side, positive value = offset to right side
|
||||||
|
@param offsetScale factor to scale offset
|
||||||
|
@param forceSingleGeometry force layer to single point/line type. Feature attributes are copied in case of multiple matches
|
||||||
@param memoryProvider memory provider to write output to (can be 0 if output is written to a file)
|
@param memoryProvider memory provider to write output to (can be 0 if output is written to a file)
|
||||||
@param p progress dialog or 0 if no progress dialog should be shown
|
@param p progress dialog or 0 if no progress dialog should be shown
|
||||||
*/
|
*/
|
||||||
|
@ -1108,9 +1108,9 @@ void QgsGeometryAnalyzer::createOffsetGeometry( QgsGeometry* geom, QgsGeometry*
|
|||||||
//geos 3.3 needed for line offsets
|
//geos 3.3 needed for line offsets
|
||||||
#if defined(GEOS_VERSION_MAJOR) && defined(GEOS_VERSION_MINOR) && \
|
#if defined(GEOS_VERSION_MAJOR) && defined(GEOS_VERSION_MINOR) && \
|
||||||
((GEOS_VERSION_MAJOR>3) || ((GEOS_VERSION_MAJOR==3) && (GEOS_VERSION_MINOR>=3)))
|
((GEOS_VERSION_MAJOR>3) || ((GEOS_VERSION_MAJOR==3) && (GEOS_VERSION_MINOR>=3)))
|
||||||
outputGeomList.push_back( GEOSOffsetCurve(( *inputGeomIt )->asGeos(), offset, 8 /*quadSegments*/, 0 /*joinStyle*/, 5.0 /*mitreLimit*/ ) );
|
outputGeomList.push_back( GEOSOffsetCurve(( *inputGeomIt )->asGeos(), -offset, 8 /*quadSegments*/, 0 /*joinStyle*/, 5.0 /*mitreLimit*/ ) );
|
||||||
#else
|
#else
|
||||||
outputGeomList.push_back( 0 );
|
outputGeomList.push_back( GEOSGeom_clone(( *inputGeomIt )->asGeos() ) );
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
else if ( geom->type() == QGis::Point )
|
else if ( geom->type() == QGis::Point )
|
||||||
|
@ -111,7 +111,7 @@ class ANALYSIS_EXPORT QgsGeometryAnalyzer
|
|||||||
@param unlocatedFeatureIds out: ids of event features where linear referencing was not successful
|
@param unlocatedFeatureIds out: ids of event features where linear referencing was not successful
|
||||||
@param locationField1 attribute index of location field in event layer
|
@param locationField1 attribute index of location field in event layer
|
||||||
@param locationField2 attribute index of location end field (or -1 for point layer)
|
@param locationField2 attribute index of location end field (or -1 for point layer)
|
||||||
@param offsetField attribute index for offset field
|
@param offsetField attribute index for offset field. Negative offset value = offset to left side, positive value = offset to right side
|
||||||
@param offsetScale factor to scale offset
|
@param offsetScale factor to scale offset
|
||||||
@param forceSingleGeometry force layer to single point/line type. Feature attributes are copied in case of multiple matches
|
@param forceSingleGeometry force layer to single point/line type. Feature attributes are copied in case of multiple matches
|
||||||
@param memoryProvider memory provider to write output to (can be 0 if output is written to a file)
|
@param memoryProvider memory provider to write output to (can be 0 if output is written to a file)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user