Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

queryFeatures function - inSR paramater not taken in account #628

Closed
jsauca opened this issue Oct 17, 2019 · 2 comments
Closed

queryFeatures function - inSR paramater not taken in account #628

jsauca opened this issue Oct 17, 2019 · 2 comments

Comments

@jsauca
Copy link

jsauca commented Oct 17, 2019

"@esri/arcgis-rest-feature-layer": "^2.5.0",

The inSR paramaters is not taken into account

`

const queryParams = {
url,
geometry: { x: 151.11403770000004, y: -33.7842727 },
geometryType: geometryType === 'point' ? 'esriGeometryPoint' : 'esriGeometryPolygon',
spatialRel: 'esriSpatialRelIntersects',
where: filters,
inSR: '4326',
outSR: '4326',
returnGeometry: true,
f: 'json',
};

const queryFeature = queryFeatures(queryParams);`

FYI, REST API with same data provided works correctly. See => https://maps.six.nsw.gov.au/arcgis/rest/services/public/NSW_Cadastre/MapServer/9/query?where=&text=&objectIds=&time=&geometry=%7B+x%3A+151.11403770000004%2C+y%3A+-33.7842727+%7D&geometryType=esriGeometryPoint&inSR=4326&spatialRel=esriSpatialRelIntersects&relationParam=&outFields=&returnGeometry=true&returnTrueCurves=false&maxAllowableOffset=&geometryPrecision=&outSR=4326&returnIdsOnly=false&returnCountOnly=false&orderByFields=&groupByFieldsForStatistics=&outStatistics=&returnZ=false&returnM=false&gdbVersion=&returnDistinctValues=false&resultOffset=&resultRecordCount=&queryByDistance=&returnExtentsOnly=false&datumTransformation=&parameterValues=&rangeValues=&f=html

@jsauca jsauca changed the title queryFeatures function - inSR paramaters not taken in account queryFeatures function - inSR paramater not taken in account Oct 17, 2019
@jgravois
Copy link
Contributor

jgravois commented Oct 17, 2019

similar: Esri/esri-leaflet#1167

a PR with a fix would be happily landed. in the meantime you can:

const queryParams = {
  url,
  params: { inSR: { wkid: 4326 } }
}

@mpayson
Copy link
Contributor

mpayson commented Dec 14, 2019

Added in #641 - closing

@mpayson mpayson closed this as completed Dec 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants