Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
API Cleanups
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9446 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Oct 6, 2008
1 parent 7ea0af5 commit 8e087f5
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 3 deletions.
16 changes: 15 additions & 1 deletion python/core/qgsrasterlayer.sip
Expand Up @@ -502,7 +502,21 @@ public slots:
*/
/* virtual */ bool readXml( QDomNode & layer_node );


/** Read the symbology for the current layer from the Dom node supplied.
* @param QDomNode node that will contain the symbology definition for this layer.
* @param errorMessage reference to string that will be updated with any error messages
* @return true in case of success.
*/
bool readSymbology(const QDomNode& node, QString& errorMessage);

/** Write the symbology for the layer into the docment provided.
* @param QDomNode the node that will have the style element added to it.
* @param QDomDocument the document that will have the QDomNode added.
* @param errorMessage reference to string that will be updated with any error messages
* @return true in case of success.
*/
bool writeSymbology(QDomNode&, QDomDocument& doc, QString& errorMessage) const;


/** write vector layer specific state to project file Dom node.

Expand Down
15 changes: 15 additions & 0 deletions python/core/qgsvectorlayer.sip
Expand Up @@ -114,6 +114,21 @@ public:
virtual bool writeXml( QDomNode & layer_node, QDomDocument & doc );


/** Read the symbology for the current layer from the Dom node supplied.
* @param QDomNode node that will contain the symbology definition for this layer.
* @param errorMessage reference to string that will be updated with any error messages
* @return true in case of success.
*/
bool readSymbology(const QDomNode& node, QString& errorMessage);

/** Write the symbology for the layer into the docment provided.
* @param QDomNode the node that will have the style element added to it.
* @param QDomDocument the document that will have the QDomNode added.
* @param errorMessage reference to string that will be updated with any error messages
* @return true in case of success.
*/
bool writeSymbology(QDomNode&, QDomDocument& doc, QString& errorMessage) const;

/**
* Number of features in the layer. This is necessary if features are
* added/deleted or the layer has been subsetted. If the data provider
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmapserverexport.cpp
Expand Up @@ -192,7 +192,7 @@ void QgsMapserverExport::writeMapFile()
{
bool isPolygon = false;
bool isLine = false;
QgsMapLayer *lyr = map->getZpos( i );
QgsMapLayer *lyr = map->layer( i );
QgsDebugMsg( "Mapsrver Export Processing Layer" );
mapFile << "LAYER" << std::endl;
QString name = lyr->name().lower();
Expand Down
2 changes: 1 addition & 1 deletion tools/mapserver_export/qgsmapserverexport.cpp
Expand Up @@ -322,7 +322,7 @@ void QgsMapserverExport::writeMapFile()
{
bool isPolygon = false;
bool isLine = false;
QgsMapLayer *lyr = map->getZpos(i);
QgsMapLayer *lyr = map->layer(i);
#ifdef QGISDEBUG
std::cout << "Mapsrver Export Processing Layer" << std::endl;
#endif
Expand Down

0 comments on commit 8e087f5

Please sign in to comment.