Skip to main content
Question

Shapefile generated in FME doesn't work in lastools


james_c_452
Supporter
Forum|alt.badge.img+7

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
  • January 10, 2023

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

Maybe it works.


james_c_452
Supporter
Forum|alt.badge.img+7
  • Author
  • Supporter
  • January 10, 2023
f.kemminje wrote:

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+49

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


DanAtSafe
Safer
Forum|alt.badge.img+18
  • Safer
  • 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
Supporter
Forum|alt.badge.img+7
  • Author
  • Supporter
  • 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
Supporter
Forum|alt.badge.img+7
  • Author
  • Supporter
  • March 31, 2023
james_c_452 wrote:

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings