| <html><body> |
| <style> |
| |
| body, h1, h2, h3, div, span, p, pre, a { |
| margin: 0; |
| padding: 0; |
| border: 0; |
| font-weight: inherit; |
| font-style: inherit; |
| font-size: 100%; |
| font-family: inherit; |
| vertical-align: baseline; |
| } |
| |
| body { |
| font-size: 13px; |
| padding: 1em; |
| } |
| |
| h1 { |
| font-size: 26px; |
| margin-bottom: 1em; |
| } |
| |
| h2 { |
| font-size: 24px; |
| margin-bottom: 1em; |
| } |
| |
| h3 { |
| font-size: 20px; |
| margin-bottom: 1em; |
| margin-top: 1em; |
| } |
| |
| pre, code { |
| line-height: 1.5; |
| font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| } |
| |
| pre { |
| margin-top: 0.5em; |
| } |
| |
| h1, h2, h3, p { |
| font-family: Arial, sans serif; |
| } |
| |
| h1, h2, h3 { |
| border-bottom: solid #CCC 1px; |
| } |
| |
| .toc_element { |
| margin-top: 0.5em; |
| } |
| |
| .firstline { |
| margin-left: 2 em; |
| } |
| |
| .method { |
| margin-top: 1em; |
| border: solid 1px #CCC; |
| padding: 1em; |
| background: #EEE; |
| } |
| |
| .details { |
| font-weight: bold; |
| font-size: 14px; |
| } |
| |
| </style> |
| |
| <h1><a href="mapsengine_v1.html">Google Maps Engine API</a> . <a href="mapsengine_v1.rasters.html">rasters</a></h1> |
| <h2>Instance Methods</h2> |
| <p class="toc_element"> |
| <code><a href="mapsengine_v1.rasters.files.html">files()</a></code> |
| </p> |
| <p class="firstline">Returns the files Resource.</p> |
| |
| <p class="toc_element"> |
| <code><a href="mapsengine_v1.rasters.parents.html">parents()</a></code> |
| </p> |
| <p class="firstline">Returns the parents Resource.</p> |
| |
| <p class="toc_element"> |
| <code><a href="#delete">delete(id)</a></code></p> |
| <p class="firstline">Delete a raster.</p> |
| <p class="toc_element"> |
| <code><a href="#get">get(id)</a></code></p> |
| <p class="firstline">Return metadata for a single raster.</p> |
| <p class="toc_element"> |
| <code><a href="#patch">patch(id, body)</a></code></p> |
| <p class="firstline">Mutate a raster asset.</p> |
| <p class="toc_element"> |
| <code><a href="#upload">upload(body)</a></code></p> |
| <p class="firstline">Create a skeleton raster asset for upload.</p> |
| <h3>Method Details</h3> |
| <div class="method"> |
| <code class="details" id="delete">delete(id)</code> |
| <pre>Delete a raster. |
| |
| Args: |
| id: string, The ID of the raster. Only the raster creator or project owner are permitted to delete. If the raster is included in a layer or mosaic, the request will fail. Remove it from all parents prior to deleting. (required) |
| </pre> |
| </div> |
| |
| <div class="method"> |
| <code class="details" id="get">get(id)</code> |
| <pre>Return metadata for a single raster. |
| |
| Args: |
| id: string, The ID of the raster. (required) |
| |
| Returns: |
| An object of the form: |
| |
| { # A geo-referenced raster. |
| "files": [ # The files associated with this Raster. |
| { # A single File, which is a component of an Asset. |
| "size": "A String", # The size of the file in bytes. |
| "uploadStatus": "A String", # The upload status of the file. |
| "filename": "A String", # The name of the file. |
| }, |
| ], |
| "attribution": "A String", # The name of the attribution to be used for this Raster. |
| "description": "A String", # The description of this Raster, supplied by the author. |
| "processingStatus": "A String", # The processing status of this Raster. |
| "draftAccessList": "A String", # Deprecated: The name of an access list of the Map Editor type. The user on whose behalf the request is being sent must be an editor on that access list. Note: Google Maps Engine no longer uses access lists. For backward compatibility, the API still accepts access lists for projects that are already using access lists. If you created a GME account/project after July 14th, 2014, you will not be able to send API requests that include access lists. The API does not yet support the new permissions model. When you create a map via the API without specifying permissions, the account that created the map is the owner and has effective administrator access. Users can then use the Maps Engine user interface to adjust the permissions. This is a temporary workaround until the API supports the new permissions model. Read Add new users and groups in the Google Maps Engine help center for more information. |
| "projectId": "A String", # The ID of the project that this Raster is in. |
| "tags": [ # Tags of this Raster. |
| "A String", |
| ], |
| "creationTime": "A String", # The creation time of this raster. The value is an RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). |
| "name": "A String", # The name of this Raster, supplied by the author. |
| "etag": "A String", # The ETag, used to refer to the current version of the asset. |
| "acquisitionTime": { # Acquisition time represents acquired time of a raster. # The acquisition time of this Raster. |
| "start": "A String", # The acquisition time, or start time if acquisition time is a range. The value is an RFC 3339 formatted date-time value (1970-01-01T00:00:00Z). |
| "end": "A String", # The end time if acquisition time is a range. The value is an RFC 3339 formatted date-time value (1970-01-01T00:00:00Z). |
| "precision": "A String", # The precision of acquisition time. |
| }, |
| "maskType": "autoMask", # The mask processing type of this Raster. |
| "lastModifiedTime": "A String", # The last modified time of this raster. The value is an RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). |
| "id": "A String", # A globally unique ID, used to refer to this Raster. |
| "rasterType": "A String", # The type of this Raster. Always "image" today. |
| "bbox": [ # A rectangular bounding box which contains all of the data in this Raster. The numbers represent latitude and longitude in decimal degrees. |
| 3.14, |
| ], |
| }</pre> |
| </div> |
| |
| <div class="method"> |
| <code class="details" id="patch">patch(id, body)</code> |
| <pre>Mutate a raster asset. |
| |
| Args: |
| id: string, The ID of the raster. (required) |
| body: object, The request body. (required) |
| The object takes the form of: |
| |
| { # A geo-referenced raster. |
| "files": [ # The files associated with this Raster. |
| { # A single File, which is a component of an Asset. |
| "size": "A String", # The size of the file in bytes. |
| "uploadStatus": "A String", # The upload status of the file. |
| "filename": "A String", # The name of the file. |
| }, |
| ], |
| "attribution": "A String", # The name of the attribution to be used for this Raster. |
| "description": "A String", # The description of this Raster, supplied by the author. |
| "processingStatus": "A String", # The processing status of this Raster. |
| "draftAccessList": "A String", # Deprecated: The name of an access list of the Map Editor type. The user on whose behalf the request is being sent must be an editor on that access list. Note: Google Maps Engine no longer uses access lists. For backward compatibility, the API still accepts access lists for projects that are already using access lists. If you created a GME account/project after July 14th, 2014, you will not be able to send API requests that include access lists. The API does not yet support the new permissions model. When you create a map via the API without specifying permissions, the account that created the map is the owner and has effective administrator access. Users can then use the Maps Engine user interface to adjust the permissions. This is a temporary workaround until the API supports the new permissions model. Read Add new users and groups in the Google Maps Engine help center for more information. |
| "projectId": "A String", # The ID of the project that this Raster is in. |
| "tags": [ # Tags of this Raster. |
| "A String", |
| ], |
| "creationTime": "A String", # The creation time of this raster. The value is an RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). |
| "name": "A String", # The name of this Raster, supplied by the author. |
| "etag": "A String", # The ETag, used to refer to the current version of the asset. |
| "acquisitionTime": { # Acquisition time represents acquired time of a raster. # The acquisition time of this Raster. |
| "start": "A String", # The acquisition time, or start time if acquisition time is a range. The value is an RFC 3339 formatted date-time value (1970-01-01T00:00:00Z). |
| "end": "A String", # The end time if acquisition time is a range. The value is an RFC 3339 formatted date-time value (1970-01-01T00:00:00Z). |
| "precision": "A String", # The precision of acquisition time. |
| }, |
| "maskType": "autoMask", # The mask processing type of this Raster. |
| "lastModifiedTime": "A String", # The last modified time of this raster. The value is an RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). |
| "id": "A String", # A globally unique ID, used to refer to this Raster. |
| "rasterType": "A String", # The type of this Raster. Always "image" today. |
| "bbox": [ # A rectangular bounding box which contains all of the data in this Raster. The numbers represent latitude and longitude in decimal degrees. |
| 3.14, |
| ], |
| } |
| |
| </pre> |
| </div> |
| |
| <div class="method"> |
| <code class="details" id="upload">upload(body)</code> |
| <pre>Create a skeleton raster asset for upload. |
| |
| Args: |
| body: object, The request body. (required) |
| The object takes the form of: |
| |
| { # A geo-referenced raster. |
| "files": [ # The files associated with this Raster. |
| { # A single File, which is a component of an Asset. |
| "size": "A String", # The size of the file in bytes. |
| "uploadStatus": "A String", # The upload status of the file. |
| "filename": "A String", # The name of the file. |
| }, |
| ], |
| "attribution": "A String", # The name of the attribution to be used for this Raster. |
| "description": "A String", # The description of this Raster, supplied by the author. |
| "processingStatus": "A String", # The processing status of this Raster. |
| "draftAccessList": "A String", # Deprecated: The name of an access list of the Map Editor type. The user on whose behalf the request is being sent must be an editor on that access list. Note: Google Maps Engine no longer uses access lists. For backward compatibility, the API still accepts access lists for projects that are already using access lists. If you created a GME account/project after July 14th, 2014, you will not be able to send API requests that include access lists. The API does not yet support the new permissions model. When you create a map via the API without specifying permissions, the account that created the map is the owner and has effective administrator access. Users can then use the Maps Engine user interface to adjust the permissions. This is a temporary workaround until the API supports the new permissions model. Read Add new users and groups in the Google Maps Engine help center for more information. |
| "projectId": "A String", # The ID of the project that this Raster is in. |
| "tags": [ # Tags of this Raster. |
| "A String", |
| ], |
| "creationTime": "A String", # The creation time of this raster. The value is an RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). |
| "name": "A String", # The name of this Raster, supplied by the author. |
| "etag": "A String", # The ETag, used to refer to the current version of the asset. |
| "acquisitionTime": { # Acquisition time represents acquired time of a raster. # The acquisition time of this Raster. |
| "start": "A String", # The acquisition time, or start time if acquisition time is a range. The value is an RFC 3339 formatted date-time value (1970-01-01T00:00:00Z). |
| "end": "A String", # The end time if acquisition time is a range. The value is an RFC 3339 formatted date-time value (1970-01-01T00:00:00Z). |
| "precision": "A String", # The precision of acquisition time. |
| }, |
| "maskType": "autoMask", # The mask processing type of this Raster. |
| "lastModifiedTime": "A String", # The last modified time of this raster. The value is an RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). |
| "id": "A String", # A globally unique ID, used to refer to this Raster. |
| "rasterType": "A String", # The type of this Raster. Always "image" today. |
| "bbox": [ # A rectangular bounding box which contains all of the data in this Raster. The numbers represent latitude and longitude in decimal degrees. |
| 3.14, |
| ], |
| } |
| |
| |
| Returns: |
| An object of the form: |
| |
| { # A geo-referenced raster. |
| "files": [ # The files associated with this Raster. |
| { # A single File, which is a component of an Asset. |
| "size": "A String", # The size of the file in bytes. |
| "uploadStatus": "A String", # The upload status of the file. |
| "filename": "A String", # The name of the file. |
| }, |
| ], |
| "attribution": "A String", # The name of the attribution to be used for this Raster. |
| "description": "A String", # The description of this Raster, supplied by the author. |
| "processingStatus": "A String", # The processing status of this Raster. |
| "draftAccessList": "A String", # Deprecated: The name of an access list of the Map Editor type. The user on whose behalf the request is being sent must be an editor on that access list. Note: Google Maps Engine no longer uses access lists. For backward compatibility, the API still accepts access lists for projects that are already using access lists. If you created a GME account/project after July 14th, 2014, you will not be able to send API requests that include access lists. The API does not yet support the new permissions model. When you create a map via the API without specifying permissions, the account that created the map is the owner and has effective administrator access. Users can then use the Maps Engine user interface to adjust the permissions. This is a temporary workaround until the API supports the new permissions model. Read Add new users and groups in the Google Maps Engine help center for more information. |
| "projectId": "A String", # The ID of the project that this Raster is in. |
| "tags": [ # Tags of this Raster. |
| "A String", |
| ], |
| "creationTime": "A String", # The creation time of this raster. The value is an RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). |
| "name": "A String", # The name of this Raster, supplied by the author. |
| "etag": "A String", # The ETag, used to refer to the current version of the asset. |
| "acquisitionTime": { # Acquisition time represents acquired time of a raster. # The acquisition time of this Raster. |
| "start": "A String", # The acquisition time, or start time if acquisition time is a range. The value is an RFC 3339 formatted date-time value (1970-01-01T00:00:00Z). |
| "end": "A String", # The end time if acquisition time is a range. The value is an RFC 3339 formatted date-time value (1970-01-01T00:00:00Z). |
| "precision": "A String", # The precision of acquisition time. |
| }, |
| "maskType": "autoMask", # The mask processing type of this Raster. |
| "lastModifiedTime": "A String", # The last modified time of this raster. The value is an RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). |
| "id": "A String", # A globally unique ID, used to refer to this Raster. |
| "rasterType": "A String", # The type of this Raster. Always "image" today. |
| "bbox": [ # A rectangular bounding box which contains all of the data in this Raster. The numbers represent latitude and longitude in decimal degrees. |
| 3.14, |
| ], |
| }</pre> |
| </div> |
| |
| </body></html> |