AnsweredAssumed Answered

Reproject a Graphic from 102100 to 4326

Question asked by FloCAD on Sep 25, 2015
Latest reply on Oct 1, 2015 by FloCAD

Hello,

 

Here I have two graphics ( one is a polygon and the other one is compound of several points ) and my objective is to produce something that looks like this: ArcGIS API for JavaScript Sandbox

 

My problem is that the polygon is in 4326 , the map is apparently (not sure ) in 102100 , and the points are in 4326 and apparently I have a problem when using this function:

        relationParams.geometries1 = graphicsUtils.getGeometries([this.entry4Analysis.featureSet.features[0]]);

        relationParams.geometries2 = graphicsUtils.getGeometries([this.spatialFilter4Analysis.graphics[2]]);

        relationParams.relation = RelationParameters.SPATIAL_REL_WITHIN;

           

        this.geometryService.relation(relationParams, this.addRelateResultsToMap);

 

So I tried different syntax (like : .setOutSpatialReference) to change the projection of one or other of the graphics when I launch the spatial analysis but nothing happens...

 

So now I really need help...

 

Thank you very much by advance !

Outcomes