Skip to main content
Solved

ESRI feature service


boubcher
Contributor
Forum|alt.badge.img+11
Did this help you find an answer to your question?

5 replies

ngoorman
Contributor
Forum|alt.badge.img+3
  • Contributor
  • July 26, 2018

Hi,

You can load a feature service into FME using the Esri ArcGIS Portal reader or the Esri ArcGIS Onlone reader. You can make the table name visible through the "fme_feature_type" attribute which can be exposed either directly on the reader (under Format Attributes) or separately using the AttributeExposer transformer.

If you then read all records from all tables and summarize these through Counter transformers, that will give you the information you need. You can then write this to Excel or other formats if you need.


boubcher
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • July 26, 2018
ngoorman wrote:

Hi,

You can load a feature service into FME using the Esri ArcGIS Portal reader or the Esri ArcGIS Onlone reader. You can make the table name visible through the "fme_feature_type" attribute which can be exposed either directly on the reader (under Format Attributes) or separately using the AttributeExposer transformer.

If you then read all records from all tables and summarize these through Counter transformers, that will give you the information you need. You can then write this to Excel or other formats if you need.

@ngoorman

 

 

the problem is there is a limte of the number feature we could load from the web service

 


ngoorman
Contributor
Forum|alt.badge.img+3
  • Contributor
  • July 26, 2018
boubcher wrote:
@ngoorman

 

 

the problem is there is a limte of the number feature we could load from the web service

 

As far as I know FME should always read all features from a feature service - possibly older versions (eg 2016 and lower) might have an issue. Roughly how many features do you have in there?

 

 

Either way, I don't think there is any way to get a count of features without reading all of them. At least not with the regular transformers; possibly you can do something with Python.

 

 


bruceharold
Contributor
Forum|alt.badge.img+17
  • Contributor
  • Best Answer
  • July 26, 2018

Forum|alt.badge.img+2

FME will read all the records in your layer or table. I don't think this is optimum if all you want is a list of layers & tables and record counts. The schema reader - Schema (any format) - will help you get a list of all your feature service layers & tables. You get one feature per layer/table. You can also accomplish this using the FeatureReader transformer - it has a Schema output port.

But Schema reader doesn't return a table count. For this I think you'd need to use the HTTPCaller and send a request to the ArcGIS Feature Service REST API - as Bruce suggests. Looks like the 'layer' resource is the end point you need. Refer to the ArcGIS REST API documentation.


Reply


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