Skip to content
Permalink
Browse files
API Cleanups
git-svn-id: http://svn.osgeo.org/qgis/trunk@9446 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Oct 6, 2008
1 parent c0f9389 commit 8892abffb9069727ad9c2c2bb028ef157f826258
Showing with 32 additions and 3 deletions.
  1. +15 −1 python/core/qgsrasterlayer.sip
  2. +15 −0 python/core/qgsvectorlayer.sip
  3. +1 −1 src/app/qgsmapserverexport.cpp
  4. +1 −1 tools/mapserver_export/qgsmapserverexport.cpp
@@ -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.

@@ -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
@@ -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();
@@ -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

0 comments on commit 8892abf

Please sign in to comment.