Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

GML2 option and building gml-to-geojson #1

Open
jpdewing opened this issue Dec 19, 2018 · 0 comments
Open

GML2 option and building gml-to-geojson #1

jpdewing opened this issue Dec 19, 2018 · 0 comments

Comments

@jpdewing
Copy link

Hi,

I have been trying to parse some GML to GeoJSON, however in the output features the geometry is always null. I think this is due to the GML parser defaulting to GML3. I thought I would clone the repository and update the options object so that I can pass in an option to use GML2/GML3.

However when I try to build the cloned repository (npm run build) I get the following errors.

ERROR in ./src/wfs.js
Module not found: Error: Can't resolve 'ol/format/geojson' in '/home/james/projects/gml-to-geojson/src'
 @ ./src/wfs.js 12:38-66
 @ ./src/index.js

ERROR in ./src/wfs.js
Module not found: Error: Can't resolve 'ol/format/gml' in '/home/james/projects/gml-to-geojson/src'
 @ ./src/wfs.js 8:34-58
 @ ./src/index.js

ERROR in ./src/wfs.js
Module not found: Error: Can't resolve 'ol/format/wfs' in '/home/james/projects/gml-to-geojson/src'
 @ ./src/wfs.js 10:34-58
 @ ./src/index.js

The Openlayers ol npm package is installed and present in the node_modules folder, am I missing something with the webpack.config.js settings file. Any help would really be appreciated.

Thanks,
James

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant