Skip to content

Commit

Permalink
sip sync
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Feb 14, 2016
1 parent 67d8935 commit a90be95
Show file tree
Hide file tree
Showing 419 changed files with 5,797 additions and 4,219 deletions.
2 changes: 1 addition & 1 deletion doc/news.t2t
Expand Up @@ -64,7 +64,7 @@ This is a minor release increment with the following new features:
- Tweaks to label properties dialog.
- Support for non-latin scripts for curved labels.
- "Follow point" alignment for multiline labels.
- Support overriden layer styles also in the composer legend.
- Support overridden layer styles also in the composer legend.
- Add scalebar sizing mode to fit a desired scalebar width.
- Plugins can now create their own entries in the browser.
- More uniform and predictable names for processing outputs.
Expand Down
2 changes: 1 addition & 1 deletion python/analysis/interpolation/NormVecDecorator.sip
Expand Up @@ -30,7 +30,7 @@ class NormVecDecorator : TriDecorator
bool getTriangle( double x, double y, Point3D* p1 /Out/, Vector3D* v1 /Out/, Point3D* p2 /Out/, Vector3D* v2 /Out/, Point3D* p3 /Out/, Vector3D* v3 /Out/ );
/** This function behaves similar to the one above. Additionally, the numbers of the points are returned (ptn1, ptn2, ptn3) as well as the pointStates of the triangle points (state1, state2, state3)
* @note not available in Python bindings
*/
*/
//bool getTriangle( double x, double y, Point3D* p1 /Out/, int* ptn1 /Out/, Vector3D* v1 /Out/, pointState* state1 /Out/, Point3D* p2 /Out/, int* ptn2 /Out/, Vector3D* v2 /Out/, pointState* state2 /Out/, Point3D* p3 /Out/, int* ptn3 /Out/, Vector3D* v3 /Out/, pointState* state3 /Out/);
/** Returns the state of the point with the number 'pointno'*/
pointState getState( int pointno ) const;
Expand Down
115 changes: 58 additions & 57 deletions python/analysis/vector/qgsgeometryanalyzer.sip
Expand Up @@ -11,93 +11,94 @@ class QgsGeometryAnalyzer
public:

/** Simplify vector layer using (a modified) Douglas-Peucker algorithm
and write it to a new shape file
@param layer input vector layer
@param shapefileName path to the output shp
@param tolerance (level of simplification)
@param onlySelectedFeatures if true, only selected features are considered, else all the features
@param p progress dialog (or 0 if no progress dialog is to be shown)
*/
* and write it to a new shape file
* @param layer input vector layer
* @param shapefileName path to the output shp
* @param tolerance (level of simplification)
* @param onlySelectedFeatures if true, only selected features are considered, else all the features
* @param p progress dialog (or 0 if no progress dialog is to be shown)
*/
bool simplify( QgsVectorLayer* layer, const QString& shapefileName, double tolerance,
bool onlySelectedFeatures = false, QProgressDialog* p = 0 );

/** Calculate the true centroids, or 'center of mass' for a vector layer and
write it to a new shape file
@param layer input vector layer
@param shapefileName path to the output shp
@param onlySelectedFeatures if true, only selected features are considered, else all the features
@param p progress dialog (or 0 if no progress dialog is to be shown)
*/
* write it to a new shape file
* @param layer input vector layer
* @param shapefileName path to the output shp
* @param onlySelectedFeatures if true, only selected features are considered, else all the features
* @param p progress dialog (or 0 if no progress dialog is to be shown)
*/
bool centroids( QgsVectorLayer* layer, const QString& shapefileName,
bool onlySelectedFeatures = false, QProgressDialog* p = 0 );

/** Create a polygon based on the extent of all (selected) features and write it to a new shape file
@param layer input vector layer
@param shapefileName path to the output shp
@param onlySelectedFeatures if true, only selected features are considered, else all the features
@param p progress dialog (or 0 if no progress dialog is to be shown)
*/
* @param layer input vector layer
* @param shapefileName path to the output shp
* @param onlySelectedFeatures if true, only selected features are considered, else all the features
* @param p progress dialog (or 0 if no progress dialog is to be shown)
*/
bool extent( QgsVectorLayer* layer, const QString& shapefileName, bool onlySelectedFeatures = false, QProgressDialog* p = 0 );

