NewtonI

'Export' command and 'layerDefs' parameter

Discussion created by NewtonI on Aug 27, 2012
Hi!

I execute 'export' rest command. And seems 'layerDefs' parameter doesn't work. Any of correct where clause export all objects.
(Wrong where clause exports no objects.)
Query command works correctly with the same where clause.
Does anyone have some ideas?

The example is here:
http://93.159.234.72/ArcGIS/rest/services/Atlas_agricultural/MapServer/export?bbox=-230693.200000,5546251.000000,-150487.800000,5660849.000000&size=972,533&format=png32&transparent=true&f=image&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\",40.0],PARAMETER[\"Standard_Parallel_1\",0.0],PARAMETER[\"Auxiliary_Sphere_Type\",0.0],UNIT[\"Meter\",1.0]]"}&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\",40.0],PARAMETER[\"Standard_Parallel_1\",0.0],PARAMETER[\"Auxiliary_Sphere_Type\",0.0],UNIT[\"Meter\",1.0]]"}&layers=show:38&layerDefs=38:reg_ids = 'dfdfdfd'

Outcomes