Advertisement
xunilk

QgsRasterLayer Class (PyQGIS)

Aug 4th, 2014
645
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.93 KB | None | 0 0
  1. Python 2.7.4 (default, Apr 6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)] on zeito
  2. ## Type help(iface) for more info and list of methods.
  3. help(QgsRasterLayer)
  4. Help on class QgsRasterLayer in module qgis.core:
  5.  
  6. class QgsRasterLayer(QgsMapLayer)
  7. | QgsRasterLayer()
  8. | QgsRasterLayer(QString, QString baseName=QString.null, bool loadDefaultStyleFlag=True)
  9. | QgsRasterLayer(QString, QString, QString, bool loadDefaultStyleFlag=True)
  10. |
  11. | Method resolution order:
  12. | QgsRasterLayer
  13. | QgsMapLayer
  14. | PyQt4.QtCore.QObject
  15. | sip.wrapper
  16. | sip.simplewrapper
  17. | __builtin__.object
  18. |
  19. | Methods defined here:
  20. |
  21. | appendError(...)
  22. |
  23. | bandCount(...)
  24. | QgsRasterLayer.bandCount() -> int
  25. |
  26. | bandName(...)
  27. | QgsRasterLayer.bandName(int) -> QString
  28. |
  29. | brightnessFilter(...)
  30. | QgsRasterLayer.brightnessFilter() -> QgsBrightnessContrastFilter
  31. |
  32. | childEvent(...)
  33. |
  34. | connectNotify(...)
  35. |
  36. | constDataProvider(...)
  37. | QgsRasterLayer.constDataProvider() -> QgsRasterDataProvider
  38. |
  39. | customEvent(...)
  40. |
  41. | dataChanged = <unbound signal dataChanged>
  42. | dataProvider(...)
  43. | QgsRasterLayer.dataProvider() -> QgsRasterDataProvider
  44. |
  45. | disconnectNotify(...)
  46. |
  47. | draw(...)
  48. | QgsRasterLayer.draw(QgsRenderContext) -> bool
  49. | QgsRasterLayer.draw(QPainter, QgsRasterViewPort, QgsMapToPixel theQgsMapToPixel=None)
  50. |
  51. | height(...)
  52. | QgsRasterLayer.height() -> int
  53. |
  54. | hueSaturationFilter(...)
  55. | QgsRasterLayer.hueSaturationFilter() -> QgsHueSaturationFilter
  56. |
  57. | isValidRasterFileName(...)
  58. | QgsRasterLayer.isValidRasterFileName(QString, QString) -> bool
  59. | QgsRasterLayer.isValidRasterFileName(QString) -> bool
  60. |
  61. | lastError(...)
  62. | QgsRasterLayer.lastError() -> QString
  63. |
  64. | lastErrorTitle(...)
  65. | QgsRasterLayer.lastErrorTitle() -> QString
  66. |
  67. | lastModified(...)
  68. | QgsRasterLayer.lastModified(QString) -> QDateTime
  69. |
  70. | legendSymbologyItems(...)
  71. | QgsRasterLayer.legendSymbologyItems() -> list-of-tuple-of-QString-QColor
  72. |
  73. | metadata(...)
  74. | QgsRasterLayer.metadata() -> QString
  75. |
  76. | onProgress(...)
  77. | QgsRasterLayer.onProgress(int, float, QString)
  78. |
  79. | paletteAsPixmap(...)
  80. | QgsRasterLayer.paletteAsPixmap(int theBandNumber=1) -> QPixmap
  81. |
  82. | pipe(...)
  83. | QgsRasterLayer.pipe() -> QgsRasterPipe
  84. |
  85. | previewAsPixmap(...)
  86. | QgsRasterLayer.previewAsPixmap(QSize, QColor bgColor=QColor(255,255,255)) -> QPixmap
  87. |
  88. | progressUpdate = <unbound signal progressUpdate>
  89. | providerType(...)
  90. | QgsRasterLayer.providerType() -> QString
  91. |
  92. | rasterType(...)
  93. | QgsRasterLayer.rasterType() -> QgsRasterLayer.LayerType
  94. |
  95. | rasterUnitsPerPixelX(...)
  96. | QgsRasterLayer.rasterUnitsPerPixelX() -> float
  97. |
  98. | rasterUnitsPerPixelY(...)
  99. | QgsRasterLayer.rasterUnitsPerPixelY() -> float
  100. |
  101. | readCustomProperties(...)
  102. |
  103. | readSymbology(...)
  104. | QgsRasterLayer.readSymbology(QDomNode, QString) -> bool
  105. |
  106. | readXml(...)
  107. | QgsRasterLayer.readXml(QDomNode) -> bool
  108. |
  109. | receivers(...)
  110. |
  111. | reload(...)
  112. | QgsRasterLayer.reload()
  113. |
  114. | renderer(...)
  115. | QgsRasterLayer.renderer() -> QgsRasterRenderer
  116. |
  117. | rendererChanged = <unbound signal rendererChanged>
  118. | resampleFilter(...)
  119. | QgsRasterLayer.resampleFilter() -> QgsRasterResampleFilter
  120. |
  121. | sender(...)
  122. |
  123. | setContrastEnhancement(...)
  124. | QgsRasterLayer.setContrastEnhancement(QgsContrastEnhancement.ContrastEnhancementAlgorithm, QgsRaster.ContrastEnhancementLimits theLimits=QgsRaster.ContrastEnhancementMinMax, QgsRectangle theExtent=QgsRectangle(), int theSampleSize=QgsRasterLayer.SAMPLE_SIZE, bool theGenerateLookupTableFlag=True)
  125. |
  126. | setDataProvider(...)
  127. | QgsRasterLayer.setDataProvider(QString)
  128. |
  129. | setDefaultContrastEnhancement(...)
  130. | QgsRasterLayer.setDefaultContrastEnhancement()
  131. |
  132. | setDrawingStyle(...)
  133. | QgsRasterLayer.setDrawingStyle(QString)
  134. |
  135. | setError(...)
  136. |
  137. | setExtent(...)
  138. |
  139. | setLayerOrder(...)
  140. | QgsRasterLayer.setLayerOrder(QStringList)
  141. |
  142. | setRenderer(...)
  143. | QgsRasterLayer.setRenderer(QgsRasterRenderer)
  144. |
  145. | setSubLayerVisibility(...)
  146. | QgsRasterLayer.setSubLayerVisibility(QString, bool)
  147. |
  148. | setValid(...)
  149. |
  150. | showProgress(...)
  151. | QgsRasterLayer.showProgress(int)
  152. |
  153. | showStatusMessage(...)
  154. | QgsRasterLayer.showStatusMessage(QString)
  155. |
  156. | subLayers(...)
  157. | QgsRasterLayer.subLayers() -> QStringList
  158. |
  159. | timerEvent(...)
  160. |
  161. | timestamp(...)
  162. | QgsRasterLayer.timestamp() -> QDateTime
  163. |
  164. | triggerRepaint(...)
  165. | QgsRasterLayer.triggerRepaint()
  166. |
  167. | updateProgress(...)
  168. | QgsRasterLayer.updateProgress(int, int)
  169. |
  170. | width(...)
  171. | QgsRasterLayer.width() -> int
  172. |
  173. | writeCustomProperties(...)
  174. |
  175. | writeSymbology(...)
  176. | QgsRasterLayer.writeSymbology(QDomNode, QDomDocument, QString) -> bool
  177. |
  178. | writeXml(...)
  179. | QgsRasterLayer.writeXml(QDomNode, QDomDocument) -> bool
  180. |
  181. | ----------------------------------------------------------------------
  182. | Data descriptors defined here:
  183. |
  184. | CUMULATIVE_CUT_LOWER
  185. |
  186. | CUMULATIVE_CUT_UPPER
  187. |
  188. | SAMPLE_SIZE
  189. |
  190. | ----------------------------------------------------------------------
  191. | Data and other attributes defined here:
  192. |
  193. | ColorLayer = 3
  194. |
  195. | ColorRampShader = 3
  196. |
  197. | ColorShadingAlgorithm = <class 'qgis.core.ColorShadingAlgorithm'>
  198. |
  199. |
  200. | FreakOutShader = 2
  201. |
  202. | GrayOrUndefined = 0
  203. |
  204. | LayerType = <class 'qgis.core.LayerType'>
  205. |
  206. |
  207. | Multiband = 2
  208. |
  209. | Palette = 1
  210. |
  211. | PseudoColorShader = 1
  212. |
  213. | UndefinedShader = 0
  214. |
  215. | UserDefinedShader = 4
  216. |
  217. | ----------------------------------------------------------------------
  218. | Methods inherited from QgsMapLayer:
  219. |
  220. | abstract(...)
  221. | QgsMapLayer.abstract() -> QString
  222. |
  223. | attribution(...)
  224. | QgsMapLayer.attribution() -> QString
  225. |
  226. | attributionUrl(...)
  227. | QgsMapLayer.attributionUrl() -> QString
  228. |
  229. | blendMode(...)
  230. | QgsMapLayer.blendMode() -> QPainter.CompositionMode
  231. |
  232. | blendModeChanged = <unbound signal blendModeChanged>
  233. | cacheImage(...)
  234. | QgsMapLayer.cacheImage() -> QImage
  235. |
  236. | capitaliseLayerName(...)
  237. | QgsMapLayer.capitaliseLayerName(QString) -> QString
  238. |
  239. | clearCacheImage(...)
  240. | QgsMapLayer.clearCacheImage()
  241. |
  242. | crs(...)
  243. | QgsMapLayer.crs() -> QgsCoordinateReferenceSystem
  244. |
  245. | customProperty(...)
  246. | QgsMapLayer.customProperty(QString, QVariant defaultValue=QVariant()) -> QVariant
  247. |
  248. | dataUrl(...)
  249. | QgsMapLayer.dataUrl() -> QString
  250. |
  251. | dataUrlFormat(...)
  252. | QgsMapLayer.dataUrlFormat() -> QString
  253. |
  254. | drawLabels(...)
  255. | QgsMapLayer.drawLabels(QgsRenderContext)
  256. |
  257. | drawingProgress = <unbound signal drawingProgress>
  258. | error(...)
  259. | QgsMapLayer.error() -> QgsError
  260. |
  261. | exportNamedStyle(...)
  262. | QgsMapLayer.exportNamedStyle(QDomDocument, QString)
  263. |
  264. | exportSldStyle(...)
  265. | QgsMapLayer.exportSldStyle(QDomDocument, QString)
  266. |
  267. | extent(...)
  268. | QgsMapLayer.extent() -> QgsRectangle
  269. |
  270. | hasScaleBasedVisibility(...)
  271. | QgsMapLayer.hasScaleBasedVisibility() -> bool
  272. |
  273. | id(...)
  274. | QgsMapLayer.id() -> QString
  275. |
  276. | invalidTransformInput(...)
  277. | QgsMapLayer.invalidTransformInput()
  278. |
  279. | isEditable(...)
  280. | QgsMapLayer.isEditable() -> bool
  281. |
  282. | isValid(...)
  283. | QgsMapLayer.isValid() -> bool
  284. |
  285. | keywordList(...)
  286. | QgsMapLayer.keywordList() -> QString
  287. |
  288. | layerCrsChanged = <unbound signal layerCrsChanged>
  289. | layerNameChanged = <unbound signal layerNameChanged>
  290. | loadDefaultStyle(...)
  291. | QgsMapLayer.loadDefaultStyle() -> (QString, bool)
  292. |
  293. | loadNamedStyle(...)
  294. | QgsMapLayer.loadNamedStyle(QString) -> (QString, bool)
  295. |
  296. | loadNamedStyleFromDb(...)
  297. | QgsMapLayer.loadNamedStyleFromDb(QString, QString) -> (bool, QString)
  298. |
  299. | loadSldStyle(...)
  300. | QgsMapLayer.loadSldStyle(QString) -> (QString, bool)
  301. |
  302. | maximumScale(...)
  303. | QgsMapLayer.maximumScale() -> float
  304. |
  305. | metadataUrl(...)
  306. | QgsMapLayer.metadataUrl() -> QString
  307. |
  308. | metadataUrlFormat(...)
  309. | QgsMapLayer.metadataUrlFormat() -> QString
  310. |
  311. | metadataUrlType(...)
  312. | QgsMapLayer.metadataUrlType() -> QString
  313. |
  314. | minimumScale(...)
  315. | QgsMapLayer.minimumScale() -> float
  316. |
  317. | name(...)
  318. | QgsMapLayer.name() -> QString
  319. |
  320. | onCacheImageDelete(...)
  321. | QgsMapLayer.onCacheImageDelete()
  322. |
  323. | originalName(...)
  324. | QgsMapLayer.originalName() -> QString
  325. |
  326. | publicSource(...)
  327. | QgsMapLayer.publicSource() -> QString
  328. |
  329. | readLayerXML(...)
  330. | QgsMapLayer.readLayerXML(QDomElement) -> bool
  331. |
  332. | readSld(...)
  333. | QgsMapLayer.readSld(QDomNode, QString) -> bool
  334. |
  335. | recalculateExtents = <unbound signal recalculateExtents>
  336. | removeCustomProperty(...)
  337. | QgsMapLayer.removeCustomProperty(QString)
  338. |
  339. | repaintRequested = <unbound signal repaintRequested>
  340. | saveDefaultStyle(...)
  341. | QgsMapLayer.saveDefaultStyle() -> (QString, bool)
  342. |
  343. | saveNamedStyle(...)
  344. | QgsMapLayer.saveNamedStyle(QString) -> (QString, bool)
  345. |
  346. | saveSldStyle(...)
  347. | QgsMapLayer.saveSldStyle(QString) -> (QString, bool)
  348. |
  349. | screenUpdateRequested = <unbound signal screenUpdateRequested>
  350. | setAbstract(...)
  351. | QgsMapLayer.setAbstract(QString)
  352. |
  353. | setAttribution(...)
  354. | QgsMapLayer.setAttribution(QString)
  355. |
  356. | setAttributionUrl(...)
  357. | QgsMapLayer.setAttributionUrl(QString)
  358. |
  359. | setBlendMode(...)
  360. | QgsMapLayer.setBlendMode(QPainter.CompositionMode)
  361. |
  362. | setCacheImage(...)
  363. | QgsMapLayer.setCacheImage(QImage)
  364. |
  365. | setCrs(...)
  366. | QgsMapLayer.setCrs(QgsCoordinateReferenceSystem, bool emitSignal=True)
  367. |
  368. | setCustomProperty(...)
  369. | QgsMapLayer.setCustomProperty(QString, QVariant)
  370. |
  371. | setDataUrl(...)
  372. | QgsMapLayer.setDataUrl(QString)
  373. |
  374. | setDataUrlFormat(...)
  375. | QgsMapLayer.setDataUrlFormat(QString)
  376. |
  377. | setKeywordList(...)
  378. | QgsMapLayer.setKeywordList(QString)
  379. |
  380. | setLayerName(...)
  381. | QgsMapLayer.setLayerName(QString)
  382. |
  383. | setMaximumScale(...)
  384. | QgsMapLayer.setMaximumScale(float)
  385. |
  386. | setMetadataUrl(...)
  387. | QgsMapLayer.setMetadataUrl(QString)
  388. |
  389. | setMetadataUrlFormat(...)
  390. | QgsMapLayer.setMetadataUrlFormat(QString)
  391. |
  392. | setMetadataUrlType(...)
  393. | QgsMapLayer.setMetadataUrlType(QString)
  394. |
  395. | setMinimumScale(...)
  396. | QgsMapLayer.setMinimumScale(float)
  397. |
  398. | setTitle(...)
  399. | QgsMapLayer.setTitle(QString)
  400. |
  401. | source(...)
  402. | QgsMapLayer.source() -> QString
  403. |
  404. | statusChanged = <unbound signal statusChanged>
  405. | styleURI(...)
  406. | QgsMapLayer.styleURI() -> QString
  407. |
  408. | title(...)
  409. | QgsMapLayer.title() -> QString
  410. |
  411. | toggleScaleBasedVisibility(...)
  412. | QgsMapLayer.toggleScaleBasedVisibility(bool)
  413. |
  414. | type(...)
  415. | QgsMapLayer.type() -> QgsMapLayer.LayerType
  416. |
  417. | undoStack(...)
  418. | QgsMapLayer.undoStack() -> QUndoStack
  419. |
  420. | writeLayerXML(...)
  421. | QgsMapLayer.writeLayerXML(QDomElement, QDomDocument) -> bool
  422. |
  423. | ----------------------------------------------------------------------
  424. | Data and other attributes inherited from QgsMapLayer:
  425. |
  426. | PluginLayer = 2
  427. |
  428. | RasterLayer = 1
  429. |
  430. | VectorLayer = 0
  431. |
  432. | ----------------------------------------------------------------------
  433. | Methods inherited from PyQt4.QtCore.QObject:
  434. |
  435. | __getattr__(...)
  436. | QObject.__getattr__(str) -> object
  437. |
  438. | blockSignals(...)
  439. | QObject.blockSignals(bool) -> bool
  440. |
  441. | children(...)
  442. | QObject.children() -> list-of-QObject
  443. |
  444. | connect(...)
  445. | QObject.connect(QObject, SIGNAL(), QObject, SLOT(), Qt.ConnectionType=Qt.AutoConnection) -> bool
  446. | QObject.connect(QObject, SIGNAL(), callable, Qt.ConnectionType=Qt.AutoConnection) -> bool
  447. | QObject.connect(QObject, SIGNAL(), SLOT(), Qt.ConnectionType=Qt.AutoConnection) -> bool
  448. |
  449. | deleteLater(...)
  450. | QObject.deleteLater()
  451. |
  452. | destroyed = <unbound signal destroyed>
  453. | disconnect(...)
  454. | QObject.disconnect(QObject, SIGNAL(), QObject, SLOT()) -> bool
  455. | QObject.disconnect(QObject, SIGNAL(), callable) -> bool
  456. |
  457. | dumpObjectInfo(...)
  458. | QObject.dumpObjectInfo()
  459. |
  460. | dumpObjectTree(...)
  461. | QObject.dumpObjectTree()
  462. |
  463. | dynamicPropertyNames(...)
  464. | QObject.dynamicPropertyNames() -> list-of-QByteArray
  465. |
  466. | emit(...)
  467. | QObject.emit(SIGNAL(), ...)
  468. |
  469. | event(...)
  470. | QObject.event(QEvent) -> bool
  471. |
  472. | eventFilter(...)
  473. | QObject.eventFilter(QObject, QEvent) -> bool
  474. |
  475. | findChild(...)
  476. | QObject.findChild(type, QString name=QString()) -> QObject
  477. |
  478. | findChildren(...)
  479. | QObject.findChildren(type, QString name=QString()) -> list-of-QObject
  480. | QObject.findChildren(type, QRegExp) -> list-of-QObject
  481. |
  482. | inherits(...)
  483. | QObject.inherits(str) -> bool
  484. |
  485. | installEventFilter(...)
  486. | QObject.installEventFilter(QObject)
  487. |
  488. | isWidgetType(...)
  489. | QObject.isWidgetType() -> bool
  490. |
  491. | killTimer(...)
  492. | QObject.killTimer(int)
  493. |
  494. | metaObject(...)
  495. | QObject.metaObject() -> QMetaObject
  496. |
  497. | moveToThread(...)
  498. | QObject.moveToThread(QThread)
  499. |
  500. | objectName(...)
  501. | QObject.objectName() -> QString
  502. |
  503. | parent(...)
  504. | QObject.parent() -> QObject
  505. |
  506. | property(...)
  507. | QObject.property(str) -> QVariant
  508. |
  509. | pyqtConfigure(...)
  510. | QObject.pyqtConfigure(...)
  511. |
  512. | Each keyword argument is either the name of a Qt property or a Qt signal.
  513. | For properties the property is set to the given value which should be of an
  514. | appropriate type.
  515. | For signals the signal is connected to the given value which should be a
  516. | callable.
  517. |
  518. | removeEventFilter(...)
  519. | QObject.removeEventFilter(QObject)
  520. |
  521. | setObjectName(...)
  522. | QObject.setObjectName(QString)
  523. |
  524. | setParent(...)
  525. | QObject.setParent(QObject)
  526. |
  527. | setProperty(...)
  528. | QObject.setProperty(str, QVariant) -> bool
  529. |
  530. | signalsBlocked(...)
  531. | QObject.signalsBlocked() -> bool
  532. |
  533. | startTimer(...)
  534. | QObject.startTimer(int) -> int
  535. |
  536. | thread(...)
  537. | QObject.thread() -> QThread
  538. |
  539. | tr(...)
  540. | QObject.tr(str, str disambiguation=None, int n=-1) -> QString
  541. |
  542. | trUtf8(...)
  543. | QObject.trUtf8(str, str disambiguation=None, int n=-1) -> QString
  544. |
  545. | ----------------------------------------------------------------------
  546. | Data descriptors inherited from PyQt4.QtCore.QObject:
  547. |
  548. | __weakref__
  549. | list of weak references to the object (if defined)
  550. |
  551. | staticMetaObject
  552. |
  553. | ----------------------------------------------------------------------
  554. | Methods inherited from sip.simplewrapper:
  555. |
  556. | __init__(...)
  557. | x.__init__(...) initializes x; see help(type(x)) for signature
  558. |
  559. | ----------------------------------------------------------------------
  560. | Data descriptors inherited from sip.simplewrapper:
  561. |
  562. | __dict__
  563. |
  564. | ----------------------------------------------------------------------
  565. | Data and other attributes inherited from sip.simplewrapper:
  566. |
  567. | __new__ = <built-in method __new__ of sip.wrappertype object>
  568. | T.__new__(S, ...) -> a new object with type S, a subtype of T
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement