forked from Geolicious/geotweet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgeotweet_exec.py
49 lines (46 loc) · 1.62 KB
/
geotweet_exec.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# -*- coding: utf-8 -*-
"""
/***************************************************************************
geotweeter 3
A QGIS plugin
Twitter collector for qgis
-------------------
begin : 2015-05-12
copyright : (C) 2015 by Riccardo Klinger
email : riccardo.klinger@geolicious.com
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 3 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
"""
from PyQt4.QtCore import QFileInfo
import osgeo.ogr, osgeo.osr #we will need some packages
from osgeo import ogr
from osgeo import gdal
import processing
import shutil
from qgis.core import *
import qgis.utils
import os #for file writing/folder actions
import shutil #for reverse removing directories
import urllib # to get files from the web
from urlparse import parse_qs
import time
import tempfile
import re
import fileinput
import webbrowser #to open the made map directly in your browser
import sys #to use another print command without annoying newline characters
from xml.etree import ElementTree as et
import zipfile
def geotweet_exec():
canvas = qgis.utils.iface.mapCanvas()
allLayers = canvas.layers()
for i in allLayers:
#first for vector files:
print i.name()