Skip to main content
Question

How do I delete features in a feature class using a list from a spreadsheet?

  • January 17, 2019
  • 5 replies
  • 292 views

Forum|alt.badge.img

I will be receiving a spreadsheet with a list of streetlights that have been removed from the field. I need to select these lights in my streetlight feature class and delete them. I can read the spreadsheet and the feature class but how do in select or filter the streetlights and delete them?

5 replies

david_r
Celebrity
  • January 17, 2019

Have you looked at the DatabaseDeleter transformer?


Forum|alt.badge.img
  • Author
  • January 17, 2019
david_r wrote:

Have you looked at the DatabaseDeleter transformer?

No, I have never heard of it. It does look like it will to the trick.


david_r
Celebrity
  • January 17, 2019
donjensen wrote:

No, I have never heard of it. It does look like it will to the trick.

I think that would be the easiest solution. There's an alternative solution using a regular writer and the fme_db_operation attribute, but it's slightly more complicated. It's documented here:

https://knowledge.safe.com/articles/43885/data-loading-updating-and-deleting.html

https://knowledge.safe.com/articles/31700/updating-databases-using-change-detection-to-set-f.html


Forum|alt.badge.img
  • Author
  • January 17, 2019

Thanks David, I will check it out.


Forum|alt.badge.img
  • Author
  • January 24, 2019
donjensen wrote:

Thanks David, I will check it out.

David,

I am not able to get the Database Deleter to work. I get an error when it runs and there is no place to set the transaction type to 'Versioned Edit Session' that I can find. Do you have any thoughts?

Thanks

Don

Table/feature class 'ACE.Light' is versioned. The 'Transaction Type' keyword must be set to 'Versioned Edit Session' in order to write to versioned tables/feature classes

 


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