This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
publisher:error_on_csv_upload_to_geoserver [2021/07/19 16:59] admin |
publisher:error_on_csv_upload_to_geoserver [2021/07/19 17:41] (current) admin |
||
---|---|---|---|
Line 8: | Line 8: | ||
===== Things to know beforehand ===== | ===== Things to know beforehand ===== | ||
- | * Geoserver expects a latitude and longitude value for every item in the KML file. If you CSV file, used to generate the KML file, has some lines with empty latitude and longitude values, you will encounter this error. | + | * Geoserver expects a latitude and longitude value for every item in the KML file. If your CSV file, used to generate the KML file, has some lines with empty latitude and longitude values, you will encounter this error. |
If you get this error on uploading the KML resource: | If you get this error on uploading the KML resource: | ||
Line 14: | Line 14: | ||
it is probably because there are some empty values in your CSV file. | it is probably because there are some empty values in your CSV file. | ||
To fix this: | To fix this: | ||
- | - Delete the KML file you just uploaded and any “Datastore” and “Web Map Service” files – see below – from your dataset | + | - Delete the KML file you just uploaded and any “Datastore” and “Web Map Service” files – see below – from your dataset {{ :publisher:delete_files_uploaded_to_geoserver.jpg?600 |}} |
- | {{ :publisher:delete_files_uploaded_to_geoserver.jpg?600 |}} | + | |
- Download and edit your CSV file, removing any lines with empty latitude or longitude values | - Download and edit your CSV file, removing any lines with empty latitude or longitude values | ||
- | - Run the CSV to KML converter again ([[https://www.convertcsv.com/csv-to-kml.htm|CSV To KML Converter]] | + | - Run the CSV to KML converter again on the updated CSV file ([[https://www.convertcsv.com/csv-to-kml.htm|CSV To KML Converter]]) |
- Upload the new KML file (you should probably also replace the CSV file with the clean one you have just created) | - Upload the new KML file (you should probably also replace the CSV file with the clean one you have just created) | ||
- Import the KML file to the Geoserver and Datastore again | - Import the KML file to the Geoserver and Datastore again | ||
- Check for a successful load and that the map is displaying | - Check for a successful load and that the map is displaying | ||
- | [[publisher:mapping_a_csv|Publishing Map files on SD]] | + | [[publisher:mapping_a_csv|Return to Publishing Map files on SD]] |