[Mapbender-commits] r9201 - trunk/mapbender/conf

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu May 21 05:26:46 PDT 2015


Author: syed
Date: 2015-05-21 05:26:46 -0700 (Thu, 21 May 2015)
New Revision: 9201

Added:
   trunk/mapbender/conf/attributeCategories-Schema.json
   trunk/mapbender/conf/pointType-Schema.json
   trunk/mapbender/conf/polygonType-Schema.json
   trunk/mapbender/conf/polylineType-Schema.json
Log:
add json-schemata for categories and feature attributes

Added: trunk/mapbender/conf/attributeCategories-Schema.json
===================================================================
--- trunk/mapbender/conf/attributeCategories-Schema.json	                        (rev 0)
+++ trunk/mapbender/conf/attributeCategories-Schema.json	2015-05-21 12:26:46 UTC (rev 9201)
@@ -0,0 +1,52 @@
+{
+    "categories": {
+        "Fix-Data": "Fix-Data",
+        "Editable-Data": "Editable-Data",
+        "Style-Data": "Style-Data",
+        "Custom-Data": "Custom-Data"
+    }
+}
+
+
+{
+  "$schema": "http://json-schema.org/draft-04/schema#",
+  "id": "/",
+  "type": "object",
+  "properties": {
+    "categories": {
+      "id": "categories",
+      "type": "array",
+      "items": [
+        {
+          "id": "0",
+          "type": "string",
+          "default": "Fix-Data"
+        },
+        {
+          "id": "1",
+          "type": "string",
+          "default": "Editable-Data"
+        },
+        {
+          "id": "2",
+          "type": "string",
+          "default": "Style-Data"
+        },
+        {
+          "id": "3",
+          "type": "string",
+          "default": "Custom-Data"
+        }
+      ],
+      "required": [
+        "0",
+        "1",
+        "2",
+        "3"
+      ]
+    }
+  },
+  "required": [
+    "categories"
+  ]
+}

