Skip to content

xevxx/merge-geojson-features

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

merge-geojson-features

Merges GeoJSON Features and FeatureCollections.

Usage for merge-geojson-objects.js

Call function

PassGeoJsonPair(jsonObj1, jsonObj2)

with two json objects ( Can be single feature or feature collection) returns merged collection

Currently utilising for simple ol3 app and localstorge

####################################

Usage for index.js (original file)

1.json and 2.json may either be JSON files containing GeoJSON FeatureCollections or individual Features. The output will be a FeatureCollection containing all features present in the files to be merged.

merge-geojson-features 1.json 2.json > merged.json

About

Merges GeoJSON Features and FeatureCollections

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%