Use the first geometry on SHPWRITE in order to find geometry type
Remove useless import
Merge pull request #416 from nicolas-f/fix/shpfile

Use the first geometry on SHPWRITE in order to find geometry type with or without Z