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
Error parsing Geometry Error: Unable to detect CRS, GeoJSON has no "crs" property.
at detectCrs (/home/joao/dev/geoapi.pt/node_modules/@ngageoint/geopackage/node_modules/reproject/index.js:57:11)
at Object.reproject (/home/joao/dev/geoapi.pt/node_modules/@ngageoint/geopackage/node_modules/reproject/index.js:98:12)
at Function.FeatureDao.reprojectFeature (/home/joao/dev/geoapi.pt/node_modules/@ngageoint/geopackage/dist/lib/features/user/featureDao.js:446:44)
at Object._a.next (/home/joao/dev/geoapi.pt/node_modules/@ngageoint/geopackage/dist/lib/features/user/featureDao.js:389:51)
at generateMunicipalityCensosJsonFIle (/home/joao/dev/geoapi.pt/routines/censos/generateCensosData.js:260:14)
at generateJsonData (/home/joao/dev/geoapi.pt/routines/censos/generateCensosData.js:236:5)
with
GeoPackageAPI.open(file).then(geoPackage=>{consttable=geoPackage.getFeatureTables()[0]constfeatureDao=geoPackage.getFeatureDao(table)// colums which have statistical numbers to aggregate on the municipalityconstcountableColumns=featureDao.columns.filter(c=>c.startsWith('N_'))// statistical sum for all municipalitiesconstsum={}countableColumns.forEach(el=>{sum[el]=0})constgeoPackageIterator=geoPackage.iterateGeoJSONFeatures(table)for(constfeatureofgeoPackageIterator){// <= ****** HERE *************for(constelinsum){sum[el]+=feature.properties[el]}}})
I'm using the latest NPM version 4.2.3, and node v16.19.0
Any idea what the problem is?
The text was updated successfully, but these errors were encountered:
@jfoclpf your file probably doesn't have a CRS set for the table you are querying. I recommend opening it in QGIS to confirm if it is not set and then set it.
I am getting this error
with
I'm using the latest NPM version
4.2.3
, and nodev16.19.0
Any idea what the problem is?
The text was updated successfully, but these errors were encountered: