Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
LAYER | |
CLASSITEM "Status" | |
CONNECTION "mappa_di_base.shp" | |
CONNECTIONTYPE OGR | |
FILTER ('[Status]' eq '3' OR '[Status]' eq '2' OR '[Status]' eq '1') | |
LABELITEM "ID" | |
METADATA | |
"coordsys_name" "Popular Visualisation CRS / Mercator (deprecated)" | |
END # METADATA | |
NAME "geo_32633" |
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 logging, importio, threading, json | |
# We define a latch class as python doesn't have a counting latch built in | |
class _Latch(object): | |
def __init__(self, count=1): | |
self.count = count | |
self.lock = threading.Condition() | |
def countDown(self): | |
with self.lock: |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
<OGRVRTDataSource> | |
<OGRVRTLayer name="civici"> | |
<SrcDataSource>wfs:http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Numeri_Civici_2012.map</SrcDataSource> | |
<SrcLayer>IN.NUMERICIVICI.2012</SrcLayer> | |
<SrcRegion clip="true">POLYGON((44.82960736463044071 7.5892761493695664,44.83504584054348641 7.58974498350000104,44.8351396073695696 7.58674444506521795,44.82951359780435752 7.5866506782391312,44.82960736463044071 7.5892761493695664))</SrcRegion> | |
</OGRVRTLayer> | |
</OGRVRTDataSource> |
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
{ "type": "FeatureCollection", | |
"features": [{ "geometry": {"type": "Point", "coordinates": [1696718.0, 4789302.0] }, | |
"properties": {"id":"24", | |
"prov":"SI", | |
"comune":"Monteroni d'arbia", | |
"indirizzo":"Strada Monteroni, Vescovado, 3003/A", | |
"macrotipologia":"Società e aziende", | |
"tipologia":"Aziende in gestione", |
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
#Geocoding con le API di MapQuest Nominatim a partire da GDrive | |
Per fare il Geocoding con le **API** di **[MapQuest Nominatim](http://developer.mapquest.com/web/products/open/nominatim)** a partire da un foglio elettronico GDrive, basta applicare la funzione [ImportXML](https://support.google.com/docs/answer/3093342?hl=it) di GDrive alle celle che contengono i toponimi che vogliamo trasformare in una coppia di coordinate. | |
Se ad esempio ho il mio toponimo nella cella A2, la formula da applicare sarà: | |
=JOIN(",", ImportXML(CONCATENATE("http://open.mapquestapi.com/nominatim/v1/search?format=xml&q=",A2), "//searchresults/place[1]/@lat | //searchresults/place[1]/@lon")) | |
Il tutto in azione [qui](https://docs.google.com/spreadsheets/d/1s8dTaPSUCORUsXsylcu4PsesTJ9ddG-_fXlNHkEPEGs/edit?usp=sharing). | |