0

Input data can be excel, text, whatever. I would like to produce shapefiles from data on a computer without GIS installed. Is there anything out there?

Fiona seems to be such a module. Are there any other modules? Is Fiona the best choice?

I have data in a list like this:

mylist = [["lat1","long1","lat2","long2","var1","var2","var3"],
         [55.000,7.000,54.000,6.000,30,40,50]
         [54.000,6.000,52.000,8.000,30,40,50]
         [52.000,8.000,53.000,7.000,30,40,50]
         [53.000,7.000,50.000,6.000,30,40,50]
         [50.000,6.000,55.000,7.000,30,40,50]]

And I would like to make a shapefile (polyline) out of that.

3
  • Maybe this question could be of help:
    – countryman
    Commented Feb 5, 2016 at 8:50
  • You don't seem to have grasped what is wrong with your question(s). If people ask for clarification, there is a clue there. Commented Feb 5, 2016 at 12:50
  • 1
    Pyshp is an open source pure Python module that allows you to generate shapefiles without any dependencies. I have used this quite a bit and it works well.
    – crmackey
    Commented Feb 5, 2016 at 13:50

1 Answer 1

2

This is what fiona module would do, but in a sense you are then adding some GIS functionnalities to Python. Further GIS-like analysis on the geometries can then be performed using shapely.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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