I'm trying several spatial statistics analysis in my QGIS 2.18.3 project (convex hull, random points inside polygons, point sampling tool, basic statistics for numeric fields, distance matrix, nearest neighbour analysis, mean coordinates, polygon centroids).

Since I used the nearest neighbour analysis, which is saved under a .html in my data folder, I cannot save any other layer as a shapefile (shp). The proposed type of files are just .dbf, .xlsx, .csv and .ods. Encoding is set as System. Pre-selected type of file is .dbf.

Result is that mean coordinates and polygon centroids are not visualised in the project.

I tried to create a fix buffer that I already did this morning and even that layer was not able to be saved under a shapefile, but in the morning it was possible.

  • 1
    Your "layer" apparently doesn't have geometry. – Vince Mar 1 '17 at 17:28
  • I don't think that this is the problem: to do a buffer I selected as an input layer an existing one : points, which appear on the map. And still the result buffer is not possible to be saved under a shapefile. The same story for the mean coordinates and polygon centroids => both are based on existing layers which appear in the map but their results are not possible to be saved under a shapefile. – Janita Mar 1 '17 at 17:40
  • The UI is offering to save to non-geometric file types. Obviously it disagrees with your assessment that the available data is spatial. – Vince Mar 1 '17 at 19:17
  • Does it work, when you save the result from e.g. "fixed distance buffer" first to a temporary layer and then save this temporary layer as a shapefile? – tallistroan Mar 1 '17 at 21:19
  • @tallistroan YES it works! Thank you for your help. Do you have an idea what is the problem? Why am I not able to save the buffer as Save to file -> buffer.shp in my data folder? – Janita Mar 2 '17 at 9:06

Problem solved thanx to @tallistroan. First I saved the buffer as a temporary layer and then saved it as a shp. After that, the action Save to file as a shp was again available for all the analysis output layers!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.