mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
[processing] Add test suite
This commit is contained in:
parent
042a3db787
commit
ff04fd3b52
@ -60,7 +60,7 @@ class ProcessingLog:
|
||||
# It seems that this fails sometimes depending on the msg
|
||||
# added. To avoid it stopping the normal functioning of the
|
||||
# algorithm, we catch all errors, assuming that is better
|
||||
# to miss some log info that breaking the algorithm.
|
||||
# to miss some log info than breaking the algorithm.
|
||||
if msgtype == ProcessingLog.LOG_ALGORITHM:
|
||||
line = msgtype + '|' + datetime.datetime.now().strftime(
|
||||
ProcessingLog.DATE_FORMAT) + '|' \
|
||||
|
203
python/plugins/processing/tests/AlgorithmsTest.py
Normal file
203
python/plugins/processing/tests/AlgorithmsTest.py
Normal file
@ -0,0 +1,203 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
test_algorithms.py
|
||||
---------------------
|
||||
Date : January 2016
|
||||
Copyright : (C) 2016 by Matthias Kuhn
|
||||
Email : matthias@opengis.ch
|
||||
***************************************************************************
|
||||
* *
|
||||
* 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 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
__author__ = 'Matthias Kuhn'
|
||||
__date__ = 'January 2016'
|
||||
__copyright__ = '(C) 2016, Matthias Kuhn'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
__revision__ = ':%H$'
|
||||
|
||||
import qgis
|
||||
import os
|
||||
import shutil
|
||||
import yaml
|
||||
import nose2
|
||||
import gdal
|
||||
import hashlib
|
||||
import tempfile
|
||||
|
||||
from osgeo.gdalconst import GA_ReadOnly
|
||||
|
||||
import processing
|
||||
|
||||
from processing.gui import AlgorithmExecutor
|
||||
|
||||
from qgis.core import (
|
||||
QgsVectorLayer,
|
||||
QgsRasterLayer,
|
||||
QgsMapLayerRegistry
|
||||
)
|
||||
|
||||
from qgis.testing import (
|
||||
start_app,
|
||||
unittest
|
||||
)
|
||||
|
||||
from utilities import (
|
||||
unitTestDataPath
|
||||
)
|
||||
|
||||
|
||||
def processingTestDataPath():
|
||||
return os.path.join(os.path.dirname(__file__), 'testdata')
|
||||
|
||||
|
||||
class TestAlgorithms(unittest.TestCase):
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
start_app()
|
||||
from processing.core.Processing import Processing
|
||||
Processing.initialize()
|
||||
cls.cleanup_paths = []
|
||||
|
||||
@classmethod
|
||||
def tearDownClass(cls):
|
||||
for path in cls.cleanup_paths:
|
||||
shutil.rmtree(path)
|
||||
|
||||
def test_algorithms(self):
|
||||
"""
|
||||
This is the main test function. All others will be executed based on the definitions in testdata/algorithm_tests.yaml
|
||||
"""
|
||||
with open(os.path.join(processingTestDataPath(), 'algorithm_tests.yaml'), 'r') as stream:
|
||||
algorithm_tests = yaml.load(stream)
|
||||
|
||||
for algtest in algorithm_tests['tests']:
|
||||
yield self.check_algorithm, algtest['name'], algtest
|
||||
|
||||
def check_algorithm(self, name, defs):
|
||||
"""
|
||||
Will run an algorithm definition and check if it generates the expected result
|
||||
:param name: The identifier name used in the test output heading
|
||||
:param defs: A python dict containing a test algorithm definition
|
||||
"""
|
||||
params = self.load_params(defs['params'])
|
||||
|
||||
alg = processing.Processing.getAlgorithm(defs['algorithm']).getCopy()
|
||||
|
||||
if isinstance(params, list):
|
||||
for param in zip(alg.parameters, params):
|
||||
param[0].setValue(param[1])
|
||||
else:
|
||||
for k, p in params.iteritems():
|
||||
alg.setParameterValue(k, p)
|
||||
|
||||
for r, p in defs['results'].iteritems():
|
||||
alg.setOutputValue(r, self.load_result_param(p))
|
||||
|
||||
self.assertTrue(AlgorithmExecutor.runalg(alg))
|
||||
print(alg.getAsCommand())
|
||||
self.check_results(alg.getOutputValuesAsDictionary(), defs['results'])
|
||||
|
||||
def load_params(self, params):
|
||||
"""
|
||||
Loads an array of parameters
|
||||
"""
|
||||
if type(params) == list:
|
||||
return [self.load_param(p) for p in params]
|
||||
elif type(params) == dict:
|
||||
return {key: self.load_param(p) for key, p in params.iteritems()}
|
||||
else:
|
||||
return params
|
||||
|
||||
def load_param(self, param):
|
||||
"""
|
||||
Loads a parameter. If it's not a map, the parameter will be returned as-is. If it is a map, it will process the
|
||||
parameter based on its key `type` and return the appropriate parameter to pass to the algorithm.
|
||||
"""
|
||||
try:
|
||||
if param['type'] == 'vector' or param['type'] == 'raster':
|
||||
return self.load_layer(param)
|
||||
if param['type'] == 'multi':
|
||||
return [self.load_param(p) for p in param['params']]
|
||||
except TypeError:
|
||||
# No type specified, use whatever is there
|
||||
return param
|
||||
|
||||
raise KeyError("Unknown type '{}' specified for parameter '{}'".format(param['type'], param['name']))
|
||||
|
||||
def load_result_param(self, param):
|
||||
"""
|
||||
Lodas a result parameter. Creates a temporary destination where the result should go to and returns this location
|
||||
so it can be sent to the algorithm as parameter.
|
||||
"""
|
||||
if param['type'] == 'vector':
|
||||
outdir = tempfile.mkdtemp()
|
||||
self.cleanup_paths.append(outdir)
|
||||
basename = os.path.basename(param['name'])
|
||||
filepath = os.path.join(outdir, basename)
|
||||
return filepath
|
||||
|
||||
raise KeyError("Unknown type '{}' specified for parameter '{}'".format(param['type'], param['name']))
|
||||
|
||||
def load_layer(self, param):
|
||||
"""
|
||||
Loads a layer which was specified as parameter.
|
||||
"""
|
||||
prefix = processingTestDataPath()
|
||||
try:
|
||||
if param['location'] == 'qgs':
|
||||
prefix = unitTestDataPath()
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
filepath = os.path.join(prefix, param['name'])
|
||||
|
||||
if param['type'] == 'vector':
|
||||
lyr = QgsVectorLayer(filepath, param['name'], 'ogr')
|
||||
elif param['type'] == 'raster':
|
||||
lyr = QgsRasterLayer(filepath, param['name'], 'ogr')
|
||||
|
||||
self.assertTrue(lyr.isValid(), 'Could not load layer "{}"'.format(filepath))
|
||||
QgsMapLayerRegistry.instance().addMapLayer(lyr)
|
||||
return lyr
|
||||
|
||||
def check_results(self, results, expected):
|
||||
"""
|
||||
Checks if result produced by an algorithm matches with the expected specification.
|
||||
"""
|
||||
for id, expected_result in expected.iteritems():
|
||||
if 'vector' == expected_result['type']:
|
||||
expected_lyr = self.load_layer(expected_result)
|
||||
try:
|
||||
results[id]
|
||||
except KeyError as e:
|
||||
raise KeyError('Expected result {} does not exist in {}'.format(e.message, results.keys()))
|
||||
|
||||
result_lyr = QgsVectorLayer(results[id], id, 'ogr')
|
||||
|
||||
try:
|
||||
compare = expected_result['compare']
|
||||
except KeyError:
|
||||
compare = {}
|
||||
|
||||
self.assertLayersEqual(expected_lyr, result_lyr, compare=compare)
|
||||
|
||||
elif 'rasterhash' == expected_result['type']:
|
||||
dataset = gdal.Open(results[id], GA_ReadOnly)
|
||||
strhash = hashlib.sha224(dataset.ReadAsArray(0).data).hexdigest()
|
||||
|
||||
self.assertEqual(strhash, expected_result['hash'])
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
nose2.main()
|
@ -7,4 +7,5 @@ PLUGIN_INSTALL(processing tests/data ${TEST_DATA_FILES})
|
||||
IF(ENABLE_TESTS)
|
||||
INCLUDE(UsePythonTest)
|
||||
ADD_PYTHON_TEST(ProcessingParametersTest ParametersTest.py)
|
||||
ADD_PYTHON_TEST(ProcessingAlgorithmsTest AlgorithmsTest.py)
|
||||
ENDIF(ENABLE_TESTS)
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
ParametersTest.py
|
||||
ParametersTest
|
||||
---------------------
|
||||
Date : March 2013
|
||||
Copyright : (C) 2013 by Victor Olaya
|
||||
@ -25,9 +25,7 @@ __copyright__ = '(C) 2013, Victor Olaya'
|
||||
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
import unittest
|
||||
from utilities import getQgisTestApp, unittest
|
||||
QGISAPP, CANVAS, IFACE, PARENT = getQgisTestApp()
|
||||
from qgis.testing import start_app, unittest
|
||||
|
||||
from processing.core.parameters import (Parameter,
|
||||
ParameterBoolean,
|
||||
@ -42,6 +40,8 @@ from processing.core.parameters import (Parameter,
|
||||
from qgis.core import (QgsRasterLayer,
|
||||
QgsVectorLayer)
|
||||
|
||||
start_app()
|
||||
|
||||
|
||||
class ParameterTest(unittest.TestCase):
|
||||
|
||||
|
118
python/plugins/processing/tests/README.md
Normal file
118
python/plugins/processing/tests/README.md
Normal file
@ -0,0 +1,118 @@
|
||||
Algorithm tests
|
||||
===============
|
||||
|
||||
To test algorithms you can add entries into `testdata/algorithm_tests.yaml`.
|
||||
|
||||
This file is structured with [yaml syntax](http://www.yaml.org/start.html).
|
||||
|
||||
A basic test appears under the toplevel key `tests` and looks like this:
|
||||
|
||||
- name: centroid
|
||||
algorithm: qgis:polygoncentroids
|
||||
params:
|
||||
- type: vector
|
||||
location: qgs
|
||||
name: polys.shp
|
||||
results:
|
||||
- id: OUTPUT_LAYER
|
||||
type: vector
|
||||
location: proc
|
||||
name: polys_centroid.geojson
|
||||
|
||||
How To
|
||||
------
|
||||
|
||||
To add a new test you can follow these steps:
|
||||
|
||||
Run the algorithm you want to test in QGIS from the processing toolbox. If the
|
||||
result is a vector layer prefer geojson as output for its support of mixed
|
||||
geometry types and good readability. Redirect output to
|
||||
`python/plugins/processing/tests/testdata/expected`
|
||||
|
||||
When you have run the algorithm, go to "Processing" > "History" and find the
|
||||
algorithm which you have just run. This looks like
|
||||
|
||||
processing.runalg("qgis:densifygeometries","/home/mku/dev/cpp/qgis/QGIS/tests/testdata/polys.shp",2,"/home/mku/dev/cpp/qgis/QGIS/python/plugins/processing/tests/testdata/polys_densify.geojson")
|
||||
|
||||
Open the file `python/plugins/processing/tests/testdata/algorithm_tests.yaml`,
|
||||
copy an existing test block and adjust it to your needs based on the
|
||||
information found in the history.
|
||||
|
||||
The first string from the command goes to the key `algorithm`, the subsequent
|
||||
ones to params and the last one(s) to results.
|
||||
|
||||
The above translates to
|
||||
|
||||
- name: densify
|
||||
algorithm: qgis:densifygeometriesgivenaninterval
|
||||
params:
|
||||
- type: vector
|
||||
location: qgs
|
||||
name: polys.shp
|
||||
- 2 # Interval
|
||||
results:
|
||||
- id: OUTPUT
|
||||
type: vector
|
||||
location: proc
|
||||
name: expected/polys_densify.geojson
|
||||
|
||||
Params and results
|
||||
------------------
|
||||
|
||||
Trivial type parameters
|
||||
.......................
|
||||
|
||||
Params and results are specified as lists:
|
||||
|
||||
params:
|
||||
- 2
|
||||
- string
|
||||
- another param
|
||||
|
||||
As in the example above they can be plain variables.
|
||||
|
||||
Layer type parameters
|
||||
.....................
|
||||
|
||||
To specify layers you will have to specify
|
||||
|
||||
* the type
|
||||
* `vector` or `raster`
|
||||
* a location to allow using files from the shared qgis test data
|
||||
* `qgs` will look for the file in the src/tests/testdata
|
||||
* `proc` will look for the file in python/plugins/processing/tests/testdata
|
||||
you should use this location for expected data.
|
||||
* a name
|
||||
* relative path like `expected/polys_centroid.geojson`
|
||||
|
||||
params:
|
||||
- 2
|
||||
- string
|
||||
- type: vector
|
||||
location: qgs
|
||||
name: polys.shp
|
||||
- another param
|
||||
|
||||
Results
|
||||
.......
|
||||
|
||||
Results have a special key `id` which is required because an algorithm can
|
||||
produce multiple results. If you don't know the `id`, just start with `OUTPUT`
|
||||
and run the test. You will be told if it was wrong and about the possible
|
||||
values.
|
||||
|
||||
To deal with a certain tolerance for output values you can specify a
|
||||
`compare` property for an output.
|
||||
|
||||
For a vector layer this means
|
||||
|
||||
OUTPUT:
|
||||
type: vector
|
||||
name: expected/abcd.geojson
|
||||
compare:
|
||||
fields:
|
||||
__all__:
|
||||
precision: 5 # compare to a precision of .00001 on all fields
|
||||
A: skip # skip field A
|
||||
geometry:
|
||||
precision: 5 # compare coordinates with a precision of 5 digits
|
@ -5,8 +5,8 @@ tests:
|
||||
algorithm: qgis:polygoncentroids # Algorithm name
|
||||
params: # A list of parameters (only 1 here)
|
||||
- type: vector # Param is a vector layer
|
||||
location: proc # file is in the qgis tests/testdata directory
|
||||
name: polys.geojson # file name
|
||||
location: qgs # file is in the qgis tests/testdata directory
|
||||
name: polys.shp # file name
|
||||
results: # A map of results (only one here)
|
||||
OUTPUT_LAYER:
|
||||
type: vector # Expected result is a vector layer
|
||||
|
3
python/plugins/processing/tests/testdata/expected/frequency.csv
vendored
Normal file
3
python/plugins/processing/tests/testdata/expected/frequency.csv
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
Name,FREQ
|
||||
Lake,6
|
||||
Dam,4
|
|
13
python/plugins/processing/tests/testdata/expected/lines_reverse.geojson
vendored
Normal file
13
python/plugins/processing/tests/testdata/expected/lines_reverse.geojson
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"type": "FeatureCollection",
|
||||
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
|
||||
|
||||
"features": [
|
||||
{ "type": "Feature", "properties": { "Name": "Highway", "Value": 1.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ -82.699971289118494, 37.630282783824796 ], [ -82.951519143402322, 37.546433499063525 ], [ -84.041559845298934, 37.043337790495862 ], [ -84.08348448767957, 36.959488505734583 ], [ -85.802394825285759, 36.875639220973305 ], [ -85.970093394808316, 36.875639220973305 ], [ -87.143983381466199, 37.043337790495862 ], [ -87.563229805272584, 37.169111717637776 ], [ -87.814777659556427, 37.252961002399054 ], [ -88.48557193764664, 37.504508856682889 ], [ -89.156366215736853, 37.672207426205439 ], [ -89.491763354781966, 37.839905995727996 ], [ -90.246406917633465, 37.923755280489274 ], [ -90.414105487156007, 37.881830638108639 ], [ -90.414105487156007, 37.881830638108639 ], [ -91.62992011619454, 37.504508856682889 ], [ -92.258789751904118, 37.169111717637776 ], [ -92.929584029994345, 36.833714578592662 ], [ -93.684227592845829, 36.288694227644363 ], [ -94.396946513316692, 35.911372446218614 ], [ -95.612761142355211, 35.534050664792865 ], [ -96.115856850922881, 35.534050664792865 ], [ -97.163972910438844, 35.617899949554143 ], [ -97.667068619006514, 35.743673876696064 ], [ -99.05058181756759, 36.079071015741171 ], [ -100.056773234702916, 36.037146373360528 ], [ -100.308321088986744, 35.869447803837978 ], [ -100.937190724696336, 35.659824591934779 ], [ -101.482211075644628, 35.450201380031586 ], [ -102.06915606897357, 35.450201380031586 ], [ -102.488402492779954, 35.450201380031586 ], [ -102.949573558966989, 35.408276737650951 ], [ -103.326895340392724, 35.408276737650951 ], [ -103.788066406579759, 35.492126022412229 ], [ -103.87191569134103, 35.492126022412229 ], [ -104.458860684669972, 35.492126022412229 ], [ -104.710408538953814, 35.534050664792865 ], [ -104.961956393237642, 35.575975307173508 ], [ -105.297353532282756, 35.575975307173508 ], [ -105.59082602894722, 35.575975307173508 ], [ -105.800449240850412, 35.617899949554143 ], [ -106.051997095134254, 35.701749234315422 ], [ -106.597017446082546, 35.869447803837978 ], [ -107.645133505598523, 35.911372446218614 ], [ -108.483626353211292, 36.162920300502449 ], [ -108.693249565114485, 36.246769585263721 ], [ -108.819023492256406, 36.288694227644363 ], [ -109.070571346540234, 36.414468154786277 ], [ -109.238269916062791, 36.498317439547556 ], [ -109.573667055107904, 36.666016009070113 ], [ -109.741365624630447, 36.749865293831391 ], [ -110.034838121294925, 36.833714578592662 ], [ -110.160612048436832, 36.917563863353948 ], [ -110.747557041765788, 37.12718707525714 ], [ -111.082954180810887, 37.12718707525714 ], [ -111.502200604617272, 37.252961002399054 ], [ -111.753748458901114, 37.294885644779697 ], [ -112.592241306513884, 37.378734929540968 ], [ -113.095337015081554, 37.378734929540968 ], [ -113.388809511746018, 37.378734929540968 ], [ -114.311151644120073, 37.169111717637776 ], [ -114.81424735268773, 37.043337790495862 ], [ -115.443116988397321, 36.749865293831391 ], [ -116.071986624106898, 36.372543512405642 ], [ -116.15583590886817, 36.288694227644363 ], [ -116.491233047913283, 35.953297088599257 ], [ -116.617006975055205, 35.869447803837978 ], [ -116.868554829339033, 35.534050664792865 ], [ -117.078178041242225, 35.324427452889672 ], [ -117.581273749809895, 35.198653525747758 ], [ -117.623198392190531, 35.198653525747758 ] ] } },
|
||||
{ "type": "Feature", "properties": { "Name": "Highway", "Value": 1.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ -94.64849436760052, 23.20820580488509 ], [ -95.319288645690747, 23.501678301549561 ], [ -95.570836499974575, 23.87900008297531 ], [ -95.738535069497132, 24.130547937259141 ], [ -95.864308996639039, 24.256321864401059 ], [ -96.115856850922881, 24.54979436106553 ], [ -96.157781493303517, 24.717492930588083 ], [ -96.283555420445424, 25.052890069633193 ], [ -96.325480062826074, 25.22058863915575 ], [ -96.325480062826074, 25.430211851058942 ], [ -96.283555420445424, 25.597910420581496 ], [ -96.115856850922881, 25.765608990104052 ], [ -95.864308996639039, 26.142930771529798 ], [ -95.696610427116497, 26.394478625813633 ], [ -95.654685784735847, 26.478327910574908 ], [ -95.654685784735847, 26.72987576485874 ], [ -95.654685784735847, 26.981423619142575 ], [ -95.780459711877768, 27.274896115807046 ], [ -95.948158281400325, 27.442594685329599 ], [ -96.409329347587345, 27.777991824374709 ], [ -96.702801844251823, 27.987615036277901 ], [ -97.080123625677572, 28.197238248181094 ], [ -97.373596122342036, 28.448786102464929 ], [ -97.583219334245229, 28.574560029606843 ], [ -97.876691830909706, 28.868032526271314 ], [ -98.128239685193535, 29.077655738174506 ], [ -98.505561466619284, 29.329203592458342 ], [ -98.715184678522476, 29.496902161980895 ], [ -99.008657175186954, 29.916148585787283 ], [ -99.134431102328861, 30.041922512929197 ], [ -99.427903598993339, 30.335395009593668 ], [ -99.469828241373975, 30.377319651974307 ], [ -99.88907466518036, 31.173887857206445 ], [ -100.140622519464188, 31.467360353870916 ], [ -100.308321088986744, 31.718908208154744 ], [ -100.476019658509301, 31.886606777677301 ], [ -100.559868943270573, 32.054305347199858 ], [ -100.601793585651222, 32.26392855910305 ], [ -100.727567512793129, 32.431627128625607 ], [ -100.727567512793129, 32.641250340528799 ], [ -100.727567512793129, 32.808948910051356 ], [ -100.727567512793129, 33.018572121954548 ], [ -100.727567512793129, 33.186270691477098 ], [ -100.517944300889937, 33.521667830522212 ], [ -100.39217037374803, 33.731291042425404 ], [ -100.014848592322281, 34.066688181470511 ], [ -100.014848592322281, 34.402085320515624 ], [ -99.721376095657803, 34.905181029083288 ], [ -99.553677526135246, 35.072879598605837 ], [ -99.344054314232054, 35.492126022412229 ], [ -99.763300738038453, 36.414468154786277 ], [ -99.763300738038453, 36.414468154786277 ], [ -99.847150022799724, 36.582166724308834 ], [ -99.972923949941645, 36.875639220973305 ], [ -99.972923949941645, 37.043337790495862 ], [ -99.930999307560995, 37.211036360018412 ], [ -99.88907466518036, 37.420659571921604 ], [ -99.847150022799724, 37.504508856682889 ], [ -99.721376095657803, 37.630282783824796 ], [ -99.595602168515882, 37.797981353347353 ], [ -99.469828241373975, 38.049529207631188 ], [ -99.385978956612689, 38.133378492392467 ], [ -99.218280387090147, 38.426850989056938 ], [ -99.218280387090147, 38.594549558579487 ], [ -99.260205029470782, 38.846097412863323 ], [ -99.553677526135246, 38.971871340005237 ], [ -99.847150022799724, 39.139569909527793 ], [ -100.140622519464188, 39.30726847905035 ], [ -100.476019658509301, 39.558816333334178 ], [ -100.559868943270573, 39.726514902856735 ], [ -100.643718228031858, 40.061912041901849 ], [ -100.643718228031858, 40.229610611424405 ], [ -100.643718228031858, 40.606932392850148 ], [ -100.685642870412494, 40.858480247133983 ], [ -100.727567512793129, 40.942329531895254 ], [ -101.021040009457607, 41.277726670940368 ], [ -101.146813936599528, 41.529274525224196 ], [ -101.272587863741435, 41.780822379508031 ], [ -101.356437148502721, 41.906596306649945 ], [ -101.398361790883357, 42.32584273045633 ], [ -101.440286433263992, 42.493541299978887 ], [ -101.566060360405913, 42.870863081404636 ], [ -101.607985002786549, 43.122410935688471 ], [ -101.69183428754782, 43.625506644256134 ], [ -101.733758929928456, 43.709355929017413 ], [ -102.153005353734841, 44.128602352823798 ], [ -102.404553208018683, 44.338225564726997 ], [ -103.284970698012103, 44.715547346152739 ], [ -104.123463545624872, 45.134793769959131 ], [ -104.416936042289336, 45.386341624242959 ], [ -104.500785327050622, 45.512115551384881 ], [ -104.584634611811893, 45.67981412090743 ], [ -104.75233318133445, 46.099060544713822 ] ] } },
|
||||
{ "type": "Feature", "properties": { "Name": "Arterial", "Value": 2.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ -98.379787539477363, 46.182909829475093 ], [ -98.547486108999919, 46.015211259952537 ], [ -98.589410751380569, 45.931361975191265 ], [ -98.799033963283762, 45.637889478526787 ], [ -99.008657175186954, 45.512115551384881 ], [ -99.218280387090147, 45.344416981862324 ], [ -99.260205029470782, 45.302492339481681 ], [ -99.679451453277167, 44.757471988533382 ], [ -99.763300738038453, 44.631698061391461 ], [ -100.35024573136738, 44.380150207107633 ], [ -100.434095016128666, 44.338225564726997 ], [ -100.643718228031858, 44.128602352823798 ], [ -100.853341439935051, 43.960903783301248 ], [ -100.937190724696336, 43.793205213778691 ], [ -101.021040009457607, 43.625506644256134 ], [ -101.146813936599528, 43.457808074733578 ], [ -101.566060360405913, 43.164335578069114 ] ] } },
|
||||
{ "type": "Feature", "properties": { "Name": "Arterial", "Value": 2.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ -115.065795206971572, 32.012380704819215 ], [ -115.065795206971572, 32.012380704819215 ], [ -115.149644491732843, 32.138154631961129 ], [ -115.275418418874764, 32.26392855910305 ], [ -115.568890915539228, 32.431627128625607 ], [ -115.568890915539228, 32.557401055767521 ], [ -115.568890915539228, 32.93472283719327 ], [ -115.568890915539228, 33.144346049096463 ], [ -115.485041630777957, 33.689366400044761 ], [ -115.359267703636036, 33.898989611947954 ], [ -115.107719849352208, 34.150537466231789 ], [ -114.940021279829651, 34.402085320515624 ], [ -114.688473425545823, 34.527859247657538 ], [ -113.430734154126654, 34.569783890038181 ], [ -112.801864518417077, 34.695557817180095 ], [ -112.424542736991327, 34.863256386702645 ], [ -111.921447028423671, 35.324427452889672 ], [ -111.879522386043021, 35.743673876696064 ], [ -111.669899174139829, 36.037146373360528 ], [ -111.418351319856001, 36.204844942883085 ], [ -111.250652750333444, 36.45639279716692 ], [ -111.124878823191523, 36.707940651450748 ], [ -110.999104896049616, 37.12718707525714 ] ] } },
|
||||
{ "type": "Feature", "properties": { "Name": "Arterial", "Value": 2.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ -82.322649507692745, 44.212451637585076 ], [ -82.322649507692745, 44.212451637585076 ], [ -83.622313421492549, 44.086677710443155 ], [ -84.418881626724684, 43.835129856159327 ], [ -84.502730911485969, 43.66743128663677 ], [ -84.754278765769783, 43.290109505211021 ], [ -85.550846971001931, 41.864671664269309 ], [ -85.550846971001931, 41.822747021888674 ], [ -85.718545540524474, 41.361575955701646 ], [ -85.802394825285759, 41.151952743798446 ], [ -86.053942679569587, 40.942329531895254 ], [ -86.179716606711509, 40.732706319992062 ], [ -86.682812315279165, 40.313459896185677 ], [ -87.018209454324278, 39.936138114759927 ], [ -87.227832666227471, 39.684590260476099 ], [ -87.311681950988742, 39.349193121430986 ], [ -87.311681950988742, 39.139569909527793 ], [ -87.437455878130663, 38.929946697624601 ], [ -87.60515444765322, 38.762248128102044 ], [ -87.898626944317698, 38.552624916198852 ], [ -88.234024083362812, 38.175303134773102 ], [ -88.401722652885354, 37.923755280489274 ], [ -88.48557193764664, 37.504508856682889 ] ] } },
|
||||
{ "type": "Feature", "properties": { "Name": "Arterial", "Value": 2.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ -83.2449916400668, 30.419244294354947 ], [ -83.2449916400668, 30.503093579116225 ], [ -83.286916282447436, 30.503093579116225 ], [ -83.496539494350628, 30.628867506258139 ], [ -83.622313421492549, 30.712716791019417 ], [ -83.748087348634471, 30.92234000292261 ], [ -83.915785918157013, 31.215812499587081 ], [ -84.041559845298934, 31.299661784348359 ], [ -84.08348448767957, 31.299661784348359 ], [ -84.418881626724684, 31.425435711490273 ], [ -84.670429481008512, 31.467360353870916 ], [ -85.173525189576182, 31.676983565774108 ], [ -85.299299116718089, 31.760832850535387 ], [ -85.592771613382567, 31.92853142005794 ], [ -85.676620898143852, 32.012380704819215 ], [ -85.802394825285759, 32.096229989580493 ], [ -86.137791964330859, 32.180079274341772 ], [ -86.473189103375972, 32.26392855910305 ], [ -86.682812315279165, 32.305853201483686 ], [ -86.724736957659815, 32.305853201483686 ], [ -87.018209454324278, 32.431627128625607 ], [ -87.143983381466199, 32.515476413386878 ], [ -87.185908023846835, 32.557401055767521 ], [ -87.60515444765322, 33.186270691477098 ], [ -87.898626944317698, 33.270119976238377 ], [ -88.066325513840241, 33.312044618619012 ], [ -88.737119791930468, 33.353969260999655 ], [ -88.94674300383366, 33.353969260999655 ], [ -89.198290858117502, 33.437818545760933 ], [ -89.324064785259409, 33.647441757664126 ], [ -89.491763354781966, 33.815140327186683 ], [ -89.617537281923887, 33.982838896709239 ], [ -89.743311209065794, 34.192462108612432 ], [ -89.869085136207715, 34.318236035754346 ], [ -89.952934420968987, 34.569783890038181 ], [ -90.078708348110908, 34.695557817180095 ], [ -90.162557632872179, 34.989030313844566 ], [ -90.204482275252815, 35.324427452889672 ], [ -90.204482275252815, 35.492126022412229 ], [ -90.2883315600141, 35.659824591934779 ], [ -90.330256202394736, 35.869447803837978 ], [ -90.497954771917293, 35.953297088599257 ], [ -90.66565334143985, 36.037146373360528 ], [ -91.042975122865599, 36.079071015741171 ], [ -91.420296904291348, 36.079071015741171 ], [ -91.755694043336462, 36.246769585263721 ], [ -91.881467970478369, 36.372543512405642 ], [ -92.091091182381561, 36.45639279716692 ], [ -92.216865109523482, 36.666016009070113 ], [ -92.258789751904118, 36.791789936212027 ], [ -92.300714394284753, 37.169111717637776 ] ] } }
|
||||
]
|
||||
}
|
17
python/plugins/processing/tests/testdata/expected/polys_centroid.geojson
vendored
Normal file
17
python/plugins/processing/tests/testdata/expected/polys_centroid.geojson
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
"type": "FeatureCollection",
|
||||
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
|
||||
|
||||
"features": [
|
||||
{ "type": "Feature", "properties": { "Name": "Lake", "Value": 10.000000 }, "geometry": { "type": "Point", "coordinates": [ -106.094580700419201, 44.685942900561074 ] } },
|
||||
{ "type": "Feature", "properties": { "Name": "Dam", "Value": 20.000000 }, "geometry": { "type": "Point", "coordinates": [ -103.653199878342306, 38.349643906274352 ] } },
|
||||
{ "type": "Feature", "properties": { "Name": "Lake", "Value": 11.000000 }, "geometry": { "type": "Point", "coordinates": [ -96.34517815752406, 39.124986363274637 ] } },
|
||||
{ "type": "Feature", "properties": { "Name": "Dam", "Value": 8.000000 }, "geometry": { "type": "Point", "coordinates": [ -105.451296424714954, 32.551432912590492 ] } },
|
||||
{ "type": "Feature", "properties": { "Name": "Dam", "Value": 7.000000 }, "geometry": { "type": "Point", "coordinates": [ -94.894024856130642, 31.572614178387987 ] } },
|
||||
{ "type": "Feature", "properties": { "Name": "Lake", "Value": 12.000000 }, "geometry": { "type": "Point", "coordinates": [ -90.619673239996786, 43.238130023878028 ] } },
|
||||
{ "type": "Feature", "properties": { "Name": "Lake", "Value": 8.000000 }, "geometry": { "type": "Point", "coordinates": [ -115.661487025731759, 40.315711973329016 ] } },
|
||||
{ "type": "Feature", "properties": { "Name": "Lake", "Value": 12.000000 }, "geometry": { "type": "Point", "coordinates": [ -87.699554898385514, 27.532978543036723 ] } },
|
||||
{ "type": "Feature", "properties": { "Name": "Dam", "Value": 13.000000 }, "geometry": { "type": "Point", "coordinates": [ -113.833518242459832, 28.7528527646054 ] } },
|
||||
{ "type": "Feature", "properties": { "Name": "Lake", "Value": 8.000000 }, "geometry": { "type": "Point", "coordinates": [ -101.100289079924366, 27.074241571062291 ] } }
|
||||
]
|
||||
}
|
17
python/plugins/processing/tests/testdata/expected/polys_deleteholes.geojson
vendored
Normal file
17
python/plugins/processing/tests/testdata/expected/polys_deleteholes.geojson
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
"type": "FeatureCollection",
|
||||
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
|
||||
|
||||
"features": [
|
||||
{ "type": "Feature", "properties": { "Name": "Lake", "Value": 10.000000 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -109.189702908343051, 45.453515598399903 ], [ -108.96786894267926, 45.730808055479656 ], [ -108.63511799418356, 46.008100512559395 ], [ -108.135991571440016, 46.229934478223193 ], [ -107.69232364011242, 46.28539296963914 ], [ -107.415031183032681, 46.340851461055095 ], [ -106.915904760289138, 46.340851461055095 ], [ -106.472236828961542, 46.340851461055095 ], [ -106.139485880465855, 46.174475986807238 ], [ -105.973110406218012, 46.063559003975342 ], [ -105.862193423386117, 45.897183529727499 ], [ -105.640359457722312, 45.730808055479656 ], [ -105.529442474890416, 45.342598615568008 ], [ -105.473983983474469, 45.28714012415206 ], [ -105.418525492058521, 45.009847667072314 ], [ -105.252150017810663, 44.788013701408516 ], [ -104.863940577899029, 44.510721244328778 ], [ -104.697565103651186, 44.399804261496875 ], [ -104.586648120819291, 44.233428787249025 ], [ -104.531189629403343, 43.956136330169286 ], [ -104.531189629403343, 43.678843873089534 ], [ -104.586648120819291, 43.346092924593847 ], [ -104.697565103651186, 43.179717450345997 ], [ -104.863940577899029, 42.957883484682199 ], [ -105.030316052146873, 42.791508010434356 ], [ -105.363067000642573, 42.569674044770558 ], [ -105.473983983474469, 42.514215553354603 ], [ -106.361319846129646, 42.292381587690812 ], [ -106.583153811793451, 42.403298570522708 ], [ -107.026821743121047, 42.736049519018408 ], [ -107.137738725952943, 42.846966501850304 ], [ -107.193197217368891, 43.068800467514095 ], [ -107.193197217368891, 43.235175941761945 ], [ -107.193197217368891, 43.457009907425743 ], [ -107.248655708784838, 43.845219347337384 ], [ -107.248655708784838, 43.845219347337384 ], [ -107.359572691616734, 43.900677838753339 ], [ -107.581406657280525, 43.900677838753339 ], [ -107.858699114360277, 43.900677838753339 ], [ -107.969616097192173, 43.900677838753339 ], [ -108.080533080024068, 43.789760855921436 ], [ -108.302367045687873, 43.789760855921436 ], [ -108.63511799418356, 43.900677838753339 ], [ -108.96786894267926, 44.233428787249025 ], [ -109.189702908343051, 44.34434577008092 ], [ -109.300619891174946, 44.510721244328778 ], [ -109.300619891174946, 44.788013701408516 ], [ -109.300619891174946, 45.065306158488262 ], [ -109.300619891174946, 45.176223141320165 ], [ -109.189702908343051, 45.453515598399903 ] ] ], [ [ [ -103.490036969546196, 45.962564740770731 ], [ -103.409657189546223, 46.203704080770635 ], [ -103.289087519546271, 46.444843420770553 ], [ -103.007758289546373, 46.565413090770505 ], [ -102.525479609546551, 46.726172650770444 ], [ -102.284340269546647, 46.685982760770457 ], [ -102.16377059954668, 46.565413090770505 ], [ -102.083390819546707, 46.444843420770553 ], [ -102.003011039546749, 46.324273750770594 ], [ -101.842251479546803, 46.163514190770655 ], [ -101.721681809546851, 46.042944520770696 ], [ -101.681491919546858, 45.922374850770744 ], [ -101.681491919546858, 45.761615290770806 ], [ -101.681491919546858, 45.641045620770846 ], [ -101.80206158954681, 45.480286060770908 ], [ -101.882441369546783, 45.359716390770956 ], [ -101.962821149546755, 45.319526500770962 ], [ -102.083390819546707, 45.158766940771024 ], [ -102.123580709546701, 45.118577050771037 ], [ -102.324530159546626, 45.118577050771037 ], [ -102.445099829546578, 45.118577050771037 ], [ -102.56566949954653, 45.118577050771037 ], [ -102.96756839954638, 45.19895683077101 ], [ -102.96756839954638, 45.239146720770997 ], [ -103.168517849546305, 45.399906280770935 ], [ -103.208707739546298, 45.480286060770908 ], [ -103.369467299546244, 45.560665840770881 ], [ -103.490036969546196, 45.962564740770731 ] ] ] ] } },
|
||||
{ "type": "Feature", "properties": { "Name": "Dam", "Value": 20.000000 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -106.135846379895526, 39.978062757140563 ], [ -106.09392173751489, 40.103836684282484 ], [ -106.09392173751489, 40.103836684282484 ], [ -106.09392173751489, 40.103836684282484 ], [ -105.758524598469776, 40.271535253805041 ], [ -105.632750671327855, 40.313459896185677 ], [ -105.506976744185948, 40.397309180946955 ], [ -105.423127459424663, 40.439233823327598 ], [ -105.339278174663391, 40.481158465708234 ], [ -105.129654962760199, 40.606932392850148 ], [ -104.878107108476371, 40.606932392850148 ], [ -104.542709969431257, 40.606932392850148 ], [ -104.291162115147415, 40.355384538566312 ], [ -103.955764976102316, 40.187685969043763 ], [ -103.075347486108896, 40.14576132666312 ], [ -102.865724274205704, 40.103836684282484 ], [ -102.614176419921876, 40.019987399521206 ], [ -102.278779280876762, 39.852288829998656 ], [ -101.985306784212298, 39.768439545237371 ], [ -101.733758929928456, 39.516891690953543 ], [ -101.440286433263992, 39.30726847905035 ], [ -101.062964651838243, 38.846097412863323 ], [ -100.937190724696336, 38.720323485721408 ], [ -100.895266082315686, 38.678398843340773 ], [ -100.727567512793129, 38.426850989056938 ], [ -100.727567512793129, 38.259152419534381 ], [ -100.769492155173765, 38.007604565250546 ], [ -100.937190724696336, 37.714132068586082 ], [ -101.021040009457607, 37.630282783824796 ], [ -101.146813936599528, 37.336810287160333 ], [ -101.146813936599528, 37.169111717637776 ], [ -101.188738578980164, 36.959488505734583 ], [ -101.314512506122071, 36.791789936212027 ], [ -101.356437148502721, 36.666016009070113 ], [ -101.482211075644628, 36.582166724308834 ], [ -101.607985002786549, 36.288694227644363 ], [ -101.775683572309106, 36.204844942883085 ], [ -102.111080711354219, 36.079071015741171 ], [ -102.404553208018683, 35.995221730979893 ], [ -102.57225177754124, 35.995221730979893 ], [ -102.823799631825068, 35.995221730979893 ], [ -102.991498201347625, 35.995221730979893 ], [ -103.243046055631453, 36.037146373360528 ], [ -103.326895340392724, 36.037146373360528 ], [ -103.578443194676566, 36.120995658121807 ], [ -103.662292479437838, 36.204844942883085 ], [ -103.997689618482951, 36.414468154786277 ], [ -104.249237472766779, 36.62409136668947 ], [ -104.500785327050622, 36.875639220973305 ], [ -104.500785327050622, 36.917563863353948 ], [ -104.710408538953814, 37.043337790495862 ], [ -105.003881035618278, 37.211036360018412 ], [ -105.297353532282756, 37.294885644779697 ], [ -105.381202817044027, 37.336810287160333 ], [ -105.632750671327855, 37.462584214302247 ], [ -105.926223167992333, 37.546433499063525 ], [ -106.135846379895526, 37.756056710966718 ], [ -106.303544949418082, 37.923755280489274 ], [ -106.429318876559989, 38.175303134773102 ], [ -106.513168161321275, 38.343001704295659 ], [ -106.638942088463182, 38.510700273818216 ], [ -106.638942088463182, 38.720323485721408 ], [ -106.638942088463182, 38.929946697624601 ], [ -106.597017446082546, 39.181494551908429 ], [ -106.303544949418082, 39.810364187618013 ], [ -106.135846379895526, 39.978062757140563 ] ] ] } },
|
||||
{ "type": "Feature", "properties": { "Name": "Lake", "Value": 11.000000 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -97.70899326138715, 38.720323485721408 ], [ -97.70899326138715, 38.762248128102044 ], [ -97.625143976625878, 39.097645267147158 ], [ -97.541294691864593, 39.30726847905035 ], [ -97.499370049483957, 39.558816333334178 ], [ -97.541294691864593, 39.726514902856735 ], [ -97.834767188529071, 39.936138114759927 ], [ -97.960541115670978, 40.061912041901849 ], [ -98.128239685193535, 40.271535253805041 ], [ -98.212088969954806, 40.439233823327598 ], [ -98.212088969954806, 40.732706319992062 ], [ -98.17016432757417, 40.900404889514618 ], [ -98.044390400432263, 41.151952743798446 ], [ -98.002465758051613, 41.235802028559732 ], [ -97.918616473290342, 41.48734988284356 ], [ -97.583219334245229, 41.696973094746753 ], [ -97.205897552819479, 41.864671664269309 ], [ -97.080123625677572, 41.906596306649945 ], [ -96.82857577139373, 41.864671664269309 ], [ -96.702801844251823, 41.780822379508031 ], [ -96.535103274729266, 41.48734988284356 ], [ -96.493178632348631, 41.319651313321003 ], [ -96.493178632348631, 41.068103459037175 ], [ -96.409329347587345, 40.900404889514618 ], [ -96.283555420445424, 40.732706319992062 ], [ -95.99008292378096, 40.690781677611426 ], [ -95.570836499974575, 40.606932392850148 ], [ -95.486987215213304, 40.481158465708234 ], [ -95.319288645690747, 40.271535253805041 ], [ -95.193514718548826, 40.187685969043763 ], [ -95.193514718548826, 39.978062757140563 ], [ -95.067740791406919, 39.810364187618013 ], [ -94.858117579503713, 39.726514902856735 ], [ -94.690419009981156, 39.558816333334178 ], [ -94.564645082839249, 39.349193121430986 ], [ -94.480795798077963, 39.265343836669715 ], [ -94.355021870936056, 39.139569909527793 ], [ -94.271172586174771, 39.013795982385879 ], [ -94.1873233014135, 38.846097412863323 ], [ -94.1873233014135, 38.63647420096013 ], [ -94.229247943794135, 38.46877563143758 ], [ -94.355021870936056, 38.384926346676295 ], [ -94.480795798077963, 38.343001704295659 ], [ -94.64849436760052, 38.301077061915024 ], [ -94.816192937123077, 38.133378492392467 ], [ -94.858117579503713, 38.091453850011831 ], [ -95.025816149026269, 37.923755280489274 ], [ -95.067740791406919, 37.797981353347353 ], [ -95.067740791406919, 37.588358141444161 ], [ -95.025816149026269, 37.462584214302247 ], [ -94.941966864264998, 37.252961002399054 ], [ -94.774268294742441, 37.12718707525714 ], [ -94.774268294742441, 36.959488505734583 ], [ -94.858117579503713, 36.791789936212027 ], [ -95.025816149026269, 36.707940651450748 ], [ -95.235439360929462, 36.62409136668947 ], [ -95.780459711877768, 36.582166724308834 ], [ -95.906233639019689, 36.582166724308834 ], [ -96.032007566161596, 36.707940651450748 ], [ -96.157781493303517, 37.043337790495862 ], [ -96.199706135684153, 37.085262432876497 ], [ -96.36740470520671, 37.169111717637776 ], [ -96.577027917109902, 37.169111717637776 ], [ -96.786651129013094, 37.169111717637776 ], [ -97.163972910438844, 37.169111717637776 ], [ -97.499370049483957, 37.504508856682889 ], [ -97.541294691864593, 37.630282783824796 ], [ -97.792842546148421, 37.839905995727996 ], [ -97.792842546148421, 38.091453850011831 ], [ -97.792842546148421, 38.217227777153738 ], [ -97.792842546148421, 38.217227777153738 ], [ -97.70899326138715, 38.720323485721408 ] ] ] } },
|
||||
{ "type": "Feature", "properties": { "Name": "Dam", "Value": 8.000000 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -105.968147810372969, 33.898989611947954 ], [ -105.758524598469776, 33.647441757664126 ], [ -105.800449240850412, 33.521667830522212 ], [ -105.926223167992333, 33.395893903380298 ], [ -106.051997095134254, 33.228195333857741 ], [ -106.051997095134254, 32.892798194812627 ], [ -105.968147810372969, 32.808948910051356 ], [ -105.884298525611698, 32.641250340528799 ], [ -105.632750671327855, 32.599325698148157 ], [ -105.381202817044027, 32.599325698148157 ], [ -105.171579605140835, 32.599325698148157 ], [ -104.961956393237642, 32.767024267670713 ], [ -104.878107108476371, 33.144346049096463 ], [ -104.794257823715085, 33.395893903380298 ], [ -104.710408538953814, 33.563592472902847 ], [ -104.458860684669972, 33.815140327186683 ], [ -104.333086757528065, 34.024763539089875 ], [ -104.123463545624872, 34.150537466231789 ], [ -104.039614260863587, 34.360160678134982 ], [ -103.955764976102316, 34.569783890038181 ], [ -103.788066406579759, 34.779407101941374 ], [ -103.536518552295931, 34.863256386702645 ], [ -102.614176419921876, 34.611708532418817 ], [ -102.362628565638047, 34.402085320515624 ], [ -102.236854638496126, 34.276311393373703 ], [ -102.027231426592934, 33.940914254328597 ], [ -101.775683572309106, 33.647441757664126 ], [ -101.775683572309106, 33.563592472902847 ], [ -101.775683572309106, 33.018572121954548 ], [ -101.817608214689741, 32.767024267670713 ], [ -101.859532857070377, 32.683174982909435 ], [ -102.111080711354219, 32.305853201483686 ], [ -102.194929996115491, 32.26392855910305 ], [ -102.404553208018683, 32.180079274341772 ], [ -102.739950347063797, 32.138154631961129 ], [ -102.991498201347625, 32.138154631961129 ], [ -103.326895340392724, 32.138154631961129 ], [ -103.746141764199123, 32.012380704819215 ], [ -103.788066406579759, 32.012380704819215 ], [ -104.081538903244223, 31.551209638632191 ], [ -104.375011399908701, 31.048113930064527 ], [ -104.794257823715085, 30.545018221496861 ], [ -104.961956393237642, 30.377319651974307 ], [ -105.297353532282756, 30.335395009593668 ], [ -105.632750671327855, 30.419244294354947 ], [ -105.758524598469776, 30.461168936735586 ], [ -106.010072452753604, 30.419244294354947 ], [ -106.429318876559989, 30.335395009593668 ], [ -106.597017446082546, 30.25154572483239 ], [ -106.890489942747024, 30.25154572483239 ], [ -107.058188512269581, 30.25154572483239 ], [ -107.183962439411488, 30.419244294354947 ], [ -107.225887081792138, 30.586942863877503 ], [ -107.351661008934045, 30.796566075780696 ], [ -107.43551029369533, 30.880415360541974 ], [ -107.728982790359794, 30.964264645303249 ], [ -107.938606002262986, 30.964264645303249 ], [ -108.190153856546829, 31.173887857206445 ], [ -108.315927783688736, 31.425435711490273 ], [ -108.399777068450021, 31.59313428101283 ], [ -108.567475637972564, 31.886606777677301 ], [ -108.567475637972564, 31.886606777677301 ], [ -108.651324922733849, 32.389702486244964 ], [ -108.651324922733849, 32.515476413386878 ], [ -108.651324922733849, 32.892798194812627 ], [ -108.609400280353213, 33.10242140671582 ], [ -108.567475637972564, 33.395893903380298 ], [ -108.525550995591928, 33.60551711528349 ], [ -108.399777068450021, 33.815140327186683 ], [ -108.232078498927464, 34.024763539089875 ], [ -108.106304571785543, 34.150537466231789 ], [ -107.812832075121065, 34.192462108612432 ], [ -107.267811724172773, 34.192462108612432 ], [ -106.93241458512766, 34.192462108612432 ], [ -106.429318876559989, 34.108612823851153 ], [ -106.051997095134254, 34.024763539089875 ], [ -105.968147810372969, 33.898989611947954 ] ] ] } },
|
||||
{ "type": "Feature", "properties": { "Name": "Dam", "Value": 7.000000 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -98.002465758051613, 32.389702486244964 ], [ -97.541294691864593, 32.850873552431992 ], [ -96.073932208542232, 33.647441757664126 ], [ -95.864308996639039, 33.731291042425404 ], [ -94.858117579503713, 33.857064969567318 ], [ -93.642302950465194, 33.898989611947954 ], [ -92.719960818091153, 33.731291042425404 ], [ -92.552262248568582, 33.563592472902847 ], [ -92.049166540000925, 33.10242140671582 ], [ -90.917201195723678, 33.018572121954548 ], [ -90.414105487156007, 32.892798194812627 ], [ -90.2883315600141, 32.725099625290071 ], [ -90.204482275252815, 32.557401055767521 ], [ -90.120632990491544, 32.347777843864328 ], [ -90.036783705730272, 32.222003916722414 ], [ -90.078708348110908, 31.886606777677301 ], [ -90.246406917633465, 31.718908208154744 ], [ -90.791427268581771, 31.676983565774108 ], [ -91.378372261910698, 31.92853142005794 ], [ -92.049166540000925, 32.26392855910305 ], [ -92.216865109523482, 32.305853201483686 ], [ -92.719960818091153, 32.222003916722414 ], [ -92.845734745233059, 32.096229989580493 ], [ -93.013433314755616, 31.844682135296662 ], [ -93.013433314755616, 31.844682135296662 ], [ -93.055357957136252, 31.551209638632191 ], [ -93.055357957136252, 31.383511069109638 ], [ -92.887659387613695, 31.131963214825802 ], [ -92.845734745233059, 30.880415360541974 ], [ -92.845734745233059, 30.712716791019417 ], [ -92.845734745233059, 30.503093579116225 ], [ -92.971508672374981, 30.293470367213033 ], [ -93.139207241897537, 30.125771797690476 ], [ -93.432679738562001, 29.790374658645366 ], [ -93.558453665703922, 29.580751446742173 ], [ -93.684227592845829, 29.287278950077702 ], [ -93.768076877607115, 29.203429665316424 ], [ -94.061549374271578, 28.951881811032592 ], [ -94.313097228555421, 28.868032526271314 ], [ -95.067740791406919, 28.784183241510036 ], [ -95.486987215213304, 28.700333956748761 ], [ -96.451253989967995, 28.868032526271314 ], [ -96.702801844251823, 29.119580380555146 ], [ -96.912425056155016, 29.538826804361534 ], [ -96.912425056155016, 29.664600731503448 ], [ -96.87050041377438, 29.916148585787283 ], [ -96.954349698535651, 30.167696440071115 ], [ -96.954349698535651, 30.167696440071115 ], [ -97.122048268058208, 30.25154572483239 ], [ -97.373596122342036, 30.335395009593668 ], [ -98.002465758051613, 30.461168936735586 ], [ -98.337862897096727, 30.628867506258139 ], [ -98.379787539477363, 31.006189287683888 ], [ -98.295938254716091, 31.341586426728998 ], [ -98.505561466619284, 31.635058923393469 ], [ -98.715184678522476, 32.096229989580493 ], [ -98.715184678522476, 32.180079274341772 ], [ -98.505561466619284, 32.389702486244964 ], [ -98.379787539477363, 32.305853201483686 ], [ -98.002465758051613, 32.389702486244964 ] ] ] } },
|
||||
{ "type": "Feature", "properties": { "Name": "Lake", "Value": 12.000000 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -94.103474016652228, 43.457808074733578 ], [ -94.019624731890943, 43.583582001875499 ], [ -93.893850804749036, 43.793205213778691 ], [ -93.768076877607115, 44.212451637585076 ], [ -93.558453665703922, 44.54784877663019 ], [ -93.30690581142008, 44.757471988533382 ], [ -93.013433314755616, 45.050944485197846 ], [ -92.636111533329867, 45.260567697101038 ], [ -92.00724189762029, 45.470190909004238 ], [ -91.797618685717097, 45.554040193765516 ], [ -91.168749050007506, 45.554040193765516 ], [ -90.2883315600141, 45.763663405668709 ], [ -90.2883315600141, 45.763663405668709 ], [ -89.994859063349622, 45.763663405668709 ], [ -89.78523585144643, 45.721738763288073 ], [ -89.659461924304523, 45.470190909004238 ], [ -89.533687997162602, 45.344416981862324 ], [ -89.407914070020695, 45.218643054720403 ], [ -89.282140142878774, 45.134793769959131 ], [ -88.359798010504718, 44.757471988533382 ], [ -87.982476229078969, 44.757471988533382 ], [ -87.814777659556427, 44.715547346152739 ], [ -87.60515444765322, 44.54784877663019 ], [ -87.437455878130663, 44.380150207107633 ], [ -87.269757308608121, 44.17052699520444 ], [ -87.185908023846835, 44.002828425681884 ], [ -87.060134096704928, 43.709355929017413 ], [ -86.892435527182357, 43.415883432352942 ], [ -86.808586242421086, 43.206260220449749 ], [ -86.808586242421086, 42.954712366165914 ], [ -86.808586242421086, 42.661239869501443 ], [ -87.018209454324278, 42.409692015217615 ], [ -87.185908023846835, 42.032370233791866 ], [ -87.479380520511313, 41.571199167604838 ], [ -87.647079090033856, 41.277726670940368 ], [ -87.772853017175777, 41.068103459037175 ], [ -88.150174798601526, 41.02617881665654 ], [ -88.527496580027275, 40.942329531895254 ], [ -88.653270507169196, 40.774630962372704 ], [ -89.198290858117502, 40.64885703523079 ], [ -89.911009778588351, 40.606932392850148 ], [ -90.120632990491544, 40.606932392850148 ], [ -90.581804056678578, 40.606932392850148 ], [ -91.713769400955812, 41.068103459037175 ], [ -91.881467970478369, 41.277726670940368 ], [ -91.923392612859004, 41.571199167604838 ], [ -92.091091182381561, 42.283918088075694 ], [ -92.216865109523482, 42.493541299978887 ], [ -92.929584029994345, 42.577390584740172 ], [ -93.264981169039444, 42.493541299978887 ], [ -93.516529023323272, 42.493541299978887 ], [ -94.145398659032864, 42.787013796643365 ], [ -95.109665433787541, 43.164335578069114 ], [ -96.199706135684153, 43.793205213778691 ], [ -96.199706135684153, 43.960903783301248 ], [ -96.073932208542232, 44.338225564726997 ], [ -95.780459711877768, 44.589773419010825 ], [ -95.654685784735847, 44.757471988533382 ], [ -95.319288645690747, 44.757471988533382 ], [ -95.193514718548826, 44.631698061391461 ], [ -95.067740791406919, 44.505924134249547 ], [ -94.983891506645634, 44.338225564726997 ], [ -94.941966864264998, 44.17052699520444 ], [ -94.900042221884348, 43.793205213778691 ], [ -94.774268294742441, 43.541657359494856 ], [ -94.732343652361806, 43.499732717114213 ], [ -94.64849436760052, 43.373958789972306 ], [ -94.480795798077963, 43.248184862830385 ], [ -94.313097228555421, 43.206260220449749 ], [ -94.313097228555421, 43.206260220449749 ], [ -94.103474016652228, 43.457808074733578 ] ] ] } },
|
||||
{ "type": "Feature", "properties": { "Name": "Lake", "Value": 8.000000 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -115.401192346016671, 42.15814416093378 ], [ -115.065795206971572, 41.948520949030588 ], [ -115.023870564590922, 41.948520949030588 ], [ -114.604624140784537, 41.529274525224196 ], [ -113.933829862694324, 41.529274525224196 ], [ -113.430734154126654, 41.613123809985481 ], [ -113.304960226984747, 41.655048452366117 ], [ -112.340693452230056, 41.655048452366117 ], [ -112.005296313184942, 41.613123809985481 ], [ -111.502200604617272, 40.858480247133983 ], [ -111.502200604617272, 40.606932392850148 ], [ -111.627974531759193, 40.355384538566312 ], [ -111.837597743662386, 40.14576132666312 ], [ -112.214919525088135, 39.978062757140563 ], [ -112.508392021752613, 39.852288829998656 ], [ -113.053412372700905, 39.642665618095464 ], [ -113.095337015081554, 39.600740975714821 ], [ -113.472658796507289, 39.30726847905035 ], [ -113.556508081268575, 39.097645267147158 ], [ -113.556508081268575, 38.971871340005237 ], [ -113.891905220313689, 38.510700273818216 ], [ -114.227302359358788, 38.259152419534381 ], [ -114.47885021364263, 38.217227777153738 ], [ -114.81424735268773, 38.175303134773102 ], [ -115.3173430612554, 38.049529207631188 ], [ -115.862363412203706, 38.049529207631188 ], [ -116.113911266487534, 38.175303134773102 ], [ -116.281609836010091, 38.217227777153738 ], [ -116.323534478390727, 38.259152419534381 ], [ -117.036253398861589, 38.301077061915024 ], [ -117.329725895526053, 38.46877563143758 ], [ -117.49742446504861, 38.510700273818216 ], [ -117.748972319332438, 38.552624916198852 ], [ -118.00052017361628, 38.594549558579487 ], [ -118.252068027900108, 38.720323485721408 ], [ -118.461691239803301, 38.80417277048268 ], [ -118.545540524564572, 38.929946697624601 ], [ -118.83901302122905, 39.391117763811621 ], [ -118.922862305990321, 39.684590260476099 ], [ -118.922862305990321, 39.978062757140563 ], [ -118.922862305990321, 40.271535253805041 ], [ -118.83901302122905, 40.64885703523079 ], [ -118.587465166945222, 40.942329531895254 ], [ -118.461691239803301, 41.403500598082289 ], [ -118.252068027900108, 41.780822379508031 ], [ -118.126294100758187, 42.200068803314423 ], [ -118.084369458377552, 42.283918088075694 ], [ -117.748972319332438, 42.535465942359529 ], [ -117.203951968384146, 42.745089154262722 ], [ -116.449308405532648, 42.703164511882079 ], [ -116.323534478390727, 42.577390584740172 ], [ -115.988137339345613, 42.241993445695059 ], [ -115.736589485061785, 42.15814416093378 ], [ -115.526966273158592, 42.15814416093378 ], [ -115.401192346016671, 42.15814416093378 ] ] ] } },
|
||||
{ "type": "Feature", "properties": { "Name": "Lake", "Value": 12.000000 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -90.749502626201121, 28.616484671987482 ], [ -90.707577983820485, 28.700333956748761 ], [ -90.204482275252815, 29.161505022935785 ], [ -89.701386566685159, 29.664600731503448 ], [ -89.114441573356217, 30.209621082451754 ], [ -88.611345864788547, 30.419244294354947 ], [ -87.437455878130663, 30.503093579116225 ], [ -86.976284811943643, 30.503093579116225 ], [ -86.347415176234065, 30.335395009593668 ], [ -86.137791964330859, 30.25154572483239 ], [ -86.012018037188952, 30.041922512929197 ], [ -85.760470182905124, 29.832299301026005 ], [ -85.634696255763203, 29.748450016264727 ], [ -85.46699768624066, 29.748450016264727 ], [ -84.712354123389161, 29.538826804361534 ], [ -84.628504838627876, 29.329203592458342 ], [ -84.54465555386659, 29.077655738174506 ], [ -84.041559845298934, 28.532635387226204 ], [ -83.873861275776378, 28.323012175323012 ], [ -83.790011991015092, 27.945690393897262 ], [ -83.790011991015092, 27.694142539613431 ], [ -83.790011991015092, 27.484519327710238 ], [ -83.999635202918299, 27.149122188665128 ], [ -84.125409130060206, 26.939498976761936 ], [ -84.335032341963398, 26.562177195336186 ], [ -84.376956984344048, 26.352553983432994 ], [ -84.54465555386659, 26.017156844387884 ], [ -84.754278765769783, 25.891382917245966 ], [ -85.131600547195546, 25.849458274865327 ], [ -85.383148401479374, 25.807533632484692 ], [ -85.970093394808316, 25.430211851058942 ], [ -86.431264460995337, 25.178663996775111 ], [ -87.269757308608121, 24.675568288207444 ], [ -87.730928374795141, 24.507869718684891 ], [ -88.611345864788547, 24.507869718684891 ], [ -89.030592288594931, 24.507869718684891 ], [ -89.869085136207715, 24.717492930588083 ], [ -90.623728699059214, 25.388287208678303 ], [ -90.833351910962406, 25.807533632484692 ], [ -90.581804056678578, 26.184855413910437 ], [ -90.456030129536657, 26.310629341052355 ], [ -90.330256202394736, 26.604101837716826 ], [ -90.414105487156007, 26.72987576485874 ], [ -90.833351910962406, 26.897574334381297 ], [ -91.62992011619454, 27.568368612471517 ], [ -91.797618685717097, 27.903765751516623 ], [ -91.797618685717097, 28.658409314368122 ], [ -91.755694043336462, 28.700333956748761 ], [ -91.504146189052619, 28.7422585991294 ], [ -91.252598334768791, 28.490710744845565 ], [ -91.084899765246234, 28.40686146008429 ], [ -91.001050480484963, 28.364936817703651 ], [ -91.001050480484963, 28.364936817703651 ], [ -90.749502626201121, 28.616484671987482 ] ] ] } },
|
||||
{ "type": "Feature", "properties": { "Name": "Dam", "Value": 13.000000 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -113.97575450507496, 31.425435711490273 ], [ -113.304960226984747, 31.131963214825802 ], [ -113.179186299842826, 30.880415360541974 ], [ -113.095337015081554, 30.796566075780696 ], [ -112.382618094610692, 30.754641433400057 ], [ -111.921447028423671, 30.754641433400057 ], [ -111.586049889378558, 30.754641433400057 ], [ -110.95718025366898, 30.628867506258139 ], [ -110.621783114623867, 30.461168936735586 ], [ -110.328310617959389, 30.167696440071115 ], [ -110.034838121294925, 29.580751446742173 ], [ -110.034838121294925, 29.580751446742173 ], [ -110.370235260340039, 27.442594685329599 ], [ -110.370235260340039, 27.149122188665128 ], [ -110.412159902720674, 26.646026480097465 ], [ -110.705632399385138, 26.101006129149162 ], [ -111.041029538430251, 25.765608990104052 ], [ -111.29257739271408, 25.597910420581496 ], [ -111.418351319856001, 25.555985778200856 ], [ -113.430734154126654, 25.639835062962135 ], [ -114.059603789836245, 25.765608990104052 ], [ -114.81424735268773, 26.017156844387884 ], [ -115.443116988397321, 26.142930771529798 ], [ -115.778514127442421, 26.310629341052355 ], [ -115.862363412203706, 26.352553983432994 ], [ -116.030061981726263, 26.436403268194269 ], [ -116.281609836010091, 26.687951122478104 ], [ -116.407383763152012, 26.855649692000657 ], [ -116.533157690293919, 27.023348261523211 ], [ -116.65893161743584, 27.274896115807046 ], [ -116.700856259816476, 27.484519327710238 ], [ -116.65893161743584, 27.819916466755348 ], [ -116.575082332674555, 28.029539678658541 ], [ -116.449308405532648, 28.364936817703651 ], [ -116.449308405532648, 28.574560029606843 ], [ -116.533157690293919, 28.826107883890675 ], [ -116.700856259816476, 28.909957168651953 ], [ -117.078178041242225, 29.119580380555146 ], [ -117.665123034571167, 29.496902161980895 ], [ -117.874746246474359, 29.874223943406644 ], [ -117.874746246474359, 30.335395009593668 ], [ -117.832821604093724, 30.754641433400057 ], [ -117.623198392190531, 31.341586426728998 ], [ -116.575082332674555, 32.012380704819215 ], [ -115.023870564590922, 31.886606777677301 ], [ -114.143453074597517, 31.59313428101283 ], [ -113.97575450507496, 31.425435711490273 ] ] ] } },
|
||||
{ "type": "Feature", "properties": { "Name": "Lake", "Value": 8.000000 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -103.243046055631453, 27.777991824374709 ], [ -102.57225177754124, 29.035731095793871 ], [ -102.446477850399319, 29.203429665316424 ], [ -101.985306784212298, 29.41305287721962 ], [ -101.146813936599528, 29.077655738174506 ], [ -100.727567512793129, 28.7422585991294 ], [ -100.35024573136738, 28.281087532942372 ], [ -100.098697877083552, 28.155313605800458 ], [ -98.840958605664397, 27.903765751516623 ], [ -98.421712181857998, 27.484519327710238 ], [ -98.379787539477363, 27.06527290390385 ], [ -98.421712181857998, 26.813725049620018 ], [ -98.924807890425669, 25.765608990104052 ], [ -99.260205029470782, 25.597910420581496 ], [ -100.476019658509301, 25.262513281536386 ], [ -101.398361790883357, 25.304437923917025 ], [ -102.823799631825068, 25.472136493439582 ], [ -103.117272128489532, 25.891382917245966 ], [ -103.159196770870182, 26.310629341052355 ], [ -103.368819982773374, 26.771800407239379 ], [ -103.536518552295931, 27.023348261523211 ], [ -103.578443194676566, 27.274896115807046 ], [ -103.243046055631453, 27.777991824374709 ] ] ] } }
|
||||
]
|
||||
}
|
17
python/plugins/processing/tests/testdata/expected/polys_densify.geojson
vendored
Normal file
17
python/plugins/processing/tests/testdata/expected/polys_densify.geojson
vendored
Normal file
File diff suppressed because one or more lines are too long
19
python/plugins/processing/tests/testdata/expected/polys_to_lines.geojson
vendored
Normal file
19
python/plugins/processing/tests/testdata/expected/polys_to_lines.geojson
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"type": "FeatureCollection",
|
||||
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
|
||||
|
||||
"features": [
|
||||
{ "type": "Feature", "properties": { "Name": "Lake", "Value": 10.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ -109.189702908343051, 45.453515598399903 ], [ -108.96786894267926, 45.730808055479656 ], [ -108.63511799418356, 46.008100512559395 ], [ -108.135991571440016, 46.229934478223193 ], [ -107.69232364011242, 46.28539296963914 ], [ -107.415031183032681, 46.340851461055095 ], [ -106.915904760289138, 46.340851461055095 ], [ -106.472236828961542, 46.340851461055095 ], [ -106.139485880465855, 46.174475986807238 ], [ -105.973110406218012, 46.063559003975342 ], [ -105.862193423386117, 45.897183529727499 ], [ -105.640359457722312, 45.730808055479656 ], [ -105.529442474890416, 45.342598615568008 ], [ -105.473983983474469, 45.28714012415206 ], [ -105.418525492058521, 45.009847667072314 ], [ -105.252150017810663, 44.788013701408516 ], [ -104.863940577899029, 44.510721244328778 ], [ -104.697565103651186, 44.399804261496875 ], [ -104.586648120819291, 44.233428787249025 ], [ -104.531189629403343, 43.956136330169286 ], [ -104.531189629403343, 43.678843873089534 ], [ -104.586648120819291, 43.346092924593847 ], [ -104.697565103651186, 43.179717450345997 ], [ -104.863940577899029, 42.957883484682199 ], [ -105.030316052146873, 42.791508010434356 ], [ -105.363067000642573, 42.569674044770558 ], [ -105.473983983474469, 42.514215553354603 ], [ -106.361319846129646, 42.292381587690812 ], [ -106.583153811793451, 42.403298570522708 ], [ -107.026821743121047, 42.736049519018408 ], [ -107.137738725952943, 42.846966501850304 ], [ -107.193197217368891, 43.068800467514095 ], [ -107.193197217368891, 43.235175941761945 ], [ -107.193197217368891, 43.457009907425743 ], [ -107.248655708784838, 43.845219347337384 ], [ -107.248655708784838, 43.845219347337384 ], [ -107.359572691616734, 43.900677838753339 ], [ -107.581406657280525, 43.900677838753339 ], [ -107.858699114360277, 43.900677838753339 ], [ -107.969616097192173, 43.900677838753339 ], [ -108.080533080024068, 43.789760855921436 ], [ -108.302367045687873, 43.789760855921436 ], [ -108.63511799418356, 43.900677838753339 ], [ -108.96786894267926, 44.233428787249025 ], [ -109.189702908343051, 44.34434577008092 ], [ -109.300619891174946, 44.510721244328778 ], [ -109.300619891174946, 44.788013701408516 ], [ -109.300619891174946, 45.065306158488262 ], [ -109.300619891174946, 45.176223141320165 ], [ -109.189702908343051, 45.453515598399903 ] ] } },
|
||||
{ "type": "Feature", "properties": { "Name": "Lake", "Value": 10.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ -107.750165309544613, 45.359716390770956 ], [ -107.951114759544538, 45.038197270771072 ], [ -107.870734979544565, 44.877437710771133 ], [ -107.830545089544586, 44.756868040771174 ], [ -107.709975419544634, 44.636298370771222 ], [ -107.589405749544667, 44.636298370771222 ], [ -107.147316959544838, 44.515728700771263 ], [ -107.066937179544865, 44.435348920771297 ], [ -106.946367509544913, 44.39515903077131 ], [ -106.865987729544941, 44.234399470771365 ], [ -106.745418059544988, 44.073639910771426 ], [ -106.584658499545043, 44.03345002077144 ], [ -106.464088829545091, 44.03345002077144 ], [ -106.263139379545166, 44.03345002077144 ], [ -106.222949489545186, 44.073639910771426 ], [ -106.10237981954522, 44.154019690771399 ], [ -106.062189929545241, 44.354969140771324 ], [ -106.10237981954522, 44.515728700771263 ], [ -106.142569709545199, 44.716678150771187 ], [ -106.263139379545166, 44.837247820771147 ], [ -106.343519159545139, 44.917627600771112 ], [ -106.464088829545091, 44.998007380771085 ], [ -106.584658499545043, 45.038197270771072 ], [ -106.745418059544988, 45.19895683077101 ], [ -106.785607949544968, 45.239146720770997 ], [ -106.90617761954492, 45.359716390770956 ], [ -106.986557399544893, 45.520475950770894 ], [ -107.227696739544797, 45.560665840770881 ], [ -107.468836079544715, 45.520475950770894 ], [ -107.750165309544613, 45.359716390770956 ] ] } },
|
||||
{ "type": "Feature", "properties": { "Name": "Lake", "Value": 10.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ -103.490036969546196, 45.962564740770731 ], [ -103.409657189546223, 46.203704080770635 ], [ -103.289087519546271, 46.444843420770553 ], [ -103.007758289546373, 46.565413090770505 ], [ -102.525479609546551, 46.726172650770444 ], [ -102.284340269546647, 46.685982760770457 ], [ -102.16377059954668, 46.565413090770505 ], [ -102.083390819546707, 46.444843420770553 ], [ -102.003011039546749, 46.324273750770594 ], [ -101.842251479546803, 46.163514190770655 ], [ -101.721681809546851, 46.042944520770696 ], [ -101.681491919546858, 45.922374850770744 ], [ -101.681491919546858, 45.761615290770806 ], [ -101.681491919546858, 45.641045620770846 ], [ -101.80206158954681, 45.480286060770908 ], [ -101.882441369546783, 45.359716390770956 ], [ -101.962821149546755, 45.319526500770962 ], [ -102.083390819546707, 45.158766940771024 ], [ -102.123580709546701, 45.118577050771037 ], [ -102.324530159546626, 45.118577050771037 ], [ -102.445099829546578, 45.118577050771037 ], [ -102.56566949954653, 45.118577050771037 ], [ -102.96756839954638, 45.19895683077101 ], [ -102.96756839954638, 45.239146720770997 ], [ -103.168517849546305, 45.399906280770935 ], [ -103.208707739546298, 45.480286060770908 ], [ -103.369467299546244, 45.560665840770881 ], [ -103.490036969546196, 45.962564740770731 ] ] } },
|
||||
{ "type": "Feature", "properties": { "Name": "Dam", "Value": 20.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ -106.135846379895526, 39.978062757140563 ], [ -106.09392173751489, 40.103836684282484 ], [ -106.09392173751489, 40.103836684282484 ], [ -106.09392173751489, 40.103836684282484 ], [ -105.758524598469776, 40.271535253805041 ], [ -105.632750671327855, 40.313459896185677 ], [ -105.506976744185948, 40.397309180946955 ], [ -105.423127459424663, 40.439233823327598 ], [ -105.339278174663391, 40.481158465708234 ], [ -105.129654962760199, 40.606932392850148 ], [ -104.878107108476371, 40.606932392850148 ], [ -104.542709969431257, 40.606932392850148 ], [ -104.291162115147415, 40.355384538566312 ], [ -103.955764976102316, 40.187685969043763 ], [ -103.075347486108896, 40.14576132666312 ], [ -102.865724274205704, 40.103836684282484 ], [ -102.614176419921876, 40.019987399521206 ], [ -102.278779280876762, 39.852288829998656 ], [ -101.985306784212298, 39.768439545237371 ], [ -101.733758929928456, 39.516891690953543 ], [ -101.440286433263992, 39.30726847905035 ], [ -101.062964651838243, 38.846097412863323 ], [ -100.937190724696336, 38.720323485721408 ], [ -100.895266082315686, 38.678398843340773 ], [ -100.727567512793129, 38.426850989056938 ], [ -100.727567512793129, 38.259152419534381 ], [ -100.769492155173765, 38.007604565250546 ], [ -100.937190724696336, 37.714132068586082 ], [ -101.021040009457607, 37.630282783824796 ], [ -101.146813936599528, 37.336810287160333 ], [ -101.146813936599528, 37.169111717637776 ], [ -101.188738578980164, 36.959488505734583 ], [ -101.314512506122071, 36.791789936212027 ], [ -101.356437148502721, 36.666016009070113 ], [ -101.482211075644628, 36.582166724308834 ], [ -101.607985002786549, 36.288694227644363 ], [ -101.775683572309106, 36.204844942883085 ], [ -102.111080711354219, 36.079071015741171 ], [ -102.404553208018683, 35.995221730979893 ], [ -102.57225177754124, 35.995221730979893 ], [ -102.823799631825068, 35.995221730979893 ], [ -102.991498201347625, 35.995221730979893 ], [ -103.243046055631453, 36.037146373360528 ], [ -103.326895340392724, 36.037146373360528 ], [ -103.578443194676566, 36.120995658121807 ], [ -103.662292479437838, 36.204844942883085 ], [ -103.997689618482951, 36.414468154786277 ], [ -104.249237472766779, 36.62409136668947 ], [ -104.500785327050622, 36.875639220973305 ], [ -104.500785327050622, 36.917563863353948 ], [ -104.710408538953814, 37.043337790495862 ], [ -105.003881035618278, 37.211036360018412 ], [ -105.297353532282756, 37.294885644779697 ], [ -105.381202817044027, 37.336810287160333 ], [ -105.632750671327855, 37.462584214302247 ], [ -105.926223167992333, 37.546433499063525 ], [ -106.135846379895526, 37.756056710966718 ], [ -106.303544949418082, 37.923755280489274 ], [ -106.429318876559989, 38.175303134773102 ], [ -106.513168161321275, 38.343001704295659 ], [ -106.638942088463182, 38.510700273818216 ], [ -106.638942088463182, 38.720323485721408 ], [ -106.638942088463182, 38.929946697624601 ], [ -106.597017446082546, 39.181494551908429 ], [ -106.303544949418082, 39.810364187618013 ], [ -106.135846379895526, 39.978062757140563 ] ] } },
|
||||
{ "type": "Feature", "properties": { "Name": "Lake", "Value": 11.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ -97.70899326138715, 38.720323485721408 ], [ -97.70899326138715, 38.762248128102044 ], [ -97.625143976625878, 39.097645267147158 ], [ -97.541294691864593, 39.30726847905035 ], [ -97.499370049483957, 39.558816333334178 ], [ -97.541294691864593, 39.726514902856735 ], [ -97.834767188529071, 39.936138114759927 ], [ -97.960541115670978, 40.061912041901849 ], [ -98.128239685193535, 40.271535253805041 ], [ -98.212088969954806, 40.439233823327598 ], [ -98.212088969954806, 40.732706319992062 ], [ -98.17016432757417, 40.900404889514618 ], [ -98.044390400432263, 41.151952743798446 ], [ -98.002465758051613, 41.235802028559732 ], [ -97.918616473290342, 41.48734988284356 ], [ -97.583219334245229, 41.696973094746753 ], [ -97.205897552819479, 41.864671664269309 ], [ -97.080123625677572, 41.906596306649945 ], [ -96.82857577139373, 41.864671664269309 ], [ -96.702801844251823, 41.780822379508031 ], [ -96.535103274729266, 41.48734988284356 ], [ -96.493178632348631, 41.319651313321003 ], [ -96.493178632348631, 41.068103459037175 ], [ -96.409329347587345, 40.900404889514618 ], [ -96.283555420445424, 40.732706319992062 ], [ -95.99008292378096, 40.690781677611426 ], [ -95.570836499974575, 40.606932392850148 ], [ -95.486987215213304, 40.481158465708234 ], [ -95.319288645690747, 40.271535253805041 ], [ -95.193514718548826, 40.187685969043763 ], [ -95.193514718548826, 39.978062757140563 ], [ -95.067740791406919, 39.810364187618013 ], [ -94.858117579503713, 39.726514902856735 ], [ -94.690419009981156, 39.558816333334178 ], [ -94.564645082839249, 39.349193121430986 ], [ -94.480795798077963, 39.265343836669715 ], [ -94.355021870936056, 39.139569909527793 ], [ -94.271172586174771, 39.013795982385879 ], [ -94.1873233014135, 38.846097412863323 ], [ -94.1873233014135, 38.63647420096013 ], [ -94.229247943794135, 38.46877563143758 ], [ -94.355021870936056, 38.384926346676295 ], [ -94.480795798077963, 38.343001704295659 ], [ -94.64849436760052, 38.301077061915024 ], [ -94.816192937123077, 38.133378492392467 ], [ -94.858117579503713, 38.091453850011831 ], [ -95.025816149026269, 37.923755280489274 ], [ -95.067740791406919, 37.797981353347353 ], [ -95.067740791406919, 37.588358141444161 ], [ -95.025816149026269, 37.462584214302247 ], [ -94.941966864264998, 37.252961002399054 ], [ -94.774268294742441, 37.12718707525714 ], [ -94.774268294742441, 36.959488505734583 ], [ -94.858117579503713, 36.791789936212027 ], [ -95.025816149026269, 36.707940651450748 ], [ -95.235439360929462, 36.62409136668947 ], [ -95.780459711877768, 36.582166724308834 ], [ -95.906233639019689, 36.582166724308834 ], [ -96.032007566161596, 36.707940651450748 ], [ -96.157781493303517, 37.043337790495862 ], [ -96.199706135684153, 37.085262432876497 ], [ -96.36740470520671, 37.169111717637776 ], [ -96.577027917109902, 37.169111717637776 ], [ -96.786651129013094, 37.169111717637776 ], [ -97.163972910438844, 37.169111717637776 ], [ -97.499370049483957, 37.504508856682889 ], [ -97.541294691864593, 37.630282783824796 ], [ -97.792842546148421, 37.839905995727996 ], [ -97.792842546148421, 38.091453850011831 ], [ -97.792842546148421, 38.217227777153738 ], [ -97.792842546148421, 38.217227777153738 ], [ -97.70899326138715, 38.720323485721408 ] ] } },
|
||||
{ "type": "Feature", "properties": { "Name": "Dam", "Value": 8.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ -105.968147810372969, 33.898989611947954 ], [ -105.758524598469776, 33.647441757664126 ], [ -105.800449240850412, 33.521667830522212 ], [ -105.926223167992333, 33.395893903380298 ], [ -106.051997095134254, 33.228195333857741 ], [ -106.051997095134254, 32.892798194812627 ], [ -105.968147810372969, 32.808948910051356 ], [ -105.884298525611698, 32.641250340528799 ], [ -105.632750671327855, 32.599325698148157 ], [ -105.381202817044027, 32.599325698148157 ], [ -105.171579605140835, 32.599325698148157 ], [ -104.961956393237642, 32.767024267670713 ], [ -104.878107108476371, 33.144346049096463 ], [ -104.794257823715085, 33.395893903380298 ], [ -104.710408538953814, 33.563592472902847 ], [ -104.458860684669972, 33.815140327186683 ], [ -104.333086757528065, 34.024763539089875 ], [ -104.123463545624872, 34.150537466231789 ], [ -104.039614260863587, 34.360160678134982 ], [ -103.955764976102316, 34.569783890038181 ], [ -103.788066406579759, 34.779407101941374 ], [ -103.536518552295931, 34.863256386702645 ], [ -102.614176419921876, 34.611708532418817 ], [ -102.362628565638047, 34.402085320515624 ], [ -102.236854638496126, 34.276311393373703 ], [ -102.027231426592934, 33.940914254328597 ], [ -101.775683572309106, 33.647441757664126 ], [ -101.775683572309106, 33.563592472902847 ], [ -101.775683572309106, 33.018572121954548 ], [ -101.817608214689741, 32.767024267670713 ], [ -101.859532857070377, 32.683174982909435 ], [ -102.111080711354219, 32.305853201483686 ], [ -102.194929996115491, 32.26392855910305 ], [ -102.404553208018683, 32.180079274341772 ], [ -102.739950347063797, 32.138154631961129 ], [ -102.991498201347625, 32.138154631961129 ], [ -103.326895340392724, 32.138154631961129 ], [ -103.746141764199123, 32.012380704819215 ], [ -103.788066406579759, 32.012380704819215 ], [ -104.081538903244223, 31.551209638632191 ], [ -104.375011399908701, 31.048113930064527 ], [ -104.794257823715085, 30.545018221496861 ], [ -104.961956393237642, 30.377319651974307 ], [ -105.297353532282756, 30.335395009593668 ], [ -105.632750671327855, 30.419244294354947 ], [ -105.758524598469776, 30.461168936735586 ], [ -106.010072452753604, 30.419244294354947 ], [ -106.429318876559989, 30.335395009593668 ], [ -106.597017446082546, 30.25154572483239 ], [ -106.890489942747024, 30.25154572483239 ], [ -107.058188512269581, 30.25154572483239 ], [ -107.183962439411488, 30.419244294354947 ], [ -107.225887081792138, 30.586942863877503 ], [ -107.351661008934045, 30.796566075780696 ], [ -107.43551029369533, 30.880415360541974 ], [ -107.728982790359794, 30.964264645303249 ], [ -107.938606002262986, 30.964264645303249 ], [ -108.190153856546829, 31.173887857206445 ], [ -108.315927783688736, 31.425435711490273 ], [ -108.399777068450021, 31.59313428101283 ], [ -108.567475637972564, 31.886606777677301 ], [ -108.567475637972564, 31.886606777677301 ], [ -108.651324922733849, 32.389702486244964 ], [ -108.651324922733849, 32.515476413386878 ], [ -108.651324922733849, 32.892798194812627 ], [ -108.609400280353213, 33.10242140671582 ], [ -108.567475637972564, 33.395893903380298 ], [ -108.525550995591928, 33.60551711528349 ], [ -108.399777068450021, 33.815140327186683 ], [ -108.232078498927464, 34.024763539089875 ], [ -108.106304571785543, 34.150537466231789 ], [ -107.812832075121065, 34.192462108612432 ], [ -107.267811724172773, 34.192462108612432 ], [ -106.93241458512766, 34.192462108612432 ], [ -106.429318876559989, 34.108612823851153 ], [ -106.051997095134254, 34.024763539089875 ], [ -105.968147810372969, 33.898989611947954 ] ] } },
|
||||
{ "type": "Feature", "properties": { "Name": "Dam", "Value": 7.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ -98.002465758051613, 32.389702486244964 ], [ -97.541294691864593, 32.850873552431992 ], [ -96.073932208542232, 33.647441757664126 ], [ -95.864308996639039, 33.731291042425404 ], [ -94.858117579503713, 33.857064969567318 ], [ -93.642302950465194, 33.898989611947954 ], [ -92.719960818091153, 33.731291042425404 ], [ -92.552262248568582, 33.563592472902847 ], [ -92.049166540000925, 33.10242140671582 ], [ -90.917201195723678, 33.018572121954548 ], [ -90.414105487156007, 32.892798194812627 ], [ -90.2883315600141, 32.725099625290071 ], [ -90.204482275252815, 32.557401055767521 ], [ -90.120632990491544, 32.347777843864328 ], [ -90.036783705730272, 32.222003916722414 ], [ -90.078708348110908, 31.886606777677301 ], [ -90.246406917633465, 31.718908208154744 ], [ -90.791427268581771, 31.676983565774108 ], [ -91.378372261910698, 31.92853142005794 ], [ -92.049166540000925, 32.26392855910305 ], [ -92.216865109523482, 32.305853201483686 ], [ -92.719960818091153, 32.222003916722414 ], [ -92.845734745233059, 32.096229989580493 ], [ -93.013433314755616, 31.844682135296662 ], [ -93.013433314755616, 31.844682135296662 ], [ -93.055357957136252, 31.551209638632191 ], [ -93.055357957136252, 31.383511069109638 ], [ -92.887659387613695, 31.131963214825802 ], [ -92.845734745233059, 30.880415360541974 ], [ -92.845734745233059, 30.712716791019417 ], [ -92.845734745233059, 30.503093579116225 ], [ -92.971508672374981, 30.293470367213033 ], [ -93.139207241897537, 30.125771797690476 ], [ -93.432679738562001, 29.790374658645366 ], [ -93.558453665703922, 29.580751446742173 ], [ -93.684227592845829, 29.287278950077702 ], [ -93.768076877607115, 29.203429665316424 ], [ -94.061549374271578, 28.951881811032592 ], [ -94.313097228555421, 28.868032526271314 ], [ -95.067740791406919, 28.784183241510036 ], [ -95.486987215213304, 28.700333956748761 ], [ -96.451253989967995, 28.868032526271314 ], [ -96.702801844251823, 29.119580380555146 ], [ -96.912425056155016, 29.538826804361534 ], [ -96.912425056155016, 29.664600731503448 ], [ -96.87050041377438, 29.916148585787283 ], [ -96.954349698535651, 30.167696440071115 ], [ -96.954349698535651, 30.167696440071115 ], [ -97.122048268058208, 30.25154572483239 ], [ -97.373596122342036, 30.335395009593668 ], [ -98.002465758051613, 30.461168936735586 ], [ -98.337862897096727, 30.628867506258139 ], [ -98.379787539477363, 31.006189287683888 ], [ -98.295938254716091, 31.341586426728998 ], [ -98.505561466619284, 31.635058923393469 ], [ -98.715184678522476, 32.096229989580493 ], [ -98.715184678522476, 32.180079274341772 ], [ -98.505561466619284, 32.389702486244964 ], [ -98.379787539477363, 32.305853201483686 ], [ -98.002465758051613, 32.389702486244964 ] ] } },
|
||||
{ "type": "Feature", "properties": { "Name": "Lake", "Value": 12.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ -94.103474016652228, 43.457808074733578 ], [ -94.019624731890943, 43.583582001875499 ], [ -93.893850804749036, 43.793205213778691 ], [ -93.768076877607115, 44.212451637585076 ], [ -93.558453665703922, 44.54784877663019 ], [ -93.30690581142008, 44.757471988533382 ], [ -93.013433314755616, 45.050944485197846 ], [ -92.636111533329867, 45.260567697101038 ], [ -92.00724189762029, 45.470190909004238 ], [ -91.797618685717097, 45.554040193765516 ], [ -91.168749050007506, 45.554040193765516 ], [ -90.2883315600141, 45.763663405668709 ], [ -90.2883315600141, 45.763663405668709 ], [ -89.994859063349622, 45.763663405668709 ], [ -89.78523585144643, 45.721738763288073 ], [ -89.659461924304523, 45.470190909004238 ], [ -89.533687997162602, 45.344416981862324 ], [ -89.407914070020695, 45.218643054720403 ], [ -89.282140142878774, 45.134793769959131 ], [ -88.359798010504718, 44.757471988533382 ], [ -87.982476229078969, 44.757471988533382 ], [ -87.814777659556427, 44.715547346152739 ], [ -87.60515444765322, 44.54784877663019 ], [ -87.437455878130663, 44.380150207107633 ], [ -87.269757308608121, 44.17052699520444 ], [ -87.185908023846835, 44.002828425681884 ], [ -87.060134096704928, 43.709355929017413 ], [ -86.892435527182357, 43.415883432352942 ], [ -86.808586242421086, 43.206260220449749 ], [ -86.808586242421086, 42.954712366165914 ], [ -86.808586242421086, 42.661239869501443 ], [ -87.018209454324278, 42.409692015217615 ], [ -87.185908023846835, 42.032370233791866 ], [ -87.479380520511313, 41.571199167604838 ], [ -87.647079090033856, 41.277726670940368 ], [ -87.772853017175777, 41.068103459037175 ], [ -88.150174798601526, 41.02617881665654 ], [ -88.527496580027275, 40.942329531895254 ], [ -88.653270507169196, 40.774630962372704 ], [ -89.198290858117502, 40.64885703523079 ], [ -89.911009778588351, 40.606932392850148 ], [ -90.120632990491544, 40.606932392850148 ], [ -90.581804056678578, 40.606932392850148 ], [ -91.713769400955812, 41.068103459037175 ], [ -91.881467970478369, 41.277726670940368 ], [ -91.923392612859004, 41.571199167604838 ], [ -92.091091182381561, 42.283918088075694 ], [ -92.216865109523482, 42.493541299978887 ], [ -92.929584029994345, 42.577390584740172 ], [ -93.264981169039444, 42.493541299978887 ], [ -93.516529023323272, 42.493541299978887 ], [ -94.145398659032864, 42.787013796643365 ], [ -95.109665433787541, 43.164335578069114 ], [ -96.199706135684153, 43.793205213778691 ], [ -96.199706135684153, 43.960903783301248 ], [ -96.073932208542232, 44.338225564726997 ], [ -95.780459711877768, 44.589773419010825 ], [ -95.654685784735847, 44.757471988533382 ], [ -95.319288645690747, 44.757471988533382 ], [ -95.193514718548826, 44.631698061391461 ], [ -95.067740791406919, 44.505924134249547 ], [ -94.983891506645634, 44.338225564726997 ], [ -94.941966864264998, 44.17052699520444 ], [ -94.900042221884348, 43.793205213778691 ], [ -94.774268294742441, 43.541657359494856 ], [ -94.732343652361806, 43.499732717114213 ], [ -94.64849436760052, 43.373958789972306 ], [ -94.480795798077963, 43.248184862830385 ], [ -94.313097228555421, 43.206260220449749 ], [ -94.313097228555421, 43.206260220449749 ], [ -94.103474016652228, 43.457808074733578 ] ] } },
|
||||
{ "type": "Feature", "properties": { "Name": "Lake", "Value": 8.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ -115.401192346016671, 42.15814416093378 ], [ -115.065795206971572, 41.948520949030588 ], [ -115.023870564590922, 41.948520949030588 ], [ -114.604624140784537, 41.529274525224196 ], [ -113.933829862694324, 41.529274525224196 ], [ -113.430734154126654, 41.613123809985481 ], [ -113.304960226984747, 41.655048452366117 ], [ -112.340693452230056, 41.655048452366117 ], [ -112.005296313184942, 41.613123809985481 ], [ -111.502200604617272, 40.858480247133983 ], [ -111.502200604617272, 40.606932392850148 ], [ -111.627974531759193, 40.355384538566312 ], [ -111.837597743662386, 40.14576132666312 ], [ -112.214919525088135, 39.978062757140563 ], [ -112.508392021752613, 39.852288829998656 ], [ -113.053412372700905, 39.642665618095464 ], [ -113.095337015081554, 39.600740975714821 ], [ -113.472658796507289, 39.30726847905035 ], [ -113.556508081268575, 39.097645267147158 ], [ -113.556508081268575, 38.971871340005237 ], [ -113.891905220313689, 38.510700273818216 ], [ -114.227302359358788, 38.259152419534381 ], [ -114.47885021364263, 38.217227777153738 ], [ -114.81424735268773, 38.175303134773102 ], [ -115.3173430612554, 38.049529207631188 ], [ -115.862363412203706, 38.049529207631188 ], [ -116.113911266487534, 38.175303134773102 ], [ -116.281609836010091, 38.217227777153738 ], [ -116.323534478390727, 38.259152419534381 ], [ -117.036253398861589, 38.301077061915024 ], [ -117.329725895526053, 38.46877563143758 ], [ -117.49742446504861, 38.510700273818216 ], [ -117.748972319332438, 38.552624916198852 ], [ -118.00052017361628, 38.594549558579487 ], [ -118.252068027900108, 38.720323485721408 ], [ -118.461691239803301, 38.80417277048268 ], [ -118.545540524564572, 38.929946697624601 ], [ -118.83901302122905, 39.391117763811621 ], [ -118.922862305990321, 39.684590260476099 ], [ -118.922862305990321, 39.978062757140563 ], [ -118.922862305990321, 40.271535253805041 ], [ -118.83901302122905, 40.64885703523079 ], [ -118.587465166945222, 40.942329531895254 ], [ -118.461691239803301, 41.403500598082289 ], [ -118.252068027900108, 41.780822379508031 ], [ -118.126294100758187, 42.200068803314423 ], [ -118.084369458377552, 42.283918088075694 ], [ -117.748972319332438, 42.535465942359529 ], [ -117.203951968384146, 42.745089154262722 ], [ -116.449308405532648, 42.703164511882079 ], [ -116.323534478390727, 42.577390584740172 ], [ -115.988137339345613, 42.241993445695059 ], [ -115.736589485061785, 42.15814416093378 ], [ -115.526966273158592, 42.15814416093378 ], [ -115.401192346016671, 42.15814416093378 ] ] } },
|
||||
{ "type": "Feature", "properties": { "Name": "Lake", "Value": 12.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ -90.749502626201121, 28.616484671987482 ], [ -90.707577983820485, 28.700333956748761 ], [ -90.204482275252815, 29.161505022935785 ], [ -89.701386566685159, 29.664600731503448 ], [ -89.114441573356217, 30.209621082451754 ], [ -88.611345864788547, 30.419244294354947 ], [ -87.437455878130663, 30.503093579116225 ], [ -86.976284811943643, 30.503093579116225 ], [ -86.347415176234065, 30.335395009593668 ], [ -86.137791964330859, 30.25154572483239 ], [ -86.012018037188952, 30.041922512929197 ], [ -85.760470182905124, 29.832299301026005 ], [ -85.634696255763203, 29.748450016264727 ], [ -85.46699768624066, 29.748450016264727 ], [ -84.712354123389161, 29.538826804361534 ], [ -84.628504838627876, 29.329203592458342 ], [ -84.54465555386659, 29.077655738174506 ], [ -84.041559845298934, 28.532635387226204 ], [ -83.873861275776378, 28.323012175323012 ], [ -83.790011991015092, 27.945690393897262 ], [ -83.790011991015092, 27.694142539613431 ], [ -83.790011991015092, 27.484519327710238 ], [ -83.999635202918299, 27.149122188665128 ], [ -84.125409130060206, 26.939498976761936 ], [ -84.335032341963398, 26.562177195336186 ], [ -84.376956984344048, 26.352553983432994 ], [ -84.54465555386659, 26.017156844387884 ], [ -84.754278765769783, 25.891382917245966 ], [ -85.131600547195546, 25.849458274865327 ], [ -85.383148401479374, 25.807533632484692 ], [ -85.970093394808316, 25.430211851058942 ], [ -86.431264460995337, 25.178663996775111 ], [ -87.269757308608121, 24.675568288207444 ], [ -87.730928374795141, 24.507869718684891 ], [ -88.611345864788547, 24.507869718684891 ], [ -89.030592288594931, 24.507869718684891 ], [ -89.869085136207715, 24.717492930588083 ], [ -90.623728699059214, 25.388287208678303 ], [ -90.833351910962406, 25.807533632484692 ], [ -90.581804056678578, 26.184855413910437 ], [ -90.456030129536657, 26.310629341052355 ], [ -90.330256202394736, 26.604101837716826 ], [ -90.414105487156007, 26.72987576485874 ], [ -90.833351910962406, 26.897574334381297 ], [ -91.62992011619454, 27.568368612471517 ], [ -91.797618685717097, 27.903765751516623 ], [ -91.797618685717097, 28.658409314368122 ], [ -91.755694043336462, 28.700333956748761 ], [ -91.504146189052619, 28.7422585991294 ], [ -91.252598334768791, 28.490710744845565 ], [ -91.084899765246234, 28.40686146008429 ], [ -91.001050480484963, 28.364936817703651 ], [ -91.001050480484963, 28.364936817703651 ], [ -90.749502626201121, 28.616484671987482 ] ] } },
|
||||
{ "type": "Feature", "properties": { "Name": "Dam", "Value": 13.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ -113.97575450507496, 31.425435711490273 ], [ -113.304960226984747, 31.131963214825802 ], [ -113.179186299842826, 30.880415360541974 ], [ -113.095337015081554, 30.796566075780696 ], [ -112.382618094610692, 30.754641433400057 ], [ -111.921447028423671, 30.754641433400057 ], [ -111.586049889378558, 30.754641433400057 ], [ -110.95718025366898, 30.628867506258139 ], [ -110.621783114623867, 30.461168936735586 ], [ -110.328310617959389, 30.167696440071115 ], [ -110.034838121294925, 29.580751446742173 ], [ -110.034838121294925, 29.580751446742173 ], [ -110.370235260340039, 27.442594685329599 ], [ -110.370235260340039, 27.149122188665128 ], [ -110.412159902720674, 26.646026480097465 ], [ -110.705632399385138, 26.101006129149162 ], [ -111.041029538430251, 25.765608990104052 ], [ -111.29257739271408, 25.597910420581496 ], [ -111.418351319856001, 25.555985778200856 ], [ -113.430734154126654, 25.639835062962135 ], [ -114.059603789836245, 25.765608990104052 ], [ -114.81424735268773, 26.017156844387884 ], [ -115.443116988397321, 26.142930771529798 ], [ -115.778514127442421, 26.310629341052355 ], [ -115.862363412203706, 26.352553983432994 ], [ -116.030061981726263, 26.436403268194269 ], [ -116.281609836010091, 26.687951122478104 ], [ -116.407383763152012, 26.855649692000657 ], [ -116.533157690293919, 27.023348261523211 ], [ -116.65893161743584, 27.274896115807046 ], [ -116.700856259816476, 27.484519327710238 ], [ -116.65893161743584, 27.819916466755348 ], [ -116.575082332674555, 28.029539678658541 ], [ -116.449308405532648, 28.364936817703651 ], [ -116.449308405532648, 28.574560029606843 ], [ -116.533157690293919, 28.826107883890675 ], [ -116.700856259816476, 28.909957168651953 ], [ -117.078178041242225, 29.119580380555146 ], [ -117.665123034571167, 29.496902161980895 ], [ -117.874746246474359, 29.874223943406644 ], [ -117.874746246474359, 30.335395009593668 ], [ -117.832821604093724, 30.754641433400057 ], [ -117.623198392190531, 31.341586426728998 ], [ -116.575082332674555, 32.012380704819215 ], [ -115.023870564590922, 31.886606777677301 ], [ -114.143453074597517, 31.59313428101283 ], [ -113.97575450507496, 31.425435711490273 ] ] } },
|
||||
{ "type": "Feature", "properties": { "Name": "Lake", "Value": 8.000000 }, "geometry": { "type": "LineString", "coordinates": [ [ -103.243046055631453, 27.777991824374709 ], [ -102.57225177754124, 29.035731095793871 ], [ -102.446477850399319, 29.203429665316424 ], [ -101.985306784212298, 29.41305287721962 ], [ -101.146813936599528, 29.077655738174506 ], [ -100.727567512793129, 28.7422585991294 ], [ -100.35024573136738, 28.281087532942372 ], [ -100.098697877083552, 28.155313605800458 ], [ -98.840958605664397, 27.903765751516623 ], [ -98.421712181857998, 27.484519327710238 ], [ -98.379787539477363, 27.06527290390385 ], [ -98.421712181857998, 26.813725049620018 ], [ -98.924807890425669, 25.765608990104052 ], [ -99.260205029470782, 25.597910420581496 ], [ -100.476019658509301, 25.262513281536386 ], [ -101.398361790883357, 25.304437923917025 ], [ -102.823799631825068, 25.472136493439582 ], [ -103.117272128489532, 25.891382917245966 ], [ -103.159196770870182, 26.310629341052355 ], [ -103.368819982773374, 26.771800407239379 ], [ -103.536518552295931, 27.023348261523211 ], [ -103.578443194676566, 27.274896115807046 ], [ -103.243046055631453, 27.777991824374709 ] ] } }
|
||||
]
|
||||
}
|
11
python/plugins/processing/tests/testdata/expected/reprojected_france_parts.geojson
vendored
Normal file
11
python/plugins/processing/tests/testdata/expected/reprojected_france_parts.geojson
vendored
Normal file
File diff suppressed because one or more lines are too long
10
python/plugins/processing/tests/testdata/expected/sumlinelengths.geojson
vendored
Normal file
10
python/plugins/processing/tests/testdata/expected/sumlinelengths.geojson
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"type": "FeatureCollection",
|
||||
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
|
||||
|
||||
"features": [
|
||||
{ "type": "Feature", "properties": { "id": "1", "length": 0.000000, "count": 0.000000 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -160.0, 50.0 ], [ -145.0, 50.0 ], [ -145.0, 35.0 ], [ -160.0, 35.0 ], [ -160.0, 50.0 ] ] ] } },
|
||||
{ "type": "Feature", "properties": { "id": "2", "length": 5.968231, "count": 2.000000 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -130.0, 40.0 ], [ -115.0, 40.0 ], [ -115.0, 25.0 ], [ -130.0, 25.0 ], [ -130.0, 40.0 ] ] ] } },
|
||||
{ "type": "Feature", "properties": { "id": "3", "length": 26.584140, "count": 3.000000 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -95.0, 50.0 ], [ -75.0, 50.0 ], [ -75.0, 35.0 ], [ -95.0, 35.0 ], [ -95.0, 50.0 ] ] ] } }
|
||||
]
|
||||
}
|
@ -1,89 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
utilities_test.py
|
||||
---------------------
|
||||
Date : August 2012
|
||||
Copyright : (C) 2012 by Victor Olaya
|
||||
Email : volayaf at gmail dot 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 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
__author__ = 'Victor Olaya'
|
||||
__date__ = 'August 2012'
|
||||
__copyright__ = '(C) 2012, Victor Olaya'
|
||||
|
||||
# This will get replaced with a git SHA1 when you do a git archive
|
||||
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
from PyQt4 import QtGui, QtCore
|
||||
from qgis.core import QgsApplication
|
||||
|
||||
from qgis.gui import QgsMapCanvas
|
||||
from qgis_interface import QgisInterface
|
||||
|
||||
QGISAPP = None # Static vainasafele used to hold hand to running QGis app
|
||||
CANVAS = None
|
||||
PARENT = None
|
||||
IFACE = None
|
||||
GEOCRS = 4326 # Constant for EPSG:GEOCRS Geographic CRS id
|
||||
GOOGLECRS = 900913 # Constant for EPSG:GOOGLECRS Google Mercator id
|
||||
|
||||
|
||||
def getQgisTestApp():
|
||||
""" Start one QGis application to test agaist
|
||||
|
||||
Input
|
||||
NIL
|
||||
|
||||
Output
|
||||
handle to qgis app
|
||||
|
||||
|
||||
If QGis is already running the handle to that app will be returned
|
||||
"""
|
||||
|
||||
global QGISAPP
|
||||
|
||||
if QGISAPP is None:
|
||||
myGuiFlag = True # All test will run qgis in gui mode
|
||||
QGISAPP = QgsApplication(sys.argv, myGuiFlag)
|
||||
if 'QGISPATH' in os.environ:
|
||||
myPath = os.environ['QGISPATH']
|
||||
myUseDefaultPathFlag = True
|
||||
QGISAPP.setPrefixPath(myPath, myUseDefaultPathFlag)
|
||||
else:
|
||||
print 'Warning: QGISPATH is not set'
|
||||
|
||||
QGISAPP.initQgis()
|
||||
s = QGISAPP.showSettings()
|
||||
print s
|
||||
|
||||
global PARENT
|
||||
if PARENT is None:
|
||||
PARENT = QtGui.QWidget()
|
||||
|
||||
global CANVAS
|
||||
if CANVAS is None:
|
||||
CANVAS = QgsMapCanvas(PARENT)
|
||||
CANVAS.resize(QtCore.QSize(400, 400))
|
||||
|
||||
global IFACE
|
||||
if IFACE is None:
|
||||
# QgisInterface is a stub implementation of the QGIS plugin
|
||||
# interface
|
||||
IFACE = QgisInterface(CANVAS)
|
||||
|
||||
return (QGISAPP, CANVAS, IFACE, PARENT)
|
Loading…
x
Reference in New Issue
Block a user