How to publish featureservice so it exposes spatialReferenceInfo?

497
4
11-09-2022 08:28 AM
KirkKuykendall1
Occasional Contributor III

I'm unable to find a spatialreferenceInfo element exposed anywhere on the featurelayer endpoint.

I see that a networklayer exposes one.

KirkKuykendall1_0-1668011168181.png

Is there some option for publishing a featurelayer so that it exposes this?

Tags (1)
0 Kudos
4 Replies
Scott_Tansley
MVP Regular Contributor

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?  

 

 

 

Scott Tansley
https://www.linkedin.com/in/scotttansley/
0 Kudos
KirkKuykendall1
Occasional Contributor III

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.  

 

0 Kudos
Scott_Tansley
MVP Regular Contributor

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/...

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.

 

Scott Tansley
https://www.linkedin.com/in/scotttansley/
0 Kudos
KirkKuykendall1
Occasional Contributor III

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...

 

0 Kudos