From 7ccfbe3fe95d146b76ca2e59576a2862ec647fb6 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Wed, 10 Aug 2022 20:07:08 +1000 Subject: [PATCH] Use shapefiles for WFST data format Spatialite is just asking for unwanted issues. (In this case it's magically decided that the layers should all be readonly.) --- .../python/test_qgsserver_accesscontrol.py | 14 +- ...sserver_accesscontrol_wfs_transactional.py | 30 +- .../helloworld_country.cpg | 1 + .../helloworld_country.dbf | Bin 0 -> 2023 bytes .../helloworld_country.prj | 1 + .../helloworld_country.qmd | 26 + .../helloworld_country.shp | Bin 0 -> 3852 bytes .../helloworld_country.shx | Bin 0 -> 156 bytes .../helloworld_hello.cpg | 1 + .../helloworld_hello.dbf | Bin 0 -> 5420 bytes .../helloworld_hello.prj | 1 + .../helloworld_hello.qmd | 26 + .../helloworld_hello.shp | Bin 0 -> 2516 bytes .../helloworld_hello.shx | Bin 0 -> 180 bytes .../helloworld_points.cpg | 1 + .../helloworld_points.dbf | Bin 0 -> 701 bytes .../helloworld_points.prj | 1 + .../helloworld_points.qmd | 26 + .../helloworld_points.shp | Bin 0 -> 128 bytes .../helloworld_points.shx | Bin 0 -> 108 bytes .../qgis_server_accesscontrol/project_shp.qgs | 4372 +++++++++++++++++ 21 files changed, 4483 insertions(+), 17 deletions(-) create mode 100644 tests/testdata/qgis_server_accesscontrol/helloworld_country.cpg create mode 100644 tests/testdata/qgis_server_accesscontrol/helloworld_country.dbf create mode 100644 tests/testdata/qgis_server_accesscontrol/helloworld_country.prj create mode 100644 tests/testdata/qgis_server_accesscontrol/helloworld_country.qmd create mode 100644 tests/testdata/qgis_server_accesscontrol/helloworld_country.shp create mode 100644 tests/testdata/qgis_server_accesscontrol/helloworld_country.shx create mode 100644 tests/testdata/qgis_server_accesscontrol/helloworld_hello.cpg create mode 100644 tests/testdata/qgis_server_accesscontrol/helloworld_hello.dbf create mode 100644 tests/testdata/qgis_server_accesscontrol/helloworld_hello.prj create mode 100644 tests/testdata/qgis_server_accesscontrol/helloworld_hello.qmd create mode 100644 tests/testdata/qgis_server_accesscontrol/helloworld_hello.shp create mode 100644 tests/testdata/qgis_server_accesscontrol/helloworld_hello.shx create mode 100644 tests/testdata/qgis_server_accesscontrol/helloworld_points.cpg create mode 100644 tests/testdata/qgis_server_accesscontrol/helloworld_points.dbf create mode 100644 tests/testdata/qgis_server_accesscontrol/helloworld_points.prj create mode 100644 tests/testdata/qgis_server_accesscontrol/helloworld_points.qmd create mode 100644 tests/testdata/qgis_server_accesscontrol/helloworld_points.shp create mode 100644 tests/testdata/qgis_server_accesscontrol/helloworld_points.shx create mode 100644 tests/testdata/qgis_server_accesscontrol/project_shp.qgs diff --git a/tests/src/python/test_qgsserver_accesscontrol.py b/tests/src/python/test_qgsserver_accesscontrol.py index 2195c51140d..a7ac31ff33d 100644 --- a/tests/src/python/test_qgsserver_accesscontrol.py +++ b/tests/src/python/test_qgsserver_accesscontrol.py @@ -11,6 +11,7 @@ __date__ = '28/08/2015' __copyright__ = 'Copyright 2015, The QGIS Project' import qgis # NOQA +import shutil import os from shutil import copyfile @@ -146,23 +147,26 @@ class TestQgsServerAccessControl(QgsServerTestBase): cls._accesscontrol = RestrictedAccessControl(cls._server_iface) cls._server_iface.registerAccessControl(cls._accesscontrol, 100) + @classmethod + def project_file(cls): + return 'project_grp.qgs' + def setUp(self): super().setUp() self.testdata_path = unitTestDataPath("qgis_server_accesscontrol") - data_file = os.path.join(self.testdata_path, "helloworld.db") - self.assertTrue(os.path.isfile(data_file), 'Could not find data file "{}"'.format(data_file)) - copyfile(data_file, os.path.join(self.testdata_path, "_helloworld.db")) + self.tmp_path = tempfile.mkdtemp() + shutil.copytree(self.testdata_path, self.tmp_path, dirs_exist_ok=True) for k in ["QUERY_STRING", "QGIS_PROJECT_FILE"]: if k in os.environ: del os.environ[k] - self.projectPath = os.path.join(self.testdata_path, "project_grp.qgs") + self.projectPath = os.path.join(self.tmp_path, self.project_file()) self.assertTrue(os.path.isfile(self.projectPath), 'Could not find project file "{}"'.format(self.projectPath)) def tearDown(self): - copyfile(os.path.join(self.testdata_path, "_helloworld.db"), os.path.join(self.testdata_path, "helloworld.db")) + shutil.rmtree(self.tmp_path, True) def _handle_request(self, restricted, query_string, **kwargs): self._accesscontrol._active = restricted diff --git a/tests/src/python/test_qgsserver_accesscontrol_wfs_transactional.py b/tests/src/python/test_qgsserver_accesscontrol_wfs_transactional.py index 530393b4c26..6d3b8ae4114 100644 --- a/tests/src/python/test_qgsserver_accesscontrol_wfs_transactional.py +++ b/tests/src/python/test_qgsserver_accesscontrol_wfs_transactional.py @@ -25,11 +25,12 @@ WFS_TRANSACTION_INSERT = """ {x},{y} + {gid} {name} {color} -""".format(x=1000, y=2000, name="test", color="{color}", xml_ns=XML_NS) +""" WFS_TRANSACTION_UPDATE = """ @@ -56,20 +57,25 @@ WFS_TRANSACTION_DELETE = """ class TestQgsServerAccessControlWFSTransactional(TestQgsServerAccessControl): + @classmethod + def project_file(cls): + return 'project_shp.qgs' + def test_wfstransaction_insert(self): - data = WFS_TRANSACTION_INSERT.format(x=1000, y=2000, name="test", color="{color}", xml_ns=XML_NS) + data = WFS_TRANSACTION_INSERT.format(x=1, y=2, name="test", color="{color}", gid="{gid}", xml_ns=XML_NS) self._test_colors({1: "blue"}) - response, headers = self._post_fullaccess(data.format(color="red")) + response, headers = self._post_fullaccess(data.format(color="red", gid=2)) self.assertEqual( headers.get("Content-Type"), "text/xml; charset=utf-8", "Content type for Insert is wrong: %s" % headers.get("Content-Type")) + self.assertTrue( str(response).find("") != -1, "WFS/Transactions Insert don't succeed\n%s" % response) self._test_colors({2: "red"}) - response, headers = self._post_restricted(data.format(color="blue")) + response, headers = self._post_restricted(data.format(color="blue", gid=3)) self.assertEqual( headers.get("Content-Type"), "text/xml; charset=utf-8", "Content type for Insert is wrong: %s" % headers.get("Content-Type")) @@ -77,7 +83,7 @@ class TestQgsServerAccessControlWFSTransactional(TestQgsServerAccessControl): str(response).find("") == -1, "WFS/Transactions Insert succeed\n%s" % response) - response, headers = self._post_restricted(data.format(color="red"), "LAYER_PERM=no") + response, headers = self._post_restricted(data.format(color="red", gid=4), "LAYER_PERM=no") self.assertEqual( headers.get("Content-Type"), "text/xml; charset=utf-8", "Content type for Insert is wrong: %s" % headers.get("Content-Type")) @@ -86,17 +92,17 @@ class TestQgsServerAccessControlWFSTransactional(TestQgsServerAccessControl): 'No permissions to do WFS changes on layer \\\'db_point\\\'') != -1, "WFS/Transactions Insert succeed\n%s" % response) - response, headers = self._post_restricted(data.format(color="yellow"), "LAYER_PERM=yes") + response, headers = self._post_restricted(data.format(color="yellow", gid=5), "LAYER_PERM=yes") self.assertEqual( headers.get("Content-Type"), "text/xml; charset=utf-8", "Content type for Insert is wrong: %s" % headers.get("Content-Type")) self.assertTrue( str(response).find("") != -1, "WFS/Transactions Insert don't succeed\n%s" % response) - self._test_colors({3: "yellow"}) + self._test_colors({5: "yellow"}) def test_wfstransaction_update(self): - data = WFS_TRANSACTION_UPDATE.format(id="1", color="{color}", xml_ns=XML_NS) + data = WFS_TRANSACTION_UPDATE.format(id="0", color="{color}", xml_ns=XML_NS) self._test_colors({1: "blue"}) response, headers = self._post_restricted(data.format(color="yellow")) @@ -146,7 +152,7 @@ class TestQgsServerAccessControlWFSTransactional(TestQgsServerAccessControl): self._test_colors({1: "yellow"}) def test_wfstransaction_delete_fullaccess(self): - data = WFS_TRANSACTION_DELETE.format(id="1", xml_ns=XML_NS) + data = WFS_TRANSACTION_DELETE.format(id="0", xml_ns=XML_NS) self._test_colors({1: "blue"}) response, headers = self._post_fullaccess(data) @@ -155,10 +161,10 @@ class TestQgsServerAccessControlWFSTransactional(TestQgsServerAccessControl): "Content type for GetMap is wrong: %s" % headers.get("Content-Type")) self.assertTrue( str(response).find("") != -1, - "WFS/Transactions Delete don't succeed\n%s" % response) + "WFS/Transactions Delete didn't succeed\n%s" % response) def test_wfstransaction_delete_restricted(self): - data = WFS_TRANSACTION_DELETE.format(id="1", xml_ns=XML_NS) + data = WFS_TRANSACTION_DELETE.format(id="0", xml_ns=XML_NS) self._test_colors({1: "blue"}) response, headers = self._post_restricted(data) @@ -169,7 +175,7 @@ class TestQgsServerAccessControlWFSTransactional(TestQgsServerAccessControl): str(response).find("") == -1, "WFS/Transactions Delete succeed\n%s" % response) - data_update = WFS_TRANSACTION_UPDATE.format(id="1", color="red", xml_ns=XML_NS) + data_update = WFS_TRANSACTION_UPDATE.format(id="0", color="red", xml_ns=XML_NS) response, headers = self._post_fullaccess(data_update) self._test_colors({1: "red"}) diff --git a/tests/testdata/qgis_server_accesscontrol/helloworld_country.cpg b/tests/testdata/qgis_server_accesscontrol/helloworld_country.cpg new file mode 100644 index 00000000000..3ad133c048f --- /dev/null +++ b/tests/testdata/qgis_server_accesscontrol/helloworld_country.cpg @@ -0,0 +1 @@ +UTF-8 \ No newline at end of file diff --git a/tests/testdata/qgis_server_accesscontrol/helloworld_country.dbf b/tests/testdata/qgis_server_accesscontrol/helloworld_country.dbf new file mode 100644 index 0000000000000000000000000000000000000000..e26a6f3bf18158f29d4abcc187cafb9342522b28 GIT binary patch literal 2023 zcmZRs;^1OuU|>jO5M~5Y7@!~|7MBzy V=8UEjc%Yak=9MHCjo8ve3IM2D0^k4u literal 0 HcmV?d00001 diff --git a/tests/testdata/qgis_server_accesscontrol/helloworld_country.prj b/tests/testdata/qgis_server_accesscontrol/helloworld_country.prj new file mode 100644 index 00000000000..5c6f76df8b8 --- /dev/null +++ b/tests/testdata/qgis_server_accesscontrol/helloworld_country.prj @@ -0,0 +1 @@ +PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",0.0],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]] \ No newline at end of file diff --git a/tests/testdata/qgis_server_accesscontrol/helloworld_country.qmd b/tests/testdata/qgis_server_accesscontrol/helloworld_country.qmd new file mode 100644 index 00000000000..986529f5353 --- /dev/null +++ b/tests/testdata/qgis_server_accesscontrol/helloworld_country.qmd @@ -0,0 +1,26 @@ + + + + + + dataset + + + + + + + + + + 0 + 0 + + + + + false + + + + diff --git a/tests/testdata/qgis_server_accesscontrol/helloworld_country.shp b/tests/testdata/qgis_server_accesscontrol/helloworld_country.shp new file mode 100644 index 0000000000000000000000000000000000000000..1eeef8b98259913b2dae628ee24573861f51eea4 GIT binary patch literal 3852 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 literal 0 HcmV?d00001 diff --git a/tests/testdata/qgis_server_accesscontrol/helloworld_hello.cpg b/tests/testdata/qgis_server_accesscontrol/helloworld_hello.cpg new file mode 100644 index 00000000000..3ad133c048f --- /dev/null +++ b/tests/testdata/qgis_server_accesscontrol/helloworld_hello.cpg @@ -0,0 +1 @@ +UTF-8 \ No newline at end of file diff --git a/tests/testdata/qgis_server_accesscontrol/helloworld_hello.dbf b/tests/testdata/qgis_server_accesscontrol/helloworld_hello.dbf new file mode 100644 index 0000000000000000000000000000000000000000..080a3466d7af57b60f130b2056a4b263e0e78dd3 GIT binary patch literal 5420 zcmZRs;^5+9U|?uu5M%;U7@!~?TMETUnh$v;lRZ&t-Y3gwG8+raRHYQKsFwvD>l$x41O#DI} zZk2q6PbdeFo2PTNh5#?cmo;5QgsAM=RD9%YN8Er%$$FR9MGH=AO zM@tCwD7Uac7a39f{G!CX^wA;$Db6h|kvJodnVXoNnpcuI@;r{q$A$)m2Ds!#f_QRj LQEKssEg_@;C?c+= literal 0 HcmV?d00001 diff --git a/tests/testdata/qgis_server_accesscontrol/helloworld_hello.prj b/tests/testdata/qgis_server_accesscontrol/helloworld_hello.prj new file mode 100644 index 00000000000..5c6f76df8b8 --- /dev/null +++ b/tests/testdata/qgis_server_accesscontrol/helloworld_hello.prj @@ -0,0 +1 @@ +PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",0.0],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]] \ No newline at end of file diff --git a/tests/testdata/qgis_server_accesscontrol/helloworld_hello.qmd b/tests/testdata/qgis_server_accesscontrol/helloworld_hello.qmd new file mode 100644 index 00000000000..986529f5353 --- /dev/null +++ b/tests/testdata/qgis_server_accesscontrol/helloworld_hello.qmd @@ -0,0 +1,26 @@ + + + + + + dataset + + + + + + + + + + 0 + 0 + + + + + false + + + + diff --git a/tests/testdata/qgis_server_accesscontrol/helloworld_hello.shp b/tests/testdata/qgis_server_accesscontrol/helloworld_hello.shp new file mode 100644 index 0000000000000000000000000000000000000000..d8a3f89f6f56b08b262a27aabc657ba7df6e1d5b GIT binary patch literal 2516 zcmZuz3pABk6uwDnOrk}?$OzMAB<1~FY?I{TU3VB;%t?eCX*y z24fN7Tagf96V8Tfa{*zdzRwk&_}Ag{ zeQZcN={7x`7ltqw36y$!7RS}=h*fX;B?KDQ9BJkWx6)YUA$^Ig_()_t?72z$TmZ~C z?r->#6@l(1&zaQ}1b`-^p*1i#0!2+sEw8^43^nt*X&c8DJXNp!VvY^F)t8kWP>w)Y z8@9a)JG>lY`~k5 z@HD~-TQ~ey+NPBpZ<33X8JC5FU|%Q%7@Z<6xC1U zfT%16i>!xH;f2ms{sCwqO5-xwY+#gn@{R31QBkd$;=r9?AoH-8*yO@k>|4ySs?#{( zM`LG}*zFVA_#sb4ug0@Kc+*@Z7AFgzJ9tBYRON}{EuM5N%qO`tDa)^g4cNx~L`ZRB zQ##l8x6XF|!J^NK8?M`M?w%PP`+c1li+S?)?hrH?yU^H#kv);@t}jYQYUdpkww+caso##jK#iPz8P|(MgC~=JC$VJ zJ8rO&nkD`yx3`I-IBWqK&0;SnhkVf9e|d>L;!eOI?XgV3u? z4vLG|rm@p#6XZ4z8mwq^M@xmN+s|Gy0|ly|-H@b$Z1;~f?jWk|NeoLjXO|-~;_kQA zzaSKJGq?Y4VZ)+rIYS5G5ji$`vqtv#%LF4h*p>eCmFpbZ-%I7q2Qk?*tn>0F5Y(RE z_We~qIv0XEzv$HNK-w0)Kamo$t*Dv_@-6G>>as!c*~juV3&yRJsD9RkWvhnUy}exi zS2Jpq-wF-dR@54%J41g7*|Ta0ECA&x6vV zhgzK)TD1Kgfk*L~BAMc-WcegbXnmzI(UGzOR+^u9XkyNUaUHV8#;omHjuj8YhA zuyC`HwhIi#Y<;noAtLDChKUOThf`cUvCUH;IE2l{f@rfhzY`&i>7gz`U*Io0e^ z;FM)=%lelbz<2p`zQ$mmUf+mby6XqC8e_5V;Cw$py_UoarqdAms}om-!u> z3{CiqnlpjGnO!%VZ>9m58^@Z$rQ_YE zdih;^QGTVkY_;yy!JsA0zj|-R4%7r0t`b?naPy7UYn^`#;6}hx(;`6#;NE{g&6-fS aq}ro0GyxDv^#>1%wZfhx-`EJEeE$J0^$pJe literal 0 HcmV?d00001 diff --git a/tests/testdata/qgis_server_accesscontrol/helloworld_hello.shx b/tests/testdata/qgis_server_accesscontrol/helloworld_hello.shx new file mode 100644 index 0000000000000000000000000000000000000000..979d8666b511174f7d538283d3bce603c9726f8b GIT binary patch literal 180 zcmZQzQ0HR64x(N#Gcd3MnE12{br8-_!zO~KwVu~Yn z?I@x~Kwbk7Z-dZ`RzNy{fq}6PN + + + + + dataset + + + + + + + + + + 0 + 0 + + + + + false + + + + diff --git a/tests/testdata/qgis_server_accesscontrol/helloworld_points.shp b/tests/testdata/qgis_server_accesscontrol/helloworld_points.shp new file mode 100644 index 0000000000000000000000000000000000000000..c954713fd956229addfe0cbac6afc45f7a16b208 GIT binary patch literal 128 pcmZQzQ0HR64jf)EGcYj1;M1& literal 0 HcmV?d00001 diff --git a/tests/testdata/qgis_server_accesscontrol/project_shp.qgs b/tests/testdata/qgis_server_accesscontrol/project_shp.qgs new file mode 100644 index 00000000000..565adbc3e8c --- /dev/null +++ b/tests/testdata/qgis_server_accesscontrol/project_shp.qgs @@ -0,0 +1,4372 @@ + + + + QGIS Server Hello World + + + + + + PROJCS["WGS 84 / Pseudo-Mercator",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]],PROJECTION["Mercator_1SP"],PARAMETER["central_meridian",0],PARAMETER["scale_factor",1],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AXIS["X",EAST],AXIS["Y",NORTH],EXTENSION["PROJ4","+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"],AUTHORITY["EPSG","3857"]] + +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs + 3857 + 3857 + EPSG:3857 + WGS 84 / Pseudo-Mercator + merc + WGS84 + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + points20150803121107046 + hello20131022151106574 + Hello_copy20150804164427541 + Hello_SubsetString_copy20160222085231770 + Hello_Project_SubsetString_copy20160223113949592 + dem20150730091219559 + country20131022151106556 + Country_copy20161127151800736 + country20170328164317226 + Hello_e995a3b8_79e4_4b73_8da1_82dc300b4b8c + Hello_SubsetString_e829f18d_ef33_4bfd_883f_97c1d2dd50f9 + + + + + + + + + + + + + + + + + + + meters + + -20609693.37008669599890709 + -11045674.50870379433035851 + 20961935.60850896313786507 + 19134440.47931583970785141 + + 0 + + + PROJCS["WGS 84 / Pseudo-Mercator",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]],PROJECTION["Mercator_1SP"],PARAMETER["central_meridian",0],PARAMETER["scale_factor",1],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AXIS["X",EAST],AXIS["Y",NORTH],EXTENSION["PROJ4","+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"],AUTHORITY["EPSG","3857"]] + +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs + 3857 + 3857 + EPSG:3857 + WGS 84 / Pseudo-Mercator + merc + WGS84 + false + + + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -19619892.68012013286352158 + -10327100.34232237376272678 + 19972134.91854240000247955 + 18415866.31293442100286484 + + Country_copy20161127151800736 + ./helloworld_country.shp + + + + Country_Labels + + + PROJCS["WGS 84 / Pseudo-Mercator",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]],PROJECTION["Mercator_1SP"],PARAMETER["central_meridian",0],PARAMETER["scale_factor",1],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AXIS["X",EAST],AXIS["Y",NORTH],EXTENSION["PROJ4","+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"],AUTHORITY["EPSG","3857"]] + +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs + 3857 + 3857 + EPSG:3857 + WGS 84 / Pseudo-Mercator + merc + WGS84 + false + + + + + + + + + + + + + + + + + 0 + 0 + + + + + true + + + + + ogr + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + . + + + + + + + + + + + + + + . + + 0 + + + 0 + generatedlayout + + + + + + + + + + name + + 2 + + + + + + + 1 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ../../../../../.. + + 0 + + + 0 + generatedlayout + + + + + + + name + + + + + -14746250.07513097859919071 + -112075.42807669920148328 + 11342200.07719692215323448 + 10914413.7141284141689539 + + Hello_Project_SubsetString_copy20160223113949592 + ./helloworld_hello.shp + + + + Hello_Filter_SubsetString + + + PROJCS["WGS 84 / Pseudo-Mercator",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]],PROJECTION["Mercator_1SP"],PARAMETER["central_meridian",0],PARAMETER["scale_factor",1],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AXIS["X",EAST],AXIS["Y",NORTH],EXTENSION["PROJ4","+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"],AUTHORITY["EPSG","3857"]] + +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs + 3857 + 3857 + EPSG:3857 + WGS 84 / Pseudo-Mercator + merc + WGS84 + false + + + + + + + + + + + + + + + + + 0 + 0 + + + + + true + + + + + ogr + + + + + + + + + + + 1 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ../../../../../.. + + 0 + + + 0 + generatedlayout + + + + + + + + + + + + + + "pkuid" + + + + + -2465695.66895584994927049 + 80258.53580146089370828 + 5037064.00943838991224766 + 3762589.19456820981577039 + + Hello_SubsetString_copy20160222085231770 + ./helloworld_hello.shp|subset="pkuid" in ( '7', '8' ) + + + + Hello_Project_SubsetString + + + PROJCS["WGS 84 / Pseudo-Mercator",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]],PROJECTION["Mercator_1SP"],PARAMETER["central_meridian",0],PARAMETER["scale_factor",1],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AXIS["X",EAST],AXIS["Y",NORTH],EXTENSION["PROJ4","+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"],AUTHORITY["EPSG","3857"]] + +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs + 3857 + 3857 + EPSG:3857 + WGS 84 / Pseudo-Mercator + merc + WGS84 + false + + + + + + + + + + + + + + + + + 0 + 0 + + + + + true + + + + + ogr + + + + + + + + + + + 1 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ../../../../../.. + + 0 + + + 0 + generatedlayout + + + + + + + + + + + + + + "pkuid" + + + + + -14746250.07513097859919071 + -112075.42807669920148328 + 11342200.07719692215323448 + 10914413.7141284141689539 + + Hello_SubsetString_e829f18d_ef33_4bfd_883f_97c1d2dd50f9 + ./helloworld_hello.shp + + + + Hello_Filter + + + PROJCS["WGS 84 / Pseudo-Mercator",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]],PROJECTION["Mercator_1SP"],PARAMETER["central_meridian",0],PARAMETER["scale_factor",1],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AXIS["X",EAST],AXIS["Y",NORTH],EXTENSION["PROJ4","+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"],AUTHORITY["EPSG","3857"]] + +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs + 3857 + 3857 + EPSG:3857 + WGS 84 / Pseudo-Mercator + merc + WGS84 + false + + + + + + + + + + + + + + + + + 0 + 0 + + + + + false + + + + + ogr + + + + + + + + + + + 1 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + "pkuid" + + + + + 0 + 0 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ../../../../../.. + + 0 + + + 0 + generatedlayout + + + + + + + + + + + + + + "pkuid" + + + + + -14746250.07513097859919071 + -112075.42807669920148328 + 11342200.07719692215323448 + 10914413.7141284141689539 + + Hello_copy20150804164427541 + ./helloworld_hello.shp + + + + Hello_SubsetString + + + PROJCS["WGS 84 / Pseudo-Mercator",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]],PROJECTION["Mercator_1SP"],PARAMETER["central_meridian",0],PARAMETER["scale_factor",1],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AXIS["X",EAST],AXIS["Y",NORTH],EXTENSION["PROJ4","+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"],AUTHORITY["EPSG","3857"]] + +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs + 3857 + 3857 + EPSG:3857 + WGS 84 / Pseudo-Mercator + merc + WGS84 + false + + + + + + + + + + + + + + + + + 0 + 0 + + + + + true + + + + + ogr + + + + + + + + + + + 1 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ../../../../../.. + + 0 + + + 0 + generatedlayout + + + + + + + + + + + + + + "pkuid" + + + + + -14746250.07513097859919071 + -112075.42807669920148328 + 11342200.07719692215323448 + 10914413.7141284141689539 + + Hello_e995a3b8_79e4_4b73_8da1_82dc300b4b8c + ./helloworld_hello.shp + + + + Hello_OnOff + + + PROJCS["WGS 84 / Pseudo-Mercator",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]],PROJECTION["Mercator_1SP"],PARAMETER["central_meridian",0],PARAMETER["scale_factor",1],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AXIS["X",EAST],AXIS["Y",NORTH],EXTENSION["PROJ4","+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"],AUTHORITY["EPSG","3857"]] + +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs + 3857 + 3857 + EPSG:3857 + WGS 84 / Pseudo-Mercator + merc + WGS84 + false + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + + + + + true + + + + + + + + + + + + + ogr + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + /home + + 0 + + + 0 + generatedlayout + + + + + + + + + + + + + + + + + + + COALESCE( "pkuid", '<NULL>' ) + + 2 + + + + + + + 1 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ../../../../../.. + + 0 + + + 0 + generatedlayout + + + + + + + + + + + + + + + + + + + + + + COALESCE( "pkuid", '<NULL>' ) + + + + + -19619892.68012013286352158 + -10327100.34232237376272678 + 19972134.91854240000247955 + 18415866.31293442100286484 + + country20131022151106556 + ./helloworld_country.shp + + + + Country + + + PROJCS["WGS 84 / Pseudo-Mercator",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]],PROJECTION["Mercator_1SP"],PARAMETER["central_meridian",0],PARAMETER["scale_factor",1],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AXIS["X",EAST],AXIS["Y",NORTH],EXTENSION["PROJ4","+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"],AUTHORITY["EPSG","3857"]] + +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs + 3857 + 3857 + EPSG:3857 + WGS 84 / Pseudo-Mercator + merc + WGS84 + false + + + + + + + + + + + + + + + + + 0 + 0 + + + + + true + + + + + ogr + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 0 + name + + + + + + + + + + + 0 + tablayout + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 0 + name + + + + + + + + + + + 0 + tablayout + + + + + + + + + + + + 1 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ../../../../../.. + + 0 + + + 0 + generatedlayout + + + + + + + "name" + + + + + -19619892.68012013286352158 + -10327100.34232237376272678 + 19972134.91854240000247955 + 18415866.31293442100286484 + + country20170328164317226 + ./helloworld_country.shp + + + + Country_Diagrams + + + PROJCS["WGS 84 / Pseudo-Mercator",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]],PROJECTION["Mercator_1SP"],PARAMETER["central_meridian",0],PARAMETER["scale_factor",1],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AXIS["X",EAST],AXIS["Y",NORTH],EXTENSION["PROJ4","+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"],AUTHORITY["EPSG","3857"]] + +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs + 3857 + 3857 + EPSG:3857 + WGS 84 / Pseudo-Mercator + merc + WGS84 + false + + + + + + + + + + + + + + + + + 0 + 0 + + + + + true + + + + + ogr + + + + + + + + + + + 1 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + 0 + generatedlayout + + + + name + + + + + -29.99999999999666755 + 29.99999999999666755 + 0.00000000000333245 + 59.99999999999666755 + + dem20150730091219559 + ./dem.tif + + + + dem + + + GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]] + +proj=longlat +datum=WGS84 +no_defs + 3452 + 4326 + EPSG:4326 + WGS 84 + longlat + WGS84 + true + + + + + + + + + + + + + + + + + 0 + 0 + + + + + true + + + + + gdal + + + + + + + + 1 + 1 + 0 + + + + + + + + + None + WholeRaster + Estimated + 0.02 + 0.98 + 2 + + + 6 + 1912 + StretchToMinimumMaximum + + + + + + + 0 + + + + -14746250.07513097859919071 + -112075.42807669920148328 + 11342200.07719692215323448 + 10914413.7141284141689539 + + hello20131022151106574 + ./helloworld_hello.shp + + + + Hello + + + PROJCS["WGS 84 / Pseudo-Mercator",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]],PROJECTION["Mercator_1SP"],PARAMETER["central_meridian",0],PARAMETER["scale_factor",1],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AXIS["X",EAST],AXIS["Y",NORTH],EXTENSION["PROJ4","+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"],AUTHORITY["EPSG","3857"]] + +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs + 3857 + 3857 + EPSG:3857 + WGS 84 / Pseudo-Mercator + merc + WGS84 + false + + + + + + + + + + + + + + + + + 0 + 0 + + + + + true + + + + + ogr + + + + + + + + + + + 1 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ../../../../../.. + + 0 + + + 0 + generatedlayout + + + + + + + + + + + + + + COALESCE( "pkuid", '<NULL>' ) + + + + + 1000 + 2000 + 1000 + 2000 + + points20150803121107046 + ./helloworld_points.shp + + + + db_point + + + PROJCS["WGS 84 / Pseudo-Mercator",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]],PROJECTION["Mercator_1SP"],PARAMETER["central_meridian",0],PARAMETER["scale_factor",1],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AXIS["X",EAST],AXIS["Y",NORTH],EXTENSION["PROJ4","+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"],AUTHORITY["EPSG","3857"]] + +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs + 3857 + 3857 + EPSG:3857 + WGS 84 / Pseudo-Mercator + merc + WGS84 + false + + + + + + + + + + + + + + + + + 0 + 0 + + + + + true + + + + + ogr + + + + + + + + + + + 1 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ../../../../../.. + + 0 + + + 0 + generatedlayout + + + + "name" + + + + + + + + + + + + + + + + + + + 255 + + + + + 1 + true + + + + 40 + 1 + to vertex + + to_vertex + to_vertex + + + enabled + enabled + + + country20131022151106556 + hello20131022151106574 + + + 40.000000 + 40.000000 + + + 1 + 1 + + advanced + + + 255 + 255 + 255 + 128 + 108 + 246 + 255 + + + + + + false + + + + + + WGS84 + + + m2 + meters + + + 50 + 16 + 30 + true + false + false + 0 + false + false + true + 0 + 255,0,0,255 + + + false + + + true + 2 + D + + + 3857 + +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs + EPSG:3857 + 1 + + + 1 + 2000 + 0 + 0 + 0 + 1 + 1 + days + + + + + + + + + dem20150730091219559 + + + + Hello_SubsetString_copy20160222085231770 + Hello_SubsetString_e829f18d_ef33_4bfd_883f_97c1d2dd50f9 + Hello_copy20150804164427541 + Hello_e995a3b8_79e4_4b73_8da1_82dc300b4b8c + country20131022151106556 + hello20131022151106574 + points20150803121107046 + + + 1 + 8 + 1 + 8 + 1 + 0 + 1 + + + + points20150803121107046 + + + points20150803121107046 + + + points20150803121107046 + + + + None + true + + QGIS + Stéphane Brunner + + + + EPSG:3857 + EPSG:4326 + + 1 + + -20609693.37008669599890709 + -11055006.82298868149518967 + 20961935.60850896313786507 + 19143772.79360072687268257 + + conditions unknown + 90 + + + + 1 + 5000 + 5000 + + 5 + false + + + + false + Simple test app. + true + QGIS Server test + 0 + + false + + + + + + + + false + + + + + false + + 5000 + + + + false + + + + + + + + + + + QGIS Server Hello World + + + + + + + + + + + + + 2000-01-01T00:00:00 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + points20150803121107046 + hello20131022151106574 + Hello_copy20150804164427541 + Hello_SubsetString_copy20160222085231770 + Hello_Project_SubsetString_copy20160223113949592 + dem20150730091219559 + country20131022151106556 + Country_copy20161127151800736 + country20170328164317226 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + points20150803121107046 + hello20131022151106574 + Hello_copy20150804164427541 + Hello_SubsetString_copy20160222085231770 + Hello_Project_SubsetString_copy20160223113949592 + dem20150730091219559 + country20131022151106556 + Country_copy20161127151800736 + country20170328164317226 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +