/geojson-conversion

Simple GoLang program converting a .csv file of lat/longs to geojson feature collections

Primary LanguageGo

geojson-conversion

Overview

A simple GeoJSON serializer

Use it as an explanation of how to convert a .csv file of long/lat cooridnates to a GeoJSON Feature Collection

go mod init geojson
go build
./geojson

When used from the command line, it attempts to read the input file, write out a file points.geojson

What does it not do well?

  1. It is not designed to validate input. The program assumes that the input is valid .csv Behavior for invalid coordinbates are undefined and could panic.