This file contains 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
# Contributors: Alexander Jüstel, Arthur Endlein Correia, Florian Wellmann | |
# | |
# This script is part of GemGIS, saved here as a standalone version. | |
# | |
# GemGIS is a Python-based, open-source geographic information processing library. | |
# It is capable of preprocessing spatial data such as vector data (shape files, geojson files, geopackages), | |
# raster data, data obtained from WMS services or XML/KML files. | |
# | |
# Preprocessed data can be stored in a dedicated Data Class to be passed to the geomodeling package GemPy | |
# in order to accelerate to model building process. |
This file contains 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
import xmltodict | |
def parse_categorized_qml(qml_fname): | |
with open(qml_fname, "rb") as f: | |
qml = xmltodict.parse(f) | |
column = qml["qgis"]["renderer-v2"]["@attr"] | |
symbols = { | |
symbol["@name"]:{ | |
prop["@k"]:prop["@v"] for prop in symbol["layer"]["prop"] | |
} |
This file contains 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
# PyQt4 imports | |
from PyQt5 import QtGui, QtCore, QtWidgets, QtOpenGL | |
from PyQt5.QtOpenGL import QGLWidget | |
# PyOpenGL imports | |
import OpenGL.GL as gl | |
import OpenGL.arrays.vbo as glvbo | |
# Window creation function. | |
def create_window(window_class): | |
"""Create a Qt window in Python, or interactively in IPython with Qt GUI |
This file contains 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
CAMPO GEOFISICA 2 | |
2.0 | |
3 | |
40 | |
0 | |
0 | |
0.00 2.00 1.00 642.20 | |
0.00 2.00 2.00 785.20 | |
0.00 2.00 3.00 452.40 | |
0.00 2.00 4.00 301.60 |