/** Create buffers for a vector layer and write it to a new shape file
@param layer input vector layer
@param shapefileName path to the output shp
@param bufferDistance distance for buffering (if no buffer field is specified)
@param onlySelectedFeatures if true, only selected features are considered, else all the features
@param dissolve if true, merge all the buffers to a big multipolygon
@param bufferDistanceField index of the attribute field that contains the buffer distance (or -1 if all features have the same buffer distance)
@param p progress dialog (or 0 if no progress dialog is to be shown)
*/
* @param layer input vector layer
* @param shapefileName path to the output shp
* @param bufferDistance distance for buffering (if no buffer field is specified)
* @param onlySelectedFeatures if true, only selected features are considered, else all the features
* @param dissolve if true, merge all the buffers to a big multipolygon
* @param bufferDistanceField index of the attribute field that contains the buffer distance (or -1 if all features have the same buffer distance)
* @param p progress dialog (or 0 if no progress dialog is to be shown)
*/
bool buffer( QgsVectorLayer* layer, const QString& shapefileName, double bufferDistance,
bool onlySelectedFeatures = false, bool dissolve = false, int bufferDistanceField = -1, QProgressDialog* p = 0 );

/** Create convex hull(s) of a vector layer and write it to a new shape file
@param layer input vector layer
@param shapefileName path to the output shp
@param onlySelectedFeatures if true, only selected features are considered, else all the features
@param uniqueIdField index of the attribute field that contains the unique convex hull id (or -1 if
all features have the same buffer distance)
@param p progress dialog (or 0 if no progress dialog is to be shown)
*/
* @param layer input vector layer
* @param shapefileName path to the output shp
* @param onlySelectedFeatures if true, only selected features are considered, else all the features
* @param uniqueIdField index of the attribute field that contains the unique convex hull id (or -1 if
* all features have the same buffer distance)
* @param p progress dialog (or 0 if no progress dialog is to be shown)
*/
bool convexHull( QgsVectorLayer* layer, const QString& shapefileName, bool onlySelectedFeatures = false,
int uniqueIdField = -1, QProgressDialog* p = 0 );

/** Dissolve a vector layer and write it to a new shape file
@param layer input vector layer
@param shapefileName path to the output shp
@param onlySelectedFeatures if true, only selected features are considered, else all the features
@param uniqueIdField index of the attribute field that contains the unique id to dissolve on (or -1 if
all features should be dissolved together)
@param p progress dialog (or 0 if no progress dialog is to be shown)
*/
* @param layer input vector layer
* @param shapefileName path to the output shp
* @param onlySelectedFeatures if true, only selected features are considered, else all the features
* @param uniqueIdField index of the attribute field that contains the unique id to dissolve on (or -1 if
* all features should be dissolved together)
* @param p progress dialog (or 0 if no progress dialog is to be shown)
*/
bool dissolve( QgsVectorLayer* layer, const QString& shapefileName, bool onlySelectedFeatures = false,
int uniqueIdField = -1, QProgressDialog* p = 0 );

/** 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 eventLayer layer with features and location field
@param lineField join index in line layer
@param eventField join index in event layer
@param outputLayer name of output file (can be empty if a memory layer is used)
@param outputFormat name of output format (can be empty if a memory provider is used to store the results)
@param unlocatedFeatureIds out: ids of event features where linear referencing was not successful
@param locationField1 attribute index of location field in event 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 p progress dialog or 0 if no progress dialog should be shown
*/
* 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 eventLayer layer with features and location field
* @param lineField join index in line layer
* @param eventField join index in event layer
* @param outputLayer name of output file (can be empty if a memory layer is used)
* @param outputFormat name of output format (can be empty if a memory provider is used to store the results)
* @param unlocatedFeatureIds out: ids of event features where linear referencing was not successful
* @param locationField1 attribute index of location field in event 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 p progress dialog or 0 if no progress dialog should be shown
*/
bool eventLayer( QgsVectorLayer* lineLayer, QgsVectorLayer* eventLayer, int lineField, int eventField, QSet<qint64> &unlocatedFeatureIds /Out/, const QString& outputLayer,
const QString& outputFormat, int locationField1, int locationField2 = -1, int offsetField = -1, double offsetScale = 1.0,
bool forceSingleGeometry = false, QgsVectorDataProvider* memoryProvider = 0, QProgressDialog* p = 0 );

/** Returns linear reference geometry as a multiline (or 0 if no match). Currently, the z-coordinates are considered to be the measures (no support for m-values in QGIS)*/
QgsGeometry* locateBetweenMeasures( double fromMeasure, double toMeasure, const QgsGeometry* lineGeom );
/** Returns linear reference geometry. Unlike the PostGIS function, this method always returns multipoint or 0 if no match (not geometry collection).
Currently, the z-coordinates are considered to be the measures (no support for m-values in QGIS)*/
* Currently, the z-coordinates are considered to be the measures (no support for m-values in QGIS)
*/
QgsGeometry* locateAlongMeasure( double measure, const QgsGeometry* lineGeom );

};

0 comments on commit a90be95

Please sign in to comment.