@@ -172,10 +172,10 @@ class QgsVectorLayer : QgsMapLayer
172
172
QList<QgsFeature> selectedFeatures();
173
173
174
174
/** Return reference to identifiers of selected features */
175
- const QSet<qint64> &selectedFeaturesIds() const;
175
+ const QgsFeatureIds &selectedFeaturesIds() const;
176
176
177
177
/** Change selection to the new set of features */
178
- void setSelectedFeatures( const QSet<qint64> &ids );
178
+ void setSelectedFeatures( const QgsFeatureIds &ids );
179
179
180
180
/** Returns the bounding box of the selected features. If there is no selection, QgsRectangle(0,0,0,0) is returned */
181
181
QgsRectangle boundingBoxOfSelected();
@@ -317,7 +317,7 @@ class QgsVectorLayer : QgsMapLayer
317
317
318
318
/**Gets the feature at the given feature id. Considers the changed, added, deleted and permanent features
319
319
@return true in case of success*/
320
- bool featureAtId( qint64 featureId, QgsFeature &f, bool fetchGeometries = true, bool fetchAttributes = true );
320
+ bool featureAtId( QgsFeatureId featureId, QgsFeature &f, bool fetchGeometries = true, bool fetchAttributes = true );
321
321
322
322
/** Adds a feature
323
323
@param f feature to add
@@ -337,17 +337,17 @@ class QgsVectorLayer : QgsMapLayer
337
337
* in the given ring, item (first number is index 0), and feature
338
338
* Not meaningful for Point geometries
339
339
*/
340
- bool insertVertex( double x, double y, qint64 atFeatureId, int beforeVertex );
340
+ bool insertVertex( double x, double y, QgsFeatureId atFeatureId, int beforeVertex );
341
341
342
342
/** Moves the vertex at the given position number,
343
343
* ring and item (first number is index 0), and feature
344
344
* to the given coordinates
345
345
*/
346
- bool moveVertex( double x, double y, qint64 atFeatureId, int atVertex );
346
+ bool moveVertex( double x, double y, QgsFeatureId atFeatureId, int atVertex );
347
347
348
348
/** Deletes a vertex from a feature
349
349
*/
350
- bool deleteVertex( qint64 atFeatureId, int atVertex );
350
+ bool deleteVertex( QgsFeatureId atFeatureId, int atVertex );
351
351
352
352
/** Deletes the selected features
353
353
* @return true in case of success and false otherwise
@@ -381,7 +381,7 @@ class QgsVectorLayer : QgsMapLayer
381
381
@param dx translation of x-coordinate
382
382
@param dy translation of y-coordinate
383
383
@return 0 in case of success*/
384
- int translateFeature( qint64 featureId, double dx, double dy );
384
+ int translateFeature( QgsFeatureId featureId, double dx, double dy );
385
385
386
386
/**Splits features cut by the given line
387
387
* @param splitLine line that splits the layer features
@@ -498,10 +498,10 @@ class QgsVectorLayer : QgsMapLayer
498
498
499
499
/** change feature's geometry
500
500
@note added in version 1.2 */
501
- bool changeGeometry( qint64 fid, QgsGeometry* geom );
501
+ bool changeGeometry( QgsFeatureId fid, QgsGeometry* geom );
502
502
503
503
/** changed an attribute value (but does not commit it) */
504
- bool changeAttributeValue( qint64 fid, int field, QVariant value, bool emitSignal = true );
504
+ bool changeAttributeValue( QgsFeatureId fid, int field, QVariant value, bool emitSignal = true );
505
505
506
506
/** add an attribute field (but does not commit it)
507
507
returns true if the field was added
@@ -525,14 +525,22 @@ class QgsVectorLayer : QgsMapLayer
525
525
@note added in version 1.2*/
526
526
QString attributeDisplayName( int attributeIndex ) const;
527
527
528
+ const QMap< QString, QString >& attributeAliases() const;
529
+
530
+ const QSet<QString>& excludeAttributesWMS() const;
531
+ void setExcludeAttributesWMS( const QSet<QString>& att );
532
+
533
+ const QSet<QString>& excludeAttributesWFS() const;
534
+ void setExcludeAttributesWFS( const QSet<QString>& att );
535
+
528
536
/** delete an attribute field (but does not commit it) */
529
537
bool deleteAttribute( int attr );
530
538
531
539
/** Insert a copy of the given features into the layer (but does not commit it) */
532
540
bool addFeatures( QList<QgsFeature> features, bool makeSelected = true );
533
541
534
542
/** delete a feature from the layer (but does not commit it) */
535
- bool deleteFeature( qint64 fid );
543
+ bool deleteFeature( QgsFeatureId fid );
536
544
537
545
/**
538
546
Attempts to commit any changes to disk. Returns the result of the attempt.
@@ -640,7 +648,7 @@ class QgsVectorLayer : QgsMapLayer
640
648
/** Execute redo operation. To be called only from QgsVectorLayerUndoCommand.
641
649
* @note not available in python bindings
642
650
*/
643
- // redoEditCommand( QgsUndoCommand* cmd );
651
+ // void redoEditCommand( QgsUndoCommand* cmd );
644
652
645
653
/** Returns the index of a field name or -1 if the field does not exist
646
654
@note this method was added in version 1.4
@@ -685,10 +693,10 @@ class QgsVectorLayer : QgsMapLayer
685
693
686
694
public slots:
687
695
/** Select feature by its ID, optionally emit signal selectionChanged() */
688
- void select( qint64 featureId, bool emitSignal = true );
696
+ void select( QgsFeatureId featureId, bool emitSignal = true );
689
697
690
698
/** Deselect feature by its ID, optionally emit signal selectionChanged() */
691
- void deselect( qint64 featureId, bool emitSignal = true );
699
+ void deselect( QgsFeatureId featureId, bool emitSignal = true );
692
700
693
701
/** Clear selection */
694
702
void removeSelection( bool emitSignal = true );
@@ -718,8 +726,8 @@ class QgsVectorLayer : QgsMapLayer
718
726
void editingStopped();
719
727
void attributeAdded( int idx );
720
728
void attributeDeleted( int idx );
721
- void featureAdded( qint64 fid ); // added in 1.7
722
- void featureDeleted( qint64 fid );
729
+ void featureAdded( QgsFeatureId fid ); // added in 1.7
730
+ void featureDeleted( QgsFeatureId fid );
723
731
void layerDeleted();
724
732
725
733
void attributeValueChanged( QgsFeatureId fid, int idx, const QVariant & );
0 commit comments