Select to view content in your preferred language

How to remove features from a hosted feature service that are no longer in a feed?

304
6
04-17-2025 09:57 AM
DrewDowling
Frequent Contributor

Since GAP analysis does not work on polygon feeds, is there a way to configure an output so that only the latest features from a feed are kept? I don't just mean the latest feature for a trackID, I mean just features from the latest run of the analytic.

I have a problem where the source polygons are being split and merged. Without GAP analysis the parent polygons stay in the output hosted feature service and have to be manually deleted. They essentially stay as overlapping polygons.

Maybe one of the other output types support keeping just active features from a feed?

Tags (2)
0 Kudos
6 Replies
JeffSilberberg
Frequent Contributor

If this is a Big Data Analytic, then isn't it as simple as specifying -- 

Each time the analytic runsReplace existing features and schema

 

0 Kudos
DrewDowling
Frequent Contributor

I'm probably missing something obvious here but I don't see how to get that option. The closest I can get is

Each time the analytic startsReplace existing features and schema

 

When I'm setting up an output these are the options I see

DrewDowling_0-1744992504614.png

 

0 Kudos
DrewDowling
Frequent Contributor

I misread your post Jeff. I'm doing a real time analytic, not a Big Data one. That is why I don't see the option to replace all features every time the analytic runs.

0 Kudos
JeffSilberberg
Frequent Contributor

@DrewDowling 

  Sorry, I don't know of a way to do what you want in the RTA other than applying a Time Filter in the Maps and Apps.   But wouldn't this be a better fit as a BDA?  

 

 

0 Kudos
JeffSilberberg
Frequent Contributor

 

Again, the option I highlighted is for Big Data Analytics, I think you are looking at Real Time Analytics.  

Since you said "from the latest run of the analytic", I, maybe wrongly, assumed you were running a BDA on a schedule, once every thirty minutes or some interval.  

 

 

DrewDowling
Frequent Contributor

Thanks Jeff. Yes I was using realtime analytics. Your suggestion of using a time filter was correct.

I learned from as Esri expert to use a field calculation of the data and then filter off of 'Date within last X minutes' where the date field is calculated to Now() every time the Analytic is run. This would hide the features in the map.

They also suggested a scheduled Notebook script to delete the older features from the hosted feature service.