AnsweredAssumed Answered

ArcGIS JS API 4.x BBOX issue when date line in view

Question asked by jcarasick on Jan 12, 2019

I'm having an issue with creating an SOI. I am reading the passed in bbox parameter from the JSAPI (4.10) and the bbox beyond a certain scale returns fixed xmin, xmax values. It seems to be with there is a crossing or includes the date line.

 

It seems like whenever the request includes the bboxSR and imageSR (even though they're the same) the bbox xmin, xmax params are not right. Below is a request generated by JSAPI 4.x >. I've tried multiple versions of the api and same results.

 

What i am trying to do is use the bbox to create an Extent in an SOI to do spatial filtering but drawing graphics as a result get drawn incorrectly.

 

Has anyone run into this and have a suggestion? Seems like as long as my view does not cross the date line I don't see the issue and the export image requests sets ( bboxSR: 102100 imageSR: 102100)

 

This is a problematic request.

  1. bbox:
    -9392582.035679962,2012417.2846498825,9392582.03567996,11189752.648678845
  2. bboxSR:
    {"wkt":"PROJCS[\"WGS_1984_Web_Mercator_Auxiliary_Sphere\",GEOGCS[\"GCS_WGS_1984\",DATUM[\"D_WGS_1984\",SPHEROID[\"WGS_1984\",6378137.0,298.257223563]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Mercator_Auxiliary_Sphere\"],PARAMETER[\"False_Easting\",0.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",134.47945440066346],PARAMETER[\"Standard_Parallel_1\",0.0],PARAMETER[\"Auxiliary_Sphere_Type\",0.0],UNIT[\"Meter\",1.0]]"}
  3. imageSR:
    {"wkt":"PROJCS[\"WGS_1984_Web_Mercator_Auxiliary_Sphere\",GEOGCS[\"GCS_WGS_1984\",DATUM[\"D_WGS_1984\",SPHEROID[\"WGS_1984\",6378137.0,298.257223563]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Mercator_Auxiliary_Sphere\"],PARAMETER[\"False_Easting\",0.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",134.47945440066346],PARAMETER[\"Standard_Parallel_1\",0.0],PARAMETER[\"Auxiliary_Sphere_Type\",0.0],UNIT[\"Meter\",1.0]]"}
  4. size:
    1920,938
  5. dpi:
    96
  6. format:
    png32
  7. transparent:
    true
  8. layers:
    show:-1
  9. f:
    image

Outcomes