@jupytergis/base 0.6.1 → 0.6.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.
- package/lib/processing/index.js +4 -3
- package/package.json +5 -5
package/lib/processing/index.js
CHANGED
|
@@ -121,6 +121,7 @@ export async function executeSQLProcessing(model, geojsonString, gdalFunction, o
|
|
|
121
121
|
const processedBytes = await Gdal.getFileBytes(outputFilePath);
|
|
122
122
|
const processedGeoJSONString = new TextDecoder().decode(processedBytes);
|
|
123
123
|
Gdal.close(dataset);
|
|
124
|
+
const layerName = `${layerNamePrefix} ${processingType.charAt(0).toUpperCase() + processingType.slice(1)}`;
|
|
124
125
|
if (!embedOutputLayer) {
|
|
125
126
|
// Save the output as a file
|
|
126
127
|
const jgisFilePath = (_a = tracker.currentWidget) === null || _a === void 0 ? void 0 : _a.model.filePath;
|
|
@@ -146,7 +147,7 @@ export async function executeSQLProcessing(model, geojsonString, gdalFunction, o
|
|
|
146
147
|
type: 'VectorLayer',
|
|
147
148
|
parameters: { source: newSourceId },
|
|
148
149
|
visible: true,
|
|
149
|
-
name:
|
|
150
|
+
name: layerName,
|
|
150
151
|
};
|
|
151
152
|
model.sharedModel.addSource(newSourceId, sourceModel);
|
|
152
153
|
model.addLayer(UUID.uuid4(), layerModel);
|
|
@@ -157,14 +158,14 @@ export async function executeSQLProcessing(model, geojsonString, gdalFunction, o
|
|
|
157
158
|
const newSourceId = UUID.uuid4();
|
|
158
159
|
const sourceModel = {
|
|
159
160
|
type: 'GeoJSONSource',
|
|
160
|
-
name: `${
|
|
161
|
+
name: `${layerName} Source`,
|
|
161
162
|
parameters: { data: processedGeoJSON },
|
|
162
163
|
};
|
|
163
164
|
const layerModel = {
|
|
164
165
|
type: 'VectorLayer',
|
|
165
166
|
parameters: { source: newSourceId },
|
|
166
167
|
visible: true,
|
|
167
|
-
name:
|
|
168
|
+
name: layerName,
|
|
168
169
|
};
|
|
169
170
|
model.sharedModel.addSource(newSourceId, sourceModel);
|
|
170
171
|
model.addLayer(UUID.uuid4(), layerModel);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupytergis/base",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "A JupyterLab extension for 3D modelling.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jupyter",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@jupyter/collaboration": "^3.1.0",
|
|
45
45
|
"@jupyter/react-components": "^0.16.6",
|
|
46
46
|
"@jupyter/ydoc": "^2.0.0 || ^3.0.0",
|
|
47
|
-
"@jupytergis/schema": "^0.6.
|
|
47
|
+
"@jupytergis/schema": "^0.6.2",
|
|
48
48
|
"@jupyterlab/application": "^4.3.0",
|
|
49
49
|
"@jupyterlab/apputils": "^4.3.0",
|
|
50
50
|
"@jupyterlab/completer": "^4.3.0",
|
|
@@ -87,8 +87,8 @@
|
|
|
87
87
|
"ol-stac": "^1.0.0-rc.10",
|
|
88
88
|
"pbf": "^4.0.1",
|
|
89
89
|
"pmtiles": "^3.0.7",
|
|
90
|
-
"proj4": "
|
|
91
|
-
"proj4-list": "
|
|
90
|
+
"proj4": "2.19.3",
|
|
91
|
+
"proj4-list": "1.0.4",
|
|
92
92
|
"react": "^18.0.1",
|
|
93
93
|
"react-day-picker": "^9.7.0",
|
|
94
94
|
"shpjs": "^6.1.0",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"@types/colormap": "^2.3.4",
|
|
103
103
|
"@types/d3-color": "^3.1.0",
|
|
104
104
|
"@types/node": "^18.15.11",
|
|
105
|
-
"@types/proj4": "
|
|
105
|
+
"@types/proj4": "2.19.0",
|
|
106
106
|
"@types/shpjs": "^3.4.7",
|
|
107
107
|
"@types/uuid": "^10.0.0",
|
|
108
108
|
"rimraf": "^3.0.2",
|