| Changed | New | Old |
|---|---|---|
| N | earthquake/earthquake_building | earthquake/earthquake_building |
| N | earthquake/itb_earthquake_fatality_model | earthquake/itb_earthquake_fatality_model |
| N | earthquake/pager_earthquake_fatality_model | earthquake/pager_earthquake_fatality_model |
| N | generic/classified_raster_population | generic/classified_raster_population |
| N | generic/classified_polygon_population | generic/classified_polygon_population |
| N | generic/continuous_hazard_population | generic/continuous_hazard_population |
| N | generic/classified_polygon_building | generic/classified_polygon_building |
| N | generic/classified_raster_building | generic/classified_raster_building |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Native Windows: | |
| lassort -i c:\Users\inasafe\Desktop\tandale1_densified_point_cloud.las -rescale 0.01 0.01 0.01 -olaz | |
| lasground -i c:\Users\inasafe\Desktop\tandale1_densified_point_cloud_1.laz -city -ultra_fine -odix _g -olaz | |
| # DTM | |
| las2dem -i c:\Users\inasafe\Desktop\tandale1_densified_point_cloud_1_g.laz -keep_class 2 -thin_with_grid 0.125 -extra_pass -step 0.5 -ocut 2 -odix _dtm -obil | |
| # DSM | |
| las2dem -i c:\Users\inasafe\Desktop\tandale1_densified_point_cloud_1_g.laz -thin_with_grid 0.125 -extra_pass -step 0.5 -ocut 2 -odix _dsm -obil |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| timlinux@kartoza4:/home/realtime/inasafe-django/deployment> make staging-run | |
| ------------------------------------------------------------------ | |
| Building in staging mode | |
| ------------------------------------------------------------------ | |
| db uses an image, skipping | |
| smtp uses an image, skipping | |
| devdb uses an image, skipping | |
| Building devuwsgi... | |
| Step 0 : FROM kartoza/django-base |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from PyQt4.QtGui import QDockWidget | |
| app = iface.mainWindow() | |
| dock = app.findChild(QDockWidget, 'DockBase') | |
| dock.get_function_id() | |
| 'VolcanoPolygonPopulationFunction' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # coding=utf-8 | |
| # A simple demonstration of to generate a PDF using a QGIS project | |
| # and a QGIS layout template. | |
| # | |
| # This code is public domain, use if for any purpose you see fit. | |
| # Tim Sutton 2015 | |
| import sys | |
| from qgis.core import ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo python setup.py build_ext --include-dirs=/usr/include/ | |
| cd /tmp/pip_build_root/pyspatialite/ | |
| sudo python setup.py build_ext --include-dirs=/usr/include/ | |
| sudo pip install --no-download pyspatialite --include-dirs=/usr/include |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gFunctionHelpTexts.insert( "if", QCoreApplication::translate( "function_help", "<h3>if() function</h3>\n" | |
| "Returns the second argument if expression is true otherwise the third argument.\n" | |
| "<br>\n" | |
| "This function takes three arguments.\n" | |
| "<h4>Syntax</h4>\n" | |
| "<code>if(expression, result_if_true, result_if_false)</code><br>\n" | |
| "\n" | |
| "<h4>Arguments</h4>\n" | |
| "<code>expression</code> - any valid expression or value, regardless of type.\n" | |
| "<code>result_if_true</code> - any valid expression or value, regardless of type.\n" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 15∶24 | |
| timlinux Hi all | |
| gioman joined | |
| pcav joined | |
| yjacolin joined | |
| alexbruy joined | |
| 15∶50 | |
| timlinux he everyone | |
| hi | |
| we will wait 10 more minutes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from encodings.utf_8 import encode | |
| __author__ = 'timlinux' | |
| import unittest | |
| from safe.messaging.item.text import PlainText | |
| class TestText(unittest.TestCase): | |
| def test_plain_text(self): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from PyQt4.QtGui import QProgressBar | |
| from PyQt4.QtCore import Qt | |
| l = iface.activeLayer() | |
| w = l.width() | |
| h = l.height() | |
| p = l.dataProvider() | |
| # layers are base 1 for block reader | |
| b = p.block(1, p.extent(), w, h) | |
| f = file('/tmp/test.xyz', 'w') | |
| f.write('Longitude,Latitude,VI') |