Commit d17a8959 authored by Christian MOMON's avatar Christian MOMON
Browse files

Added README file with contribution and licence detail about files.

parent 91bfaae1
......@@ -491,11 +491,12 @@ public class DownloadGeoNamesFilesDialog extends JDialog
{
if (StringUtils.isNotBlank(path))
{
new File(path + "/allCountries.zip").delete();
new File(path + "/allCountries.txt").delete();
new File(path + "/featureCodes_en.txt").delete();
new File(path + "/admin1CodesASCII.txt").delete();
new File(path + "/admin2Codes.txt").delete();
new File(path, "allCountries.zip").delete();
new File(path, "allCountries.txt").delete();
new File(path, "featureCodes_en.txt").delete();
new File(path, "admin1CodesASCII.txt").delete();
new File(path, "admin2Codes.txt").delete();
new File(path, "README").delete();
}
}
......
......@@ -21,6 +21,7 @@ package fr.devinsy.flatdb4geonames.model;
import java.io.File;
import java.io.IOException;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
......@@ -171,6 +172,9 @@ public class FlatDB4GeoNamesFactory
//
Downloader.download(sourceUrl + GeoNamesFlatDatabase.GEONAMES_ADMINISTRATIVE_CODE2_FILE, localTargetRepository);
//
FileUtils.copyURLToFile(FlatDB4GeoNamesFactory.class.getResource("/fr/devinsy/flatdb4geonames/model/README"), new File(localTargetRepository, "README"));
}
}
......
== About FlatDB4GeoNames Database ==
FlatDB4GeoNames provides an easy, local and fast Java access to GeoNames data.
FlatDB4GeoNames is a free software, released under the GNU AGPL v3 license.
Source code is available at https://framagit.org/tip/FlatDB4GeoNames
To perform, FlatDB4GeoNames requires some specific files.
Some are download from GeoNames. Other are generated by FlatDB4GeoNames.
These files are the FlatDB4GeoNames Database.
By default, files generated by FlatDB4GeoNames are licensed under a Creative Commons Attribution 3.0 License,
see http://creativecommons.org/licenses/by/3.0/
== About GeoNames Files ==
GeoNames is geographical database under a creative commons attribution license.
Web site: http://www.geonames.org/
This folder is containing files from GeoNames Gazetteer extract (source: http://download.geonames.org/export/dump/).
Files :
-------
allCountries.zip : all countries combined in one file, see 'geoname' table for columns
admin1CodesASCII.txt : ascii names of admin divisions. (beta > http://forum.geonames.org/gforum/posts/list/208.page#1143)
admin2Codes.txt : names for administrative subdivision 'admin2 code' (UTF8), Format : concatenated codes <tab>name <tab> asciiname <tab> geonameId
featureCodes.txt : name and description for feature classes and feature codes
These files are licensed under a Creative Commons Attribution 3.0 License,
see http://creativecommons.org/licenses/by/3.0/
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment