[FOSSGIS-Talk] Installation QMapShaper/MapShaper at MAC?

mike at elstermanns.de mike at elstermanns.de
Di Aug 8 15:37:38 CEST 2023


Hallo zusammen, 

kann jemand hier bei der Installation von QMapShaper auf MAC helfen?
Bei mir erscheint im QGIS folgende Meldung:

QGIS-Version: 3.32.1-Lima
QGIS-Codeversion: 4a078ecf63
Qt-Version: 5.15.2
Python-Version: 3.9.5
GDAL-Version: 3.3.2
GEOS-Version: 3.9.1-CAPI-1.14.2
PROJ-Version: Rel. 8.1.1, September 1st, 2021
PDAL-Version: 2.3.0 (git-version: Release)
QMapshaper-Version: 0.8.0
Algorithmus gestartet um: 2023-08-08T15:05:43
Algorithmus Simplify Polygon Lines startet…
Eingabeparameter:
{ 'CleanData' : True, 'Input' : '/Users/mikee./Nextcloud/Geodaten/Halle/krg_2398.shp', 'Lines' : 0, 'Method' : 0, 'Output' : 'TEMPORARY_OUTPUT', 'Simplify' : 50 }

COMMAND TO RUN:
/opt/homebrew/lib/node_modules/mapshaper/bin/mapshaper-xl /private/var/folders/c_/4497s5dd36s2cfdvl_d14krh0000gn/T/processing_aDKXaC/02d2e3be5cc143469292006c50da70f1/734253a5-12a8-47b7-86da-70d043f7d548.shp -clean -lines -simplify dp variable percentage = TYPE == "inner" ? 0.5 : 1 keep-shapes planar -polygons -join largest-overlap /private/var/folders/c_/4497s5dd36s2cfdvl_d14krh0000gn/T/processing_aDKXaC/f36306b778324c2284828b71fc758925/9abb92c8-4008-48da-93b4-d6154b094d1e.shp -filter-fields id_mpshpr -dissolve2 id_mpshpr -clean -o format=shapefile /private/var/folders/c_/4497s5dd36s2cfdvl_d14krh0000gn/T/processing_aDKXaC/118c00c34acd4772bdb5d6b83dcd7bb5/4da8b4e5-d6d1-453e-a589-80cde9497e6e.shp
RESULT:
env: node: No such file or directory
Execution completed in 0.30 Sekunden
Ergebnisse:
{'Output': '/private/var/folders/c_/4497s5dd36s2cfdvl_d14krh0000gn/T/processing_aDKXaC/83b0327ec3784246a343954f526c0b1f/Output.gpkg'}

Lade Ergebnis Layer
Die folgenden Layer wurden nicht erzeugt.
• /private/var/folders/c_/4497s5dd36s2cfdvl_d14krh0000gn/T/processing_aDKXaC/83b0327ec3784246a343954f526c0b1f/Output.gpkg
Im 'Protokoll-Fenster' im QGIS-Hauptfenster sind mehr Informationen zur Ausführung des Algorithmus zu finden.


Das Kommando auf der Kommandozeile funktioniert aber:
mikee. at MacBook-Pro-von-Mike Desktop % 
mikee. at MacBook-Pro-von-Mike Desktop % /opt/homebrew/lib/node_modules/mapshaper/bin/mapshaper-xl -help
Allocating 8 GB of heap memory
Usage:  mapshaper -<command> [options] ...

————

Im QGIS-Protokoll-Fenster steht dann:
2023-08-08T15:05:43     WARNING    Kann /private/var/folders/c_/4497s5dd36s2cfdvl_d14krh0000gn/T/processing_aDKXaC/118c00c34acd4772bdb5d6b83dcd7bb5/4da8b4e5-d6d1-453e-a589-80cde9497e6e.shp nicht öffnen ().()

————
Versuche ich auf der Kommandozeile in dieses Verzeichnis zur schreiben, geht es klar:

mikee. at MacBook-Pro-von-Mike 118c00c34acd4772bdb5d6b83dcd7bb5 % 
mikee. at MacBook-Pro-von-Mike 118c00c34acd4772bdb5d6b83dcd7bb5 % pwd
/private/var/folders/c_/4497s5dd36s2cfdvl_d14krh0000gn/T/processing_aDKXaC/118c00c34acd4772bdb5d6b83dcd7bb5
mikee. at MacBook-Pro-von-Mike 118c00c34acd4772bdb5d6b83dcd7bb5 % ls -lisa >x.x
mikee. at MacBook-Pro-von-Mike 118c00c34acd4772bdb5d6b83dcd7bb5 % ls -l
total 8
-rw-r--r--  1 mikee.  staff  194  8 Aug 15:12 x.x
mikee. at MacBook-Pro-von-Mike 118c00c34acd4772bdb5d6b83dcd7bb5 % 

——————
Das ENV scheint richtig:

mikee. at MacBook-Pro-von-Mike 118c00c34acd4772bdb5d6b83dcd7bb5 % 
mikee. at MacBook-Pro-von-Mike 118c00c34acd4772bdb5d6b83dcd7bb5 % env
__CFBundleIdentifier=com.apple.Terminal
TMPDIR=/var/folders/c_/4497s5dd36s2cfdvl_d14krh0000gn/T/
XPC_FLAGS=0x0
TERM=xterm-256color
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.kQRkUzWo4x/Listeners
XPC_SERVICE_NAME=0
TERM_PROGRAM=Apple_Terminal
TERM_PROGRAM_VERSION=447
TERM_SESSION_ID=98436927-B3DC-4240-A368-BBF5AF98DA5E
SHELL=/bin/zsh
HOME=/Users/mikee.
LOGNAME=mikee.
USER=mikee.
PATH=/Applications/Postgres.app/Contents/Versions/latest/bin:/Applications/QGIS.app/Contents/MacOS/bin:/opt/homebrew/opt/openjdk at 11/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin
SHLVL=1
PWD=/private/var/folders/c_/4497s5dd36s2cfdvl_d14krh0000gn/T/processing_aDKXaC/118c00c34acd4772bdb5d6b83dcd7bb5
OLDPWD=/private/var/folders/c_/4497s5dd36s2cfdvl_d14krh0000gn/T/processing_aDKXaC
HOMEBREW_PREFIX=/opt/homebrew
HOMEBREW_CELLAR=/opt/homebrew/Cellar
HOMEBREW_REPOSITORY=/opt/homebrew
MANPATH=/opt/homebrew/share/man::
INFOPATH=/opt/homebrew/share/info:
LANG=de_DE.UTF-8
_=/usr/bin/env
mikee. at MacBook-Pro-von-Mike 118c00c34acd4772bdb5d6b83dcd7bb5 % 

——————
Auf der Kommandozeile geht MapShaper einfach und als XL  gut:

mikee. at MacBook-Pro-von-Mike Desktop % 
mikee. at MacBook-Pro-von-Mike Desktop % mapshaper-xl krg_2398.shp -clean -o xyz.shp
Allocating 8 GB of heap memory
[clean] Removed 24 / 24 slivers using 540+ sqm variable threshold
[clean] Retained 1,902 of 1,902 features
[o] Wrote xyz.shp
[o] Wrote xyz.shx
[o] Wrote xyz.dbf
[o] Wrote xyz.prj
mikee. at MacBook-Pro-von-Mike Desktop % ls xyz*
xyz.dbf	xyz.prj	xyz.shp	xyz.shx
mikee. at MacBook-Pro-von-Mike Desktop % 

Wo liegt der Fehler?

Danke & BG aus HAL, mikeE.







Mehr Informationen über die Mailingliste FOSSGIS-Talk-Liste