-
Notifications
You must be signed in to change notification settings - Fork 21
csv output
Dmitry Kiselev edited this page Mar 16, 2017
·
1 revision
This is the basic example, it shows how to encode columns for csv handler:
--handlers out-csv out=file.csv.gz columns=osm-id,id
But it says nothing about columns itself. You can find column keys here:
- https://github.com/kiselev-dv/gazetteer/blob/develop/Gazetteer/src/main/java/me/osm/gazetter/out/FeatureValueExctractorImpl.java
- https://github.com/kiselev-dv/gazetteer/blob/develop/Gazetteer/src/main/java/me/osm/gazetter/out/AddrRowValueExctractorImpl.java
The difference between AddrRowValueExctractorImpl
and FeatureValueExctractorImpl
is that one feature (building or poi or whatewer) may have more than one address. Columns in FeatureValueExctractorImpl
are for the whole feature and AddrRowValueExctractorImpl
for each address inside feature.
If feature contains more than one address, lets say 2 addresses, the output csv will has 2 rows, data from FeatureValueExctractorImpl
will be the same, and data from AddrRowValueExctractorImpl
will be specific.