Fix copy dir
Fix HasFID detection
Add export map to raster