﻿{"id":6609,"date":"2018-10-09T04:31:16","date_gmt":"2018-10-09T02:31:16","guid":{"rendered":"http:\/\/www.sigterritoires.fr\/?p=6609"},"modified":"2018-10-17T12:00:59","modified_gmt":"2018-10-17T10:00:59","slug":"the-geoserver-explorer-plugin-for-qgis-2-limitations","status":"publish","type":"post","link":"https:\/\/www.sigterritoires.fr\/index.php\/en\/the-geoserver-explorer-plugin-for-qgis-2-limitations\/","title":{"rendered":"The Geoserver Explorer plugin for QGis ( 2): limitations"},"content":{"rendered":"\n<p>Continuing the following article: The Geoserver\nExplorer plugin QGis (1) installation and configuration, we will discuss\nthe\nlimitations of the plugin. <\/p>\n\n\n\n<p><strong>Limitations of the plugin<\/strong>\n<\/p>\n\n\n\n<p>Here is a list\nof limitations and problems likely\nto come up. <\/p>\n\n\n\n<p><strong>Limitations<\/strong> <strong>related<\/strong> <strong>to the <a href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/qgis-projections-crs\/\">SRC<\/a>.<\/strong>\nGeoServer\ncan\nexperience\nproblems when a custom SRC system\nis\nbeing used by QGIS. The SRC definition that works\ncorrectly\nwhen\nrendering the QGIS layer, may not work when importing the layer\nto\nGeoServer\n. Usually this results in a layer\nthat is published but that does not have a SRC set\nand it is not activated. You can correct\nit\nmanually\nby\nselecting\nthe layer in the Explorer tree\nand\namending\nits CRS. <\/p>\n\n\n\n<p>Note that the layers are imported\nby\nusing\nthe SRC defined in the original data source\n(i.e.,\nthe file prj if you\nuse\na\n<a href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/shapefile-vs-geopackage\/\">shapefile<\/a>).\nDefining\na different SRC by using the option <strong>Set Layer CRS<\/strong>\nin\nthe QGIS table of contents will not have any effect when\nimporting the layer to GeoServer , except\nif\nyou\nsave\nthe layer with this SRC so that the SRC definition is stored\nwith the data layer. <\/p>\n\n\n\n<p><strong>Limitations<\/strong> <strong>related<\/strong> <strong>to the<\/strong>\n<strong>layers<\/strong> <strong>names.<\/strong>\nGeoServer\nExplorer uses the GeoServer REST API to get the list of layers in the catalogue.\nThe REST API describes the layers without working space,\nwhich means that if you have\ntwo\nlayers with the same name and in different workspaces\n(for example , <em>ws1:<\/em> <em>macouche<\/em> and <em>ws2:<\/em> <em>macouche<\/em> ),\nthey will be displayed just\nas one ( <em>macouche<\/em> in this\ncase\n). <\/p>\n\n\n\n<p>When this is the case, the\nsituation is ambiguous and GeoServer\nExplorer cannot differentiate the layers depicting the same name but\nbelonging\nto different workspaces. The layer, as described by the\nREST API, is added to the explorer tree,\nbut it represents only one of several layers that share the\nsame name. To denote this special situation, the layer is\ndisplayed\nwith a warning icon, and a warning message appears\nin\nthe layer description. <\/p>\n\n\n\n<p><strong>Style limitations<\/strong>\n<\/p>\n\n\n\n<p>Another important\nlimitation is due to the different\nversions of the SLD supported by QGIS and GeoServer . <br\/>\nThe\nGeoServer explorer\nallows to edit the style of a\nlayer\nGeoServer\ndirectly\nfrom the QGIS interface. It can\nconvert\na defined QGIS style into a downloaded from the GeoServer\ncatalogue and use GeoServer styles for the QGIS layers. This\ntwo-way conversion is, however,\nlimited.\nThis is, mainly, due\nto the different versions of SLD supported by QGIS and GeoServer , as well as\nto\nsome\nGeoServer and QGIS limitations. SLD is in use\nas\na common format by GeoServer Explorer to describe the styles in the QGIS and\nGeoServer layers, but some incompatibilities\nexist. To increase the compatibility between them, specific\nroutines have been added\nto the explorer GeoServer . However,\nin some case, a defined style\nin\nQGIS may not be compatible with the elements supported\nby GeoServer explorer , and the publication of a layer\nwill be executed with a modified style , or even\nby\nusing\na default style. <\/p>\n\n\n\n<p>This problem exists even\nwhen\nusing the latest version of GeoServer, but older versions of GeoServer\ncan\npresent\nmore incompatibilities and do not validate\na\ngreat\npart\nof the SLD produced by the GeoServer explorer. <\/p>\n\n\n\n<p>As a general rule, the basic style\nfor vector layers should operate\nwithout problems in both ways,\nbut a more complex symbology\nwill\nbe\npartially\nor\ncompletely\ninconsistent, leading to differences between, for example, the style you\nset\nin\nQGIS and the style that the GeoServer layer will depict. Raster\nlayers have a more limited support. <\/p>\n\n\n\n<p>Incidentally, I had to set a style for a QGis project and\nload it into Geoserver with the plugin.\nThe style was correct for GeoServer (what\ncan be double checked with the option Layers Preview). But when\nwe tried to reload the layer into QGis, the style was not accepted\nby QGis&#8230; <\/p>\n\n\n\n<p>Here is a list\nof acknowledged limitations for the LTC management:\n<\/p>\n\n\n\n<p><strong>Raster layers<\/strong> <\/p>\n\n\n\n<p>The raster style is taken in\ncharge only from QGIS towards GeoServer . It\nmeans\nthat\na raster style can be created\nby\nusing\nthe\nQGIS user interface and downloaded towards GeoServer,\nbut a raster style from GeoServer cannot be used\nfor a QGIS layer . When a GeoServer\nlayer\nis added to an ongoing QGIS project with the assistance of GeoServer Explorer,\nits symbology will be used only\n\u00a0if it is\na\nvector\nlayer, but will be ignored in the case of a\nraster\nlayer and the default QGIS style will be used . <br\/>\nOnly\npseudo colour <em>Single Band<\/em> <em>Gray<\/em> and\n<em>Singleband<\/em> are used.\nIn\nthis\nlatter\ncase,\nthe correct colour interpolation is not supported, but the\nmodes <em>Linear<\/em> and <em>Discrete<\/em> are employed.<\/p>\n\n\n\n<p>The use of the plugin is a\nvery interesting alternative in relation to the <a href=\"https:\/\/translate.google.com\/translate?hl=en&amp;prev=_t&amp;sl=auto&amp;tl=en&amp;u=https:\/\/www.geomatick.com\/2017\/06\/24\/qgis-fusion-redimensionnement-et-masque-de-rasters-dans-qgis-et-publication-du-geotiff-dans-geoserver\/\">classic\nloading process of a <\/a>\u00a0<a href=\"https:\/\/translate.google.com\/translate?hl=en&amp;prev=_t&amp;sl=auto&amp;tl=en&amp;u=https:\/\/www.geomatick.com\/2017\/06\/24\/qgis-fusion-redimensionnement-et-masque-de-rasters-dans-qgis-et-publication-du-geotiff-dans-geoserver\/\">Geoserver<\/a> style .\n<\/p>\n\n\n\n<p><strong>Vector<\/strong> <strong>layers<\/strong> <\/p>\n\n\n\n<p>When converting a GeoServer style into\na\nQGIS style, the style is always defined\nas\na style based on rules. This means\nthat even if the style is created using a different\ntype, such as <em>graduated<\/em> when it is downloaded into\na GeoServer catalogue and re-modified from QGIS it\nwill\nnot appear as a <em>Graduate<\/em> style. This is due to the way QGIS includes\nthe LTC styles, by, always, interpreting always as\na\nRule-based\ntype symbology. <br\/>\nBasic\nlabelling is employed, but all\nlabels (labels) will not be exported QGIS to LTC and downloaded GeoServer.\nIn\nparticular,\nthe advanced labelling is dependent on the\ndata is not used. <br\/>\nImporting\na\npoints\nlayer with a QGIS SVG style towards Geoserver generates\na\nWMS\nlayer that respects this SVG symbol.\nThe same is not supported for the time being if the layer is\nreimported\nas\na WFS layer . <\/p>\n\n\n\n<p>In the next article we will discuss how to use the Geoserver\nExplorer plugin . <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Continuing the following article: The Geoserver Explorer plugin QGis (1) installation and configuration, we will discuss the limitations of the plugin. Limitations of the plugin Here is a list of limitations and problems likely to come&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"give_campaign_id":0,"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"sfsi_plus_gutenberg_text_before_share":"","sfsi_plus_gutenberg_show_text_before_share":"","sfsi_plus_gutenberg_icon_type":"","sfsi_plus_gutenberg_icon_alignemt":"","sfsi_plus_gutenburg_max_per_row":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1260],"tags":[],"class_list":["post-6609","post","type-post","status-publish","format-standard","hentry","category-non-classe-en"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p6XU0A-1IB","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/6609","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/comments?post=6609"}],"version-history":[{"count":0,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/6609\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/media?parent=6609"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/categories?post=6609"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/tags?post=6609"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}