I'm unable to find a spatialreferenceInfo element exposed anywhere on the featurelayer endpoint.
I see that a networklayer exposes one.
Is there some option for publishing a featurelayer so that it exposes this?
I've gone ahead and posted an Idea. Please feel free to upvote it.
https://community.esri.com/t5/arcgis-rest-api-ideas/expose-spatialrefenceinfo-xyresolution-and/idi-p/1230469
Got you. Sorry, misunderstood the question. LRServer is something new to me, but can see the JSON that you're refering to in this sample:
https://roadsandhighwayssample.esri.com/server/rest/services/RoadsHighways/RelocateEvents/MapServer/exts/LRServer/networkLayers/1?f=pjson
I would assume that it's something specific to the Linear Referencing workflow? This is an area I haven't worked in and have never noted a requirement under a normal FeatureLayer workflow.
I'll stand away and let someone else (more experienced in that area) respond.
Good luck on sorting it, sorry I can't help.
Hey Scott -
Thanks for replying, but what I'm looking for specifically are the xyTolerance and xyResolution properties. The only place in the REST API I see those is in the spatialReferenceInfo element of the networkLayer.
I'm hoping it's a documentation omission - and not an API shortcoming.
Hi, I may be wrong, but I think you may be looking at the branch rather than the root, so to speak. Esri put out a sample feature service here:
https://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/Landscape_Trees/FeatureServer/
The meta-data for the 'service' states that teh Spatial Reference is: 102100(3857). This is global to all the layers in the service. If you navigate to a layer in the service:
https://services.arcgis.com/V6ZHFr6zdgNZuVG0/ArcGIS/rest/services/Landscape_Trees/FeatureServer/0
Then the spatial reference isn't repeated, because it's inherited from the root of the service.
Hoping that's what you mean?
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.