GithubHelp home page GithubHelp logo

geojson from points about mapshaper HOT 2 OPEN

chris3522 avatar chris3522 commented on June 10, 2024
geojson from points

from mapshaper.

Comments (2)

chris3522 avatar chris3522 commented on June 10, 2024

I try an intermediate solution by creating a bounding rectangle but I get an error with this command:

csvPoints = `./BV_GRAND-PARIS__1__FRANXL1S100.csv`
mapshaper.runCommandsXL(`-i ${csvPoints} -calc 'xmin=min(lon)' -calc 'ymin=min(lat)' -calc 'xmax=max(lon)' -calc 'ymax=max(lat)' -rectangle 'bbox=xmin,ymin,xmax,ymax'`)

because maphaper cannot find the variables xmin,ymin,xmax and ymax

from mapshaper.

chris3522 avatar chris3522 commented on June 10, 2024

Here the error:

Error: Command failed:/mapshaper/bin/mapshaper -i ./BV_GRAND-PARIS__1__FRANXL1S100.csv  -calc 'xmin=min(LON),ymin=min(LAT),xmax=max(LON),ymax=max(LAT)' -rectangle 'bbox=xmin,ymin,xmax,ymax'
Allocating 8 GB of heap memory
[i] Auto-detected number fields: INDEX, LON, LAT
[calc] xmin=min(LON),ymin=min(LAT),xmax=max(LON),ymax=max(LAT):  2.23
Error: [rectangle] Missing rectangle extent
Run mapshaper -h to view help

    at ChildProcess.exithandler (node:child_process:422:12)
    at ChildProcess.emit (node:events:514:28)
    at maybeClose (node:internal/child_process:1105:16)
    at Socket.<anonymous> (node:internal/child_process:457:11)
    at Socket.emit (node:events:514:28)
    at Pipe.<anonymous> (node:net:337:12) {
  code: 1,
  killed: false,
  signal: null,
  cmd: "/nodejs/bin/node --max-old-space-size=8000 /mapshaper/bin/mapshaper -i ./BV_GRAND-PARIS__1__FRANXL1S100.csv  -calc 'xmin=min(LON),ymin=min(LAT),xmax=max(LON),ymax=max(LAT)' -rectangle 'bbox=xmin,ymin,xmax,ymax'"
}

from mapshaper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.