Skip to content
This repository has been archived by the owner on Mar 31, 2020. It is now read-only.

Geometry Filter missing inSR #41

Closed
MikeMillerGIS opened this issue Mar 30, 2015 · 2 comments
Closed

Geometry Filter missing inSR #41

MikeMillerGIS opened this issue Mar 30, 2015 · 2 comments
Assignees

Comments

@MikeMillerGIS
Copy link
Member

When a Geometry filter is applied to a layer, it is expecting a parameter with name inSR from the gemoetryFilter

if not geometryFilter is None and
isinstance(geometryFilter, filters.GeometryFilter):
gf = geometryFilter.filter
params['geometry'] = json.dumps(gf['geometry'])
params['geometryType'] = gf['geometryType']
params['spatialRelationship'] = json.dumps(gf['spatialRel'])
params['inSR'] = json.dumps(gf['inSR'])

@MikeMillerGIS
Copy link
Member Author

In testing, it looks like the proper format for that line is
params['inSR'] = gf['inSR']['wkid']

@achapkowski
Copy link
Collaborator

I think part of the issue relates to the Feature object because the wkid/spatial reference is not being set on the geometry objects.

achapkowski added a commit to achapkowski/ArcREST that referenced this issue Mar 31, 2015
achapkowski added a commit to achapkowski/ArcREST that referenced this issue Mar 31, 2015
achapkowski added a commit to achapkowski/ArcREST that referenced this issue Mar 31, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants