REST Endpoint Documentation...
Does anyone know of a document explaining/showing the syntax for REST 3.4 operations like print and export (ie JSON format, etc.) I can capture the REST requests via Fiddler, but it would be great to have more detail.
Thanks in advance,
Mark
-
Mark,
You can find some documentation in the Reference section of the Resource Center:
- (http://resources.geocortex.com/essentials/apis/rest) http://resources.geocortex.com/essentials/apis/rest/
- http://resources.geocortex.com/essentials/apis/rest/Reference/Build/Default/RunPrintTemplate.html
This is not up to date so there are a number of endpoints and parameters that won't be included. But hopefully it is of some help.
The "export" endpoint has the same parameters/format as the "print" endpoint with two additional properties:
- imageHeight - integer - the height of the output image in pixels
- imageWidth - integer - the width of the output image in pixels
Also, outputFormat is limited to Bmp | Jpeg | Png | Tiff.
--Ryan
0 -
Hi Ryan
I am trying to make use of the (http://geo.rdc.govt.nz/Geocortex/Essentials/External/REST/sites/Graffiti/map/export?bbox=+++19614463.320%2C+-4591459.247%2C++19614468.993%2C+-4591457.755&bboxSR=&targetSR=&time=&graphics=&layers=Aerials%28show%3A*%29%3B+Cadastral%28show%3A13%29&layerDefinitions=%7B1%3A%7B%2211%22%3A%22id%3D1%22%7D%7D&opacity=0.5&mapServiceOptions=&featureLayerOptions=&scale=2000&dpi=&imageWidth=500&imageHeight=500&outputFormat=Jpeg&f=html) REST endpoint of a site to Export the map of a Geocortex site.
Happily we are getting a map with the dimensions that we wish, at the location, scale etc. The part that I need some guidance is on is how do I have a layer in a mapservice export with it's (parcel) labels turned off?
ie when the site is in use the user can turn labels on and off. They are turned in by default and for the export I would like them turned off.
I was trying to make use of the Layers parameter by using:
Aerials(show:*); Cadastral(hide:*)
but not getting any effect.
If I use a Layer Definition of:
{1:{"11":"id=1"}}
when 1 is the mapservice id and 11 is the layer id (for the parcel layer) I can manage to not show all parcels.
But how do I just have layer 11 with the labels turned off?
Regards
Ralph
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare