planetfederal / qgis-suite-plugin

GNU General Public License v2.0
25 stars 17 forks source link

Adding Catalogue fails on non-enabled layers #134

Open pramsey opened 10 years ago

pramsey commented 10 years ago

If one of the layers in the catalogue is, for example, a postgis layer that points to a postgresql that is not online itself, the layer will not be enabled, and the routine queries the plugin makes of it during the process of adding a new catalogue will fail, something like

http://localhost:8080/geoserver/rest/workspaces/opengeo/datastores/postgis/featuretypes/geonames.xml]: \n geonames\n geonames\n \n opengeo\n \n \n \n \n features\n geonames\n \n EPSG:4326\n \n -136.839401245117\n 0.680793046951294\n 24.3944263458252\n 57.8079147338867\n \n \n -136.839401245117\n 0.680793046951294\n 24.3944263458252\n 57.8079147338867\n GEOGCS["WGS84(DD)", \n DATUM["WGS84", \n SPHEROID["WGS84", 6378137.0, 298.257223563]], \n PRIMEM["Greenwich", 0.0], \n UNIT["degree", 0.017453292519943295], \n AXIS["Geodetic longitude", EAST], \n AXIS["Geodetic latitude", NORTH]]\n \n FORCE_DECLARED\n true\n \n \n \n geonames\n SELECT id, name, geom \nFROM geonames \nWHERE \n to_tsvector('english', name) @@ \n to_tsquery('english', regexp_replace(trim('%word%'), E'\s+', '&', 'g'))\n false\n \n geom\n Geometry\n -1\n \n \n word\n ^[\w\d\s]+$\n \n \n \n \n \n postgis\n \n \n 0\n 0\n