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
Calling GeoJSONReader read method passing in a FeatureCollection containing a bbox property causes error TypeError: Cannot read property 'bbox' of undefined:
jsts-1.6.1.min.js:formatted:12466 Uncaught TypeError: Cannot read property 'bbox' of undefined
at Ai.FeatureCollection (jsts-1.6.1.min.js:formatted:12466)
at Ai.read (jsts-1.6.1.min.js:formatted:12436)
at qi.read (jsts-1.6.1.min.js:formatted:12618)
The problem is in the FeatureCollection method, where there is a reference to "this.parse" which appears to have been missed out from the changes in issue 256:
if (obj.bbox)
featureCollection.bbox = this.parse.bbox.call(this, obj.bbox)
Should be same as in Feature method:
if (obj.bbox)
featureCollection.bbox = parse.bbox.call(this, obj.bbox)
The text was updated successfully, but these errors were encountered:
var gjr = new jsts.io.GeoJSONReader();
gjr.read('{ "type": "FeatureCollection", "bbox": [0.16105767174684102, 40.523177071019411, 3.3321981172927941, 42.860690087654696], "features": [] }');
Same error as before:
jsts-2.0.8.min.js:formatted:13675 Uncaught TypeError: Cannot read property 'bbox' of undefined
at Ls.FeatureCollection (jsts-2.0.8.min.js:formatted:13675)
at Ls.read (jsts-2.0.8.min.js:formatted:13645)
at GeoJSONReader.read (jsts-2.0.8.min.js:formatted:13832)
Calling GeoJSONReader read method passing in a FeatureCollection containing a bbox property causes error TypeError: Cannot read property 'bbox' of undefined:
The problem is in the FeatureCollection method, where there is a reference to "this.parse" which appears to have been missed out from the changes in issue 256:
Should be same as in Feature method:
The text was updated successfully, but these errors were encountered: