Skip to content

Instantly share code, notes, and snippets.

@g-sherman
g-sherman / gist:2763ba7f337106a9375d95c92432333d
Created February 19, 2018 19:51
OS X Compile error / master 7701ea6
[ 57%] Building CXX object src/providers/grass/7/CMakeFiles/qgisgrass7.dir/__/qgsgrassoptions.cpp.o
In file included from /Users/gsherman/development/QGIS_3_new/src/providers/grass/qgsgrassoptions.cpp:22:
In file included from /Users/gsherman/development/QGIS_3_new/src/providers/grass/qgsgrassoptions.h:21:
In file included from /Users/gsherman/development/QGIS_3_new/src/gui/qgsoptionsdialogbase.h:21:
In file included from /Users/gsherman/development/QGIS_3_new/src/core/qgssettings.h:21:
In file included from /usr/local/opt/qt5/lib/QtCore.framework/Headers/QMetaEnum:1:
/usr/local/opt/qt5/lib/QtCore.framework/Headers/qmetaobject.h:231:9: error: static_assert failed "QMetaEnum::fromType
only works with enums declared as Q_ENUM or Q_FLAG"
Q_STATIC_ASSERT_X(QtPrivate::IsQEnumHelper<T>::Value,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ophir:Downloads gsherman$ ogrinfo 36_oost.gml
Had to open data source read-only.
INFO: Open of `36_oost.gml'
using driver `GML' successful.
1: Gebouw (Polygon)
2: IsoHoogte (Line String)
3: RegistratiefGebied (Polygon)
4: Wegdeel
5: Terrein (Polygon)
6: Waterdeel (Polygon)
@g-sherman
g-sherman / gist:1792737
Created February 10, 2012 20:47
QGIS Initial Commit
ophir:Quantum-GIS gsherman$ git co -b Commit1 40ef8c3ee6cab71708f830b24ab6decf7540aac0
Checking out files: 100% (5147/5147), done.
Switched to a new branch 'Commit1'
ophir:Quantum-GIS gsherman$ ls
CMakeCache.txt INSTALL README build2 qgis.pro
CMakeFiles Makefile build doxygen.conf src
ophir:Quantum-GIS gsherman$ ls src
Makefile moc_qgsmapcanvas.cpp qgsdbsourceselect.h qgsnewconnection.h
QgisAppBase.cpp qgisapp.cpp qgsdbsourceselectbase.ui qgsnewconnectionbase.ui
QgisAppBase.h qgisapp.h qgsdbsourceselectbase.ui.h qgsrasterlayer.cpp
@g-sherman
g-sherman / gps.diff
Created February 1, 2012 22:29
Fix for const correctness in QgsGPSConnection
diff --git a/python/core/qgsgpsconnectionregistry.sip b/python/core/qgsgpsconnectionregistry.sip
index c135bef..55c78f5 100644
--- a/python/core/qgsgpsconnectionregistry.sip
+++ b/python/core/qgsgpsconnectionregistry.sip
@@ -13,7 +13,7 @@ public:
/**Unregisters connection. The registry does no longer own the connection*/
void unregisterConnection(QgsGPSConnection* c);
- QList<const QgsGPSConnection*> connectionList() const;
+ QList<QgsGPSConnection*> connectionList() const;
@g-sherman
g-sherman / gist:974776
Created May 16, 2011 16:28
QGIS application settings
Application Settings:
--------------------------
Debug: /home/gsherman/development/Quantum-GIS/src/app/qgisapp.cpp: 573: (QgisApp) Application state:
Prefix :
Plugin Path :
Package Data Path :
Active Theme Name :
Active Theme Path : :/images/themes//
Default Theme Path : :/images/themes/default/
@g-sherman
g-sherman / gist:797640
Created January 26, 2011 22:32
diff in planet.css
qgis:/home/web/qgis-django/qgis/static/style# diff planet.css /home/gsherman/planet.css
6a7,18
> html {
> background: #2a5075;
> }
>
> body {
> background: #f9f9f9;
> margin: 10px;
> border: 2px solid #fff;
@g-sherman
g-sherman / pyqgis.py
Created December 23, 2010 06:56 — forked from NathanW2/pyqgis.py
import qgis.core
import qgis.gui
def TestWrite(iface):
can = iface.mapCanvas()
layer = can.currentLayer()
geom = layer.selectedFeatures()[1].geometry()
return geom.length()