{
    "featureType": {
        "name": "import_bug_fail",
        "nativeName": "import_bug_fail",
        "namespace": {
            "name": "dashboard",
            "href": "http://fractal007.dhcp.meraka.csir.co.za/geoserver/rest/namespaces/dashboard.json"
        },
        "title": "import_bug_fail",
        "abstract": "This layer definition can be used to reproduce a Geoserver REST bug that presents when a featuretype with multiple geometry columns is imported via an HTTP PUSH with a JSON payload.",
        "keywords": {
            "string": [
                "features",
                "import_bug_fail"
            ]
        },
        "nativeCRS": "GEOGCS[\"WGS 84\", \n  DATUM[\"World Geodetic System 1984\", \n    SPHEROID[\"WGS 84\", 6378137.0, 298.257223563, AUTHORITY[\"EPSG\",\"7030\"]], \n    AUTHORITY[\"EPSG\",\"6326\"]], \n  PRIMEM[\"Greenwich\", 0.0, AUTHORITY[\"EPSG\",\"8901\"]], \n  UNIT[\"degree\", 0.017453292519943295], \n  AXIS[\"Geodetic longitude\", EAST], \n  AXIS[\"Geodetic latitude\", NORTH], \n  AUTHORITY[\"EPSG\",\"4326\"]]",
        "srs": "EPSG:4326",
        "nativeBoundingBox": {
            "minx": -1,
            "maxx": 0,
            "miny": -1,
            "maxy": 0,
            "crs": "EPSG:4326"
        },
        "latLonBoundingBox": {
            "minx": -180,
            "maxx": 180,
            "miny": -90,
            "maxy": 90,
            "crs": "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]]"
        },
        "projectionPolicy": "FORCE_DECLARED",
        "enabled": true,
        "metadata": {
            "entry": {
                "@key": "JDBC_VIRTUAL_TABLE",
                "virtualTable": {
                    "name": "import_bug_fail",
                    "sql": "SELECT polygon_id, the_geom, ST_CENTROID(the_geom) FROM af_cluster WHERE polygon_id = %id%\n",
                    "escapeSql": false,
                    "keyColumn": "polygon_id",
			"geometry": [
			    {
				"name": "centroid",
				"type": "Point",
				"srid": 4326
			    },
			    {
				"name": "the_geom",
				"type": "Polygon",
				"srid": 4326
			    }
			],
                    "parameter": {
                        "name": "id",
                        "defaultValue": 0,
                        "regexpValidator": "^\\d+$"
                    }
                }
            }
        },
        "store": {
            "@class": "dataStore",
            "name": "postgresql-docker",
            "href": "http://fractal007.dhcp.meraka.csir.co.za/geoserver/rest/workspaces/dashboard/datastores/postgresql-docker.json"
        },
        "maxFeatures": 0,
        "numDecimals": 0,
        "attributes": {
            "attribute": [
                {
                    "name": "the_geom",
                    "minOccurs": 0,
                    "maxOccurs": 1,
                    "nillable": true,
                    "binding": "com.vividsolutions.jts.geom.Polygon"
                },
                {
                    "name": "st_centroid",
                    "minOccurs": 0,
                    "maxOccurs": 1,
                    "nillable": true,
                    "binding": "com.vividsolutions.jts.geom.Point"
                }
            ]
        }
    }
}
