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
#!/usr/bin/python | |
# coding=utf-8 | |
import sqlite3 | |
import re | |
import sys | |
from os import path, rename, walk, mkdir | |
import shutil | |
PAGE_QUERY = ''' | |
select |
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
wms_url = 'http://maps.rosreestr.ru/arcgis/services/Cadastre/CadastreWMS/MapServer/WMSServer?format=image/png&layers=1&styles=&crs=EPSG:3857' | |
layer = QgsRasterLayer('url=%s' % wms_url, 'Test WMS', 'wms') | |
if not layer.isValid(): | |
QgsMessageLog.logMessage('ops', level=QgsMessageLog.CRITICAL) | |
else: | |
QgsMapLayerRegistry.instance().addMapLayer(layer) |
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 gc | |
import numpy as np | |
import numpy.ma as ma | |
from osgeo import gdal | |
from osgeo.gdalconst import * | |
import time | |
import rasterio | |
f = "2014.05.09.tif" |
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
/*global console, OpenLayers*/ | |
define([ | |
"dojo/_base/declare", | |
"webmap/tool/Base", | |
"dojo/_base/lang", | |
"dojo/_base/array", | |
"dojo/Deferred", | |
"dojo/promise/all", | |
"dojo/json", | |
"dojo/request/xhr", |
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
define([ | |
"dojo/_base/declare", | |
"dojo/_base/array", | |
"dojo/dom-class", | |
"dojo/on", | |
"dojox/image/Lightbox", | |
"put-selector/put", | |
"ngw/route", | |
"ngw-feature-layer/DisplayWidget", | |
// css |
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
define([ | |
"dojo/_base/declare", | |
"dojo/_base/array", | |
"dojo/dom-class", | |
"dojo/on", | |
"dojox/image/Lightbox", | |
"put-selector/put", | |
"ngw/route", | |
"ngw-feature-layer/DisplayWidget", | |
// css |
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
layers = [zapros, zapros2]; | |
var i; | |
i=2; | |
var n=0; | |
var all_datas = []; | |
var all_bh = []; | |
var all_data_sources = []; | |
var keys =[]; | |
for (n=0; n<i; n++) { |
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
# coding=utf-8 | |
import types | |
from sqlalchemy import event, ForeignKey | |
from sqlalchemy.ext.declarative import declared_attr | |
from sqlalchemy.orm import relationship | |
from nextgisweb import db | |
from nextgisweb.models import declarative_base | |
from nextgisweb.resource import Resource | |
from nextgisweb_compulink.compulink_admin.model import PROJECT_STATUSES, PROJECT_STATUS_PROJECT, Region, \ |
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
# coding=utf-8 | |
import types | |
from sqlalchemy import event, ForeignKey | |
from sqlalchemy.ext.declarative import declared_attr | |
from sqlalchemy.orm import relationship | |
from nextgisweb import db | |
from nextgisweb.models import declarative_base | |
from nextgisweb.resource import Resource | |
from nextgisweb_compulink.compulink_admin.model import PROJECT_STATUSES, PROJECT_STATUS_PROJECT, Region, \ |
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
###### Widget Code | |
<div id="treeCoverGainMapId" style="height: 400px; width: 100%"> | |
<a target="_blank" href="https://bit.ly/2g3UnjN"> | |
<div class="gfw-link leaflet-control"></div> | |
</a> | |
<div class="leaflet-bar chk-panel leaflet-bottom leaflet-left "> | |
<label class="chk-label leaflet-control "><input type="checkbox" id="chkShowLoss">Показать потери</label> | |
</div> | |
</div> | |
OlderNewer