You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+20-19Lines changed: 20 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,39 +25,40 @@ We use [SonarLint](https://www.sonarsource.com/python/) for linting.
25
25
26
26
This is a short step by step guide on how to setup your development environment to get started with the node development.
27
27
28
+
28
29
1.[Download](https://www.knime.com/nightly-build-downloads) and install the latest KNIME nightly build
29
30
30
-
2. Install KNIME extension: Open the downloaded KNIME Analytics Platform nightly build and click KNIME -> File-> Install KNIME Extensions, Search for 'Python' and select `KNIME Python Extension Development (Labs)`,`KNIME Python Integration (Labs) `, Disable the “Group items by category” option and search for 'geo' and select `KNIME Geospatial Nodes`.
31
+
2. Install KNIME extension: Open the downloaded KNIME Analytics Platform nightly build and click KNIME -> File-> Install KNIME Extensions, Search for 'Python' and select `KNIME Python Extension Development (Labs)`,`KNIME Python Integration (Labs) `, Disable the “Group items by category” option and search for 'geo' and select `KNIME Geospatial Extension`. The KNIME Geospatial Extension contains the Java and Python representation of the geometry data types.
31
32
32
-
3. Follow the instruction in the Tutorials section of the [Create a New Python based KNIME Extension guide](https://docs.knime.com/latest/pure_python_node_extensions_guide/index.html#_tutorials). When building the new Python environment for Geospatial node development also install the `geopandas` package as following:
3. Before proceeding in KNIME Analytics Platform we have to create the Python environment with all required packages e.g. `geopandas` to do so execute the following command that uses the [geospatial_env.yml](https://github.com/spatial-data-lab/knime-geospatial-extension/blob/main/knime_extension/geospatial_env.yml) file in the local repository clone:
40
+
```bash
41
+
#browse to the folder where the geospatial_env.yml file of the local repository clone is located and then execute
42
+
conda env create -f geospatial_env.yml
35
43
36
-
conda activate my_python_env
37
44
38
-
conda install libpysal scipy # if you use these packages, please install here too
45
+
conda activate geospatial_env
39
46
40
47
conda info
41
-
# Record the env location path such as D:\ProgramData\Anaconda3\envs\my_python_env
48
+
# Record the env location path such as D:\ProgramData\Anaconda3\envs\geospatial_env
4. Make a copy of the `config.yml` file e.g. `config_YOURNAME.yml`. Adapt the copied file to point to the `knime_extension` folder on your local hard drive as described [here](https://docs.knime.com/latest/pure_python_node_extensions_guide/index.html#tutorial-writing-first-py-node). The file tells the KNIME Analytics Platform where to search for the Python extension on your local hard drive during development and debugging.
6. Adapt the `config.yml` file to point to the `knime_extension` folder on your local hard drive as described [here](https://docs.knime.com/latest/pure_python_node_extensions_guide/index.html#tutorial-writing-first-py-node). The file tells the KNIME Analytics Platform where to search for the Python extension on your local hard drive during development and debugging.
53
+
5. Add the following line to your `knime.ini`, located in the KNIME nightly root folder, to point to your adjusted `config_YOURNAME.yml` file e.g. `-Dknime.python.extension.config=D:\Software\knime_470\knimespace\geo\config_YOURNAME.yml`
55
54
56
-
7. Add the following line to your `knime.ini`, located in the KNIME nightly root folder, to point to your adjusted `config.yml` file e.g. `-Dknime.python.extension.config=D:\Software\knime_470\knimespace\geo\config.yml`
55
+
6. Go back to the KNIME Analytics Platform and configure the following KNIME Python settings:
8. Reopen the KNIME Analytics Platform and you should see the Geospatial extension in your KNIME node repository.
59
+
7. Reopen the KNIME Analytics Platform and you should see the Geospatial Analytics extension in your KNIME node repository.
59
60
60
-
9. If you do not see the extension have a look at the KNIME log file via View -> Open KNIME log. One common problem is that not all required Python packages are install in you Python environment (for example `libpysal` or `geopandas`)
61
+
8. If you do not see the extension have a look at the KNIME log file via View -> Open KNIME log.
0 commit comments