English

How To: Find the layout page size for an ArcMap service

Summary

Every ArcMap document has a defined page size and page units for its layout. By default, the layout size is set to 8.5 x 11 inches. A GET_LAYOUT request to an ArcMap service requires layout page size (specified as ENVELOPE) for proper generation of the layout.

This information can be obtained using the GET_SERVICE_INFO request to the ArcMap service.

Procedure

The page size and page units for a layout is provided within the <LAYOUTINFO> .. </LAYOUTINFO> tags in the response for GET_SERVICE_INFO request.

The attribute 'pageunits' defines the units for layout page. The layout page size is returned as an ENVELOPE with the LAYOUTINFO.

Here is a sample response which contains layout page information for a 11 x 8.5 inch layout.

Code:

<?xml version="1.0" encoding="UTF-8"?>
<ARCXML version="1.1">
...
...
<LAYOUTINFO pageunits="inches">
<ENVELOPE minx="0" miny="0" maxx="11" maxy="8.5" />
</LAYOUTINFO>
...
...
</ARCXML>

For information on how to generate a layout from an ArcMap service, refer to the ArcXML Guide on the topic "Using GET_LAYOUT and LAYOUT with ArcMap Image Services".

Related Information