@jupytergis/schema 0.13.1 → 0.13.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- export * from '../../_interface/processing/centroids';
2
- export * from '../../_interface/processing/convexHull';
3
- export * from '../../_interface/processing/concaveHull';
4
1
  export * from '../../_interface/processing/buffer';
2
+ export * from '../../_interface/processing/convexHull';
5
3
  export * from '../../_interface/processing/dissolve';
4
+ export * from '../../_interface/processing/concaveHull';
6
5
  export * from '../../_interface/processing/boundingBoxes';
6
+ export * from '../../_interface/processing/centroids';
@@ -1,7 +1,7 @@
1
1
  //Generated automatically please don't modify directly
2
- export * from '../../_interface/processing/centroids';
3
- export * from '../../_interface/processing/convexHull';
4
- export * from '../../_interface/processing/concaveHull';
5
2
  export * from '../../_interface/processing/buffer';
3
+ export * from '../../_interface/processing/convexHull';
6
4
  export * from '../../_interface/processing/dissolve';
5
+ export * from '../../_interface/processing/concaveHull';
7
6
  export * from '../../_interface/processing/boundingBoxes';
7
+ export * from '../../_interface/processing/centroids';
@@ -1,2 +1,2 @@
1
- export type ProcessingType = 'Centroids' | 'ConvexHull' | 'ConcaveHull' | 'Buffer' | 'Dissolve' | 'BoundingBoxes';
1
+ export type ProcessingType = 'Buffer' | 'ConvexHull' | 'Dissolve' | 'ConcaveHull' | 'BoundingBoxes' | 'Centroids';
2
2
  export declare const processingList: string[];
@@ -1,8 +1,8 @@
1
1
  export const processingList = [
2
- 'Centroids',
3
- 'ConvexHull',
4
- 'ConcaveHull',
5
2
  'Buffer',
3
+ 'ConvexHull',
6
4
  'Dissolve',
5
+ 'ConcaveHull',
7
6
  'BoundingBoxes',
7
+ 'Centroids',
8
8
  ];
@@ -1,12 +1,14 @@
1
1
  [
2
2
  {
3
- "description": "Centroids",
4
- "name": "centroids",
5
- "operationParams": [],
6
- "label": "Centroids",
3
+ "description": "Buffer",
4
+ "name": "buffer",
5
+ "label": "Buffer",
6
+ "operationParams": [
7
+ "bufferDistance"
8
+ ],
7
9
  "operations": {
8
10
  "gdalFunction": "ogr2ogr",
9
- "sql": "SELECT ST_Centroid(geometry) AS geometry, * FROM \"{layerName}\""
11
+ "sql": "SELECT ST_Union(ST_Buffer(geometry, {bufferDistance})) AS geometry, * FROM \"{layerName}\""
10
12
  },
11
13
  "type": "vector"
12
14
  },
@@ -22,42 +24,29 @@
22
24
  "type": "vector"
23
25
  },
24
26
  {
25
- "description": "ConcaveHull",
26
- "name": "concaveHull",
27
- "operationParams": [
28
- "pctconvex",
29
- "allowHoles"
30
- ],
31
- "label": "Concave Hull",
32
- "operations": {
33
- "sql": "SELECT ST_ConcaveHull(geometry,{pctconvex},{allowHoles}) AS geometry, * FROM \"{layerName}\"",
34
- "gdalFunction": "ogr2ogr"
35
- },
36
- "type": "vector"
37
- },
38
- {
39
- "description": "Buffer",
40
- "name": "buffer",
41
- "label": "Buffer",
27
+ "description": "Dissolve",
28
+ "name": "dissolve",
42
29
  "operationParams": [
43
- "bufferDistance"
30
+ "dissolveField"
44
31
  ],
32
+ "label": "Dissolve",
45
33
  "operations": {
46
34
  "gdalFunction": "ogr2ogr",
47
- "sql": "SELECT ST_Union(ST_Buffer(geometry, {bufferDistance})) AS geometry, * FROM \"{layerName}\""
35
+ "sql": "SELECT ST_Union(geometry) AS geometry, {dissolveField} FROM \"{layerName}\" GROUP BY {dissolveField}"
48
36
  },
49
37
  "type": "vector"
50
38
  },
51
39
  {
52
- "description": "Dissolve",
53
- "name": "dissolve",
40
+ "description": "ConcaveHull",
41
+ "name": "concaveHull",
54
42
  "operationParams": [
55
- "dissolveField"
43
+ "pctconvex",
44
+ "allowHoles"
56
45
  ],
57
- "label": "Dissolve",
46
+ "label": "Concave Hull",
58
47
  "operations": {
59
- "gdalFunction": "ogr2ogr",
60
- "sql": "SELECT ST_Union(geometry) AS geometry, {dissolveField} FROM \"{layerName}\" GROUP BY {dissolveField}"
48
+ "sql": "SELECT ST_ConcaveHull(geometry,{pctconvex},{allowHoles}) AS geometry, * FROM \"{layerName}\"",
49
+ "gdalFunction": "ogr2ogr"
61
50
  },
62
51
  "type": "vector"
63
52
  },
@@ -71,5 +60,16 @@
71
60
  "gdalFunction": "ogr2ogr"
72
61
  },
73
62
  "type": "vector"
63
+ },
64
+ {
65
+ "description": "Centroids",
66
+ "name": "centroids",
67
+ "operationParams": [],
68
+ "label": "Centroids",
69
+ "operations": {
70
+ "gdalFunction": "ogr2ogr",
71
+ "sql": "SELECT ST_Centroid(geometry) AS geometry, * FROM \"{layerName}\""
72
+ },
73
+ "type": "vector"
74
74
  }
75
75
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupytergis/schema",
3
- "version": "0.13.1",
3
+ "version": "0.13.2",
4
4
  "description": "A JupyterGIS schema package.",
5
5
  "keywords": [
6
6
  "jupytergis"