Added: trunk/mapbender/conf/pointType-Schema.json
===================================================================
--- trunk/mapbender/conf/pointType-Schema.json	                        (rev 0)
+++ trunk/mapbender/conf/pointType-Schema.json	2015-05-21 12:26:46 UTC (rev 9201)
@@ -0,0 +1,259 @@
+// {
+//     "Point": {
+//         "created": {
+//             "category": "Fix-Data",
+//             "value": ""
+//         },
+//         "description": {
+//             "category": "Editable-Data",
+//             "value": "description"
+//         },
+//         "iconOffsetX": {
+//             "category": "Style-Data",
+//             "value": -10
+//         },
+//         "iconOffsetY": {
+//             "category": "Style-Data",
+//             "value": -10
+//         },
+//         "marker-color": {
+//             "category": "Style-Data",
+//             "value": "#7e7e7e"
+//         },
+//         "marker-size": {
+//             "category": "Style-Data",
+//             "value": 34
+//         },
+//         "marker-symbol": {
+//             "category": "Style-Data",
+//             "value": "marker"
+//         },
+//         "name": {
+//             "category": "Editable-Data",
+//             "value": "name"
+//         },
+//         "title": {
+//             "category": "Editable-Data",
+//             "value": "title"
+//         },
+//         "updated": {
+//             "category": "Fix-Data",
+//             "value": ""
+//         },
+//         "uuid": {
+//             "category": "Fix-Data",
+//             "value": -10
+//         }
+//     }
+// }
+
+
+{
+  "$schema": "http://json-schema.org/draft-04/schema#",
+  "id": "/",
+  "type": "object",
+  "properties": {
+    "Point": {
+      "id": "Point",
+      "type": "object",
+      "properties": {
+        "created": {
+          "id": "created",
+          "type": "object",
+          "properties": {
+            "category": {
+              "id": "category",
+              "type": "string",
+              "default": "Fix-Data"
+            },
+            "value": {
+              "id": "value",
+              "type": "string",
+              "default": ""
+            }
+          },
+          "required": [
+            "category",
+            "value"
+          ]
+        },
+        "description": {
+          "id": "description",
+          "type": "object",
+          "properties": {
+            "category": {
+              "id": "category",
+              "type": "string",
+              "default": "Editable-Data"
+            },
+            "value": {
+              "id": "value",
+              "type": "string",
+              "default": "description"
+            }
+          }
+        },
+        "iconOffsetX": {
+          "id": "iconOffsetX",
+          "type": "object",
+          "properties": {
+            "category": {
+              "id": "category",
+              "type": "string",
+              "default": "Style-Data"
+            },
+            "value": {
+              "id": "value",
+              "type": "integer",
+              "default": -10
+            }
+          }
+        },
+        "iconOffsetY": {
+          "id": "iconOffsetY",
+          "type": "object",
+          "properties": {
+            "category": {
+              "id": "category",
+              "type": "string",
+              "default": "Style-Data"
+            },
+            "value": {
+              "id": "value",
+              "type": "integer",
+              "default": -10
+            }
+          }
+        },
+        "marker-color": {
+          "id": "marker-color",
+          "type": "object",
+          "properties": {
+            "category": {
+              "id": "category",
+              "type": "string",
+              "default": "Style-Data"
+            },
+            "value": {
+              "id": "value",
+              "type": "string",
+              "default": "#7e7e7e"
+            }
+          }
+        },
+        "marker-size": {
+          "id": "marker-size",
+          "type": "object",
+          "properties": {
+            "category": {
+              "id": "category",
+              "type": "string",
+              "default": "Style-Data"
+            },
+            "value": {
+              "id": "value",
+              "type": "integer",
+              "default": 34
+            }
+          }
+        },
+        "marker-symbol": {
+          "id": "marker-symbol",
+          "type": "object",
+          "properties": {
+            "category": {
+              "id": "category",
+              "type": "string",
+              "default": "Style-Data"
+            },
+            "value": {
+              "id": "value",
+              "type": "string",
+              "default": "marker"
+            }
+          }
+        },
+        "name": {
+          "id": "name",
+          "type": "object",
+          "properties": {
+            "category": {
+              "id": "category",
+              "type": "string",
+              "default": "Editable-Data"
+            },
+            "value": {
+              "id": "value",
+              "type": "string",
+              "default": "name"
+            }
+          }
+        },
+        "title": {
+          "id": "title",
+          "type": "object",
+          "properties": {
+            "category": {
+              "id": "category",
+              "type": "string",
+              "default": "Editable-Data"
+            },
+            "value": {
+              "id": "value",
+              "type": "string",
+              "default": "title"
+            }
+          }
+        },
+        "updated": {
+          "id": "updated",
+          "type": "object",
+          "properties": {
+            "category": {
+              "id": "category",
+              "type": "string",
+              "default": "Fix-Data"
+            },
+            "value": {
+              "id": "value",
+              "type": "string",
+              "default": ""
+            }
+          }
+        },
+        "uuid": {
+          "id": "uuid",
+          "type": "object",
+          "properties": {
+            "category": {
+              "id": "category",
+              "type": "string",
+              "default": "Fix-Data"
+            },
+            "value": {
+              "id": "value",
+              "type": "integer",
+              "default": -10
+            }
+          }
+        }
+      },
+      "required": [
+        "created",
+        "description",
+        "iconOffsetX",
+        "iconOffsetY",
+        "marker-color",
+        "marker-size",
+        "marker-symbol",
+        "name",
+        "title",
+        "updated",
+        "uuid"
+      ]
+    }
+  },
+  "required": [
+    "Point"
+  ]
+}

Added: trunk/mapbender/conf/polygonType-Schema.json
===================================================================
--- trunk/mapbender/conf/polygonType-Schema.json	                        (rev 0)
+++ trunk/mapbender/conf/polygonType-Schema.json	2015-05-21 12:26:46 UTC (rev 9201)
@@ -0,0 +1,301 @@
+// {
+//     "Polygon": {
+//         "created": {
+//             "category": "Fix-Data",
+//             "value": ""
+//         },
+//         "description": {
+//             "category": "Editable-Data",
+//             "value": "description"
+//         },
+//         "fill": {
+//             "category": "Style-Data",
+//             "value": "#555555"
+//         },
+//         "fill-opacity": {
+//             "category": "Style-Data",
+//             "value": 0.5
+//         },
+//         "marker-size": {
+//             "category": "Style-Data",
+//             "value": 34
+//         },
+//         "marker-symbol": {
+//             "category": "Style-Data",
+//             "value": "marker"
+//         },
+//         "name": {
+//             "category": "Editable-Data",
+//             "value": "name"
+//         },
+//         "stroke": {
+//             "category": "Style-Data",
+//             "value": "#555555"
+//         },
+//         "stroke-opacity": {
+//             "category": "Style-Data",
+//             "value": 1.0
+//         },
+//         "stroke-width": {
+//             "category": "Style-Data",
+//             "value": 2
+//         },
+//         "title": {
+//             "category": "Editable-Data",
+//             "value": "title"
+//         },
+//         "updated": {
+//             "category": "Fix-Data",
+//             "value": ""
+//         },
+//         "uuid": {
+//             "category": "Fix-Data",
+//             "value": -10
+//         }
+//     }
+// }
+
+
+{
+  "$schema": "http://json-schema.org/draft-04/schema#",
+  "id": "/",
+  "type": "object",
+  "properties": {
+    "Polygon": {
+      "id": "Polygon",
+      "type": "object",
+      "properties": {
+        "created": {
+          "id": "created",
+          "type": "object",
+          "properties": {
+            "category": {
+              "id": "category",
+              "type": "string",
+              "default": "Fix-Data"
+            },
+            "value": {
+              "id": "value",
+              "type": "string",
+              "default": ""
+            }
+          },
+          "required": [
+            "category",
+            "value"
+          ]
+        },
+        "description": {
+          "id": "description",
+          "type": "object",
+          "properties": {
+            "category": {
+              "id": "category",
+              "type": "string",
+              "default": "Editable-Data"
+            },
+            "value": {
+              "id": "value",
+              "type": "string",
+              "default": "description"
+            }
+          }
+        },
+        "fill": {
+          "id": "fill",
+          "type": "object",
+          "properties": {
+            "category": {
+              "id": "category",
+              "type": "string",
+              "default": "Style-Data"
+            },
+            "value": {
+              "id": "value",
+              "type": "string",
+              "default": "#555555"
+            }
+          }
+        },
+        "fill-opacity": {
+          "id": "fill-opacity",
+          "type": "object",
+          "properties": {
+            "category": {
+              "id": "category",
+              "type": "string",
+              "default": "Style-Data"
+            },
+            "value": {
+              "id": "value",
+              "type": "number",
+              "default": 0.5
+            }
+          }
+        },
+        "marker-size": {
+          "id": "marker-size",
+          "type": "object",
+          "properties": {
+            "category": {
+              "id": "category",
+              "type": "string",
+              "default": "Style-Data"
+            },
+            "value": {
+              "id": "value",
+              "type": "integer",
+              "default": 34
+            }
+          }
+        },
+        "marker-symbol": {
+          "id": "marker-symbol",
+          "type": "object",
+          "properties": {
+            "category": {
+              "id": "category",
+              "type": "string",
+              "default": "Style-Data"
+            },
+            "value": {
+              "id": "value",
+              "type": "string",
+              "default": "marker"
+            }
+          }
+        },
+        "name": {
+          "id": "name",
+          "type": "object",
+          "properties": {
+            "category": {
+              "id": "category",
+              "type": "string",
+              "default": "Editable-Data"
+            },
+            "value": {
+              "id": "value",
+              "type": "string",
+              "default": "name"
+            }
+          }
+        },
+        "stroke": {
+          "id": "stroke",
+          "type": "object",
+          "properties": {
+            "category": {
+              "id": "category",
+              "type": "string",
+              "default": "Style-Data"
+            },
+            "value": {
+              "id": "value",
+              "type": "string",
+              "default": "#555555"
+            }
+          }
+        },
+        "stroke-opacity": {
+          "id": "stroke-opacity",
+          "type": "object",
+          "properties": {
+            "category": {
+              "id": "category",
+              "type": "string",
+              "default": "Style-Data"
+            },
+            "value": {
+              "id": "value",
+              "type": "integer",
+              "default": 1
+            }
+          }
+        },
+        "stroke-width": {
+          "id": "stroke-width",
+          "type": "object",
+          "properties": {
+            "category": {
+              "id": "category",
+              "type": "string",
+              "default": "Style-Data"
+            },
+            "value": {
+              "id": "value",
+              "type": "integer",
+              "default": 2
+            }
+          }
+        },
+        "title": {
+          "id": "title",
+          "type": "object",
+          "properties": {
+            "category": {
+              "id": "category",
+              "type": "string",
+              "default": "Editable-Data"
+            },
+            "value": {
+              "id": "value",
+              "type": "string",
+              "default": "title"
+            }
+          }
+        },
+        "updated": {
+          "id": "updated",
+          "type": "object",
+          "properties": {
+            "category": {
+              "id": "category",
+              "type": "string",
+              "default": "Fix-Data"
+            },
+            "value": {
+              "id": "value",
+              "type": "string",
+              "default": ""
+            }
+          }
+        },
+        "uuid": {
+          "id": "uuid",
+          "type": "object",
+          "properties": {
+            "category": {
+              "id": "category",
+              "type": "string",
+              "default": "Fix-Data"
+            },
+            "value": {
+              "id": "value",
+              "type": "integer",
+              "default": -10
+            }
+          }
+        }
+      },
+      "required": [
+        "created",
+        "description",
+        "fill",
+        "fill-opacity",
+        "marker-size",
+        "marker-symbol",
+        "name",
+        "stroke",
+        "stroke-opacity",
+        "stroke-width",
+        "title",
+        "updated",
+        "uuid"
+      ]
+    }
+  },
+  "required": [
+    "Polygon"
+  ]
+}

Added: trunk/mapbender/conf/polylineType-Schema.json
===================================================================
--- trunk/mapbender/conf/polylineType-Schema.json	                        (rev 0)
+++ trunk/mapbender/conf/polylineType-Schema.json	2015-05-21 12:26:46 UTC (rev 9201)
@@ -0,0 +1,258 @@
+// {
+//     "Polygon": {
+//         "created": {
+//             "category": "Fix-Data",
+//             "value": ""
+//         },
+//         "description": {
+//             "category": "Editable-Data",
+//             "value": "description"
+//         },
+//         "marker-size": {
+//             "category": "Style-Data",
+//             "value": 34
+//         },
+//         "marker-symbol": {
+//             "category": "Style-Data",
+//             "value": "marker"
+//         },
+//         "name": {
+//             "category": "Editable-Data",
+//             "value": "name"
+//         },
+//         "stroke": {
+//             "category": "Style-Data",
+//             "value": "#555555"
+//         },
+//         "stroke-opacity": {
+//             "category": "Style-Data",
+//             "value": 1.0
+//         },
+//         "stroke-width": {
+//             "category": "Style-Data",
+//             "value": 2
+//         },
+//         "title": {
+//             "category": "Editable-Data",
+//             "value": "title"
+//         },
+//         "updated": {
+//             "category": "Fix-Data",
+//             "value": ""
+//         },
+//         "uuid": {
+//             "category": "Fix-Data",
+//             "value": -10
+//         }
+//     }
+// }
+
+{
+  "$schema": "http://json-schema.org/draft-04/schema#",
+  "id": "/",
+  "type": "object",
+  "properties": {
+    "Polyline": {
+      "id": "Polyline",
+      "type": "object",
+      "properties": {
+        "created": {
+          "id": "created",
+          "type": "object",
+          "properties": {
+            "category": {
+              "id": "category",
+              "type": "string",
+              "default": "Fix-Data"
+            },
+            "value": {
+              "id": "value",
+              "type": "string",
+              "default": ""
+            }
+          },
+          "required": [
+            "category",
+            "value"
+          ]
+        },
+        "description": {
+          "id": "description",
+          "type": "object",
+          "properties": {
+            "category": {
+              "id": "category",
+              "type": "string",
+              "default": "Editable-Data"
+            },
+            "value": {
+              "id": "value",
+              "type": "string",
+              "default": "description"
+            }
+          }
+        },
+        "marker-size": {
+          "id": "marker-size",
+          "type": "object",
+          "properties": {
+            "category": {
+              "id": "category",
+              "type": "string",
+              "default": "Style-Data"
+            },
+            "value": {
+              "id": "value",
+              "type": "integer",
+              "default": 34
+            }
+          }
+        },
+        "marker-symbol": {
+          "id": "marker-symbol",
+          "type": "object",
+          "properties": {
+            "category": {
+              "id": "category",
+              "type": "string",
+              "default": "Style-Data"
+            },
+            "value": {
+              "id": "value",
+              "type": "string",
+              "default": "marker"
+            }
+          }
+        },
+        "name": {
+          "id": "name",
+          "type": "object",
+          "properties": {
+            "category": {
+              "id": "category",
+              "type": "string",
+              "default": "Editable-Data"
+            },
+            "value": {
+              "id": "value",
+              "type": "string",
+              "default": "name"
+            }
+          }
+        },
+        "stroke": {
+          "id": "stroke",
+          "type": "object",
+          "properties": {
+            "category": {
+              "id": "category",
+              "type": "string",
+              "default": "Style-Data"
+            },
+            "value": {
+              "id": "value",
+              "type": "string",
+              "default": "#555555"
+            }
+          }
+        },
+        "stroke-opacity": {
+          "id": "stroke-opacity",
+          "type": "object",
+          "properties": {
+            "category": {
+              "id": "category",
+              "type": "string",
+              "default": "Style-Data"
+            },
+            "value": {
+              "id": "value",
+              "type": "integer",
+              "default": 1
+            }
+          }
+        },
+        "stroke-width": {
+          "id": "stroke-width",
+          "type": "object",
+          "properties": {
+            "category": {
+              "id": "category",
+              "type": "string",
+              "default": "Style-Data"
+            },
+            "value": {
+              "id": "value",
+              "type": "integer",
+              "default": 2
+            }
+          }
+        },
+        "title": {
+          "id": "title",
+          "type": "object",
+          "properties": {
+            "category": {
+              "id": "category",
+              "type": "string",
+              "default": "Editable-Data"
+            },
+            "value": {
+              "id": "value",
+              "type": "string",
+              "default": "title"
+            }
+          }
+        },
+        "updated": {
+          "id": "updated",
+          "type": "object",
+          "properties": {
+            "category": {
+              "id": "category",
+              "type": "string",
+              "default": "Fix-Data"
+            },
+            "value": {
+              "id": "value",
+              "type": "string",
+              "default": ""
+            }
+          }
+        },
+        "uuid": {
+          "id": "uuid",
+          "type": "object",
+          "properties": {
+            "category": {
+              "id": "category",
+              "type": "string",
+              "default": "Fix-Data"
+            },
+            "value": {
+              "id": "value",
+              "type": "integer",
+              "default": -10
+            }
+          }
+        }
+      },
+      "required": [
+        "created",
+        "description",
+        "marker-size",
+        "marker-symbol",
+        "name",
+        "stroke",
+        "stroke-opacity",
+        "stroke-width",
+        "title",
+        "updated",
+        "uuid"
+      ]
+    }
+  },
+  "required": [
+    "Polyline"
+  ]
+}



More information about the Mapbender_commits mailing list