Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Binary dasymetric examples are broken #40

Open
kannes opened this issue Apr 4, 2019 · 0 comments
Open

Binary dasymetric examples are broken #40

kannes opened this issue Apr 4, 2019 · 0 comments

Comments

@kannes
Copy link

kannes commented Apr 4, 2019

The non-relative example:

node index.js -d -i testdata/berlin/kriminalitaet_bezirksregionen.geojson \
-t testdata/berlin/447_lor_planungsraeume.geojson \
-o testdata/berlin/binaryDasymetricWeighting_kriminalitaet_bezirksregionenToPlanungsraeume.geojson \
--attr Alle_2012 --mask testdata/berlin/wohnbloecke.geojson \
--mode binaryDasymetricWeighting

intersects for a while then errors with

(...)
info:    [binaryDasymetricWeighting][intersect][868/13451]
error:    Error
    at Object.<anonymous> (/home/me/cogran/node_modules/turf/node_modules/turf-intersect/node_modules/jsts/lib/jsts.js:21:414)
    at Module._compile (internal/modules/cjs/loader.js:799:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:810:10)
    at Module.load (internal/modules/cjs/loader.js:666:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:606:12)
    at Function.Module._load (internal/modules/cjs/loader.js:598:3)
    at Module.require (internal/modules/cjs/loader.js:705:19)
    at require (internal/modules/cjs/helpers.js:14:16)
    at Object.<anonymous> (/home/me/cogran/node_modules/turf/node_modules/turf-intersect/node_modules/jsts/index.js:2:12)
    at Module._compile (internal/modules/cjs/loader.js:799:30)

The relative example:

node index.js -d -i testdata/hamburg/wohnflaecheProEW_Stadtteile.geojson \
-t testdata/hamburg/7_bezirke.geojson \
-o testdata/hamburg/binaryDasymetricWeightingRelative_wohnflaeche_stadtteileToBezirke.geojson \
--attr WFl_m2 --mask testdata/hamburg/bebauteFlaeche.geojson \
--mode binaryDasymetricWeightingRelative`

intersects for a while then errors with

info:    [binaryDasymetricWeightingRelative][intersect][1574/1575]
Dropping Feature with tiny area
(...)
Dropping Feature with tiny area
error:    Error
    at Object.<anonymous> (/home/me/cogran/node_modules/turf/node_modules/turf-intersect/node_modules/jsts/lib/jsts.js:21:414)
    at Module._compile (internal/modules/cjs/loader.js:799:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:810:10)
    at Module.load (internal/modules/cjs/loader.js:666:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:606:12)
    at Function.Module._load (internal/modules/cjs/loader.js:598:3)
    at Module.require (internal/modules/cjs/loader.js:705:19)
    at require (internal/modules/cjs/helpers.js:14:16)
    at Object.<anonymous> (/home/me/cogran/node_modules/turf/node_modules/turf-intersect/node_modules/jsts/index.js:2:12)
    at Module._compile (internal/modules/cjs/loader.js:799:30)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant