Skip to main content

How can I use the Python caller transformer to call Arcpy and run the ArcGIS Repair Geometry tool? I have polygons from a file geodatabase that I'm importing into our Postgres SDE. After loading them, many of the records won't display due to geometry violations. I tried using the FME Geometry Validator transformer in my workspace, but it didn't seem to resolve the issue. 

Alternatively, is there a way to configure the Geometry Validator (or combine it with other transformers) to repair the data?

this might get you started for using arcpy?

https://support.safe.com/hc/en-us/articles/25407493532429-Using-Arcpy-for-FME-Feature-Processing

 

for repairing geometries in FME, many possibilities, but we should get more info I guess, any sample data/workspace you could share, or more details on the errors/violations you are talking about?


As ​@becchr suggested, you can do geometry repairs in FME. Have a look at the GeometryValidator and its ability to repair geometry - https://docs.safe.com/fme/html/FME-Form-Documentation/FME-Transformers/Transformers/geometryvalidator.htm


this might get you started for using arcpy?

https://support.safe.com/hc/en-us/articles/25407493532429-Using-Arcpy-for-FME-Feature-Processing

 

for repairing geometries in FME, many possibilities, but we should get more info I guess, any sample data/workspace you could share, or more details on the errors/violations you are talking about?

Great.


Reply