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:
it is probably because there are some empty values in your CSV file.
To fix this:
Delete the KML file you just uploaded and any “Datastore” and “Web Map Service” files – see below – from your dataset
Download and edit your CSV file, removing any lines with empty latitude or longitude values
-
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
Check for a successful load and that the map is displaying
Return to Publishing Map files on SD