Skip to main content
Question

Shapefile generated in FME doesn't work in lastools

  • January 10, 2023
  • 6 replies
  • 23 views

james_c_452
Enthusiast
Forum|alt.badge.img+8

Hi,

Does anyone know why a shapefile generated in FME would not work in lastools? I am using lastools to clip a point cloud using a buffer from FME but it can't read the shapefile. I don't know why it is invalid, only that my command line has the following errorimageAny help would be appreciated

Thanks

6 replies

f.kemminje
Contributor
Forum|alt.badge.img+11
  • Contributor
  • 189 replies
  • January 10, 2023

try ...give the specific files name. no wildcard *.shp.

Maybe it works.


james_c_452
Enthusiast
Forum|alt.badge.img+8
  • Author
  • Enthusiast
  • 63 replies
  • January 10, 2023

try ...give the specific files name. no wildcard *.shp.

Maybe it works.

Thanks for the reply f.kemminje. I did try that before I asked. There's probably some random little thing that lastools doesn't like. Just not sure what


redgeographics
Celebrity
Forum|alt.badge.img+59
  • Celebrity
  • 3700 replies
  • January 10, 2023

Have you tried opening the shapefile in another application? Any chance you can share it here?


DanAtSafe
Safer
Forum|alt.badge.img+19
  • Safer
  • 345 replies
  • January 10, 2023

Can the shapefile be read by ArcGIS? If so then lastools requires a non-standard shapefile. There are some exceptions - see https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_ReadersWriters/shapefile/troubleshooting.htm


james_c_452
Enthusiast
Forum|alt.badge.img+8
  • Author
  • Enthusiast
  • 63 replies
  • January 13, 2023

Update, I can get it to work if I use a geometry validator before I write it. Use all settings (but remove the two OCG checks), turn on checking for self intersecting, and I also remove vertexes closer than 0.1m (but I don't think you need this last step). I also dissolved before the validator in one case


james_c_452
Enthusiast
Forum|alt.badge.img+8
  • Author
  • Enthusiast
  • 63 replies
  • March 31, 2023

Update, I can get it to work if I use a geometry validator before I write it. Use all settings (but remove the two OCG checks), turn on checking for self intersecting, and I also remove vertexes closer than 0.1m (but I don't think you need this last step). I also dissolved before the validator in one case

Second update, I had this problem again for a different reason. This time it was fixed by having the Geometry in the shapefile write set to the appropriate type. Shape_polyline for my new case but probably shape_polygon for the case of this question