Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

DOWNLOADING AND DISPLAYING SVG

Table of Contents

...

maxLevel3

...

minLevel

...

2
classtoc-style

The SVG download service returns annotations associated with the specified SectionImage as scalable vector graphics (SVG). Examples of annotations that can be retrieved include hot spots and drawings of Structure boundaries on AtlasImages. Add the "groups=" parameter and specify one or more GraphicGroupLabel.id delimited by commas to filter the types of SVG returned.

Prototype

No Format

http://api.brain-map.org/api/v2/svg_download/[SectionImage.id]?groups=[#, #, #...]

...

Find Atlases that have AtlasImages annotated with Structure boundaries, and the relevant GraphicGroupLabel.ids:

No Format

http://api.brain-map.org/api/v2/data/query.xml?criteria=
model::Atlas,
rma::include,graphic_group_labels[name$il'Atlas*'],
rma::options[only$eq'atlases.id,atlases.name,graphic_group_labels.id']

Download a list of AtlasImages from the "Mouse, P56 Coronal" Atlas (id=1) that have Structure boundary annotations (GraphicGroupLabel.id=28):

No Format

http://api.brain-map.org/api/v2/data/query.csv?criteria=
model::AtlasImage,
rma::criteria,atlas_data_set(atlases[id$eq1]),graphic_objects(graphic_group_label[id$eq28]),
rma::options[tabular$eq'sub_images.id'][order$eq'sub_images.id']
&num_rows=all&start_row=0

Download the structure boundary annotations (GraphicGroupLabel.id=28) for an AtlasImage (id=100960033) as a file (.svg):

No Format

http://api.brain-map.org/api/v2/svg_download/100960033?groups=28

Display SVG in most browsers:

No Format

http://api.brain-map.org/api/v2/svg/100960033?groups=28

Parameters

filename

Integer

SectionImage.id identifying the SVG to download.

groups

list of Group.id (optional)

Filter the Groups to include in the SVG

Returns

SVG as either a downloaded file or displayed in the browser.