[gpl_list] Lidar REST service question

HARMON Robert C * WRD Robert.C.Harmon at oregon.gov
Mon Mar 30 16:47:36 PDT 2020


Ah, the simple stuff!  Thanks Brady!!

From: gpl_list <gpl_list-bounces at listsmart.osl.state.or.us> On Behalf Of CALLAHAN Brady * OPRD via gpl_list
Sent: Monday, March 30, 2020 4:44 PM
To: gpl_list at listsmart.osl.state.or.us
Subject: Re: [gpl_list] Lidar REST service question

Hi Bob,

I just tried this:

https://gis.dogami.oregon.gov/arcgis/rest/services/lidar/DIGITAL_TERRAIN_MODEL_MOSAIC/ImageServer/identify?&geometry={"x":-123.0,"y":45.0,"spatialReference":{"wkid":4326}}&geometryType=esriGeometryPoint<https://gis.dogami.oregon.gov/arcgis/rest/services/lidar/DIGITAL_TERRAIN_MODEL_MOSAIC/ImageServer/identify?&geometry=%7b%22x%22:-123.0,%22y%22:45.0,%22spatialReference%22:%7b%22wkid%22:4326%7d%7d&geometryType=esriGeometryPoint>
&returnGeometry=false&mosaicRule=&pixelSize=&f=pjson

and it appears to work OK. Note the reduction of curly braces for the Geometry feature.

Hope it helps...


Brady Callahan, GISP GIS Program Lead, sUAS Coordinator, Oregon Imagery FIT Lead
___________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

Oregon Parks and Recreation Department
725 Summer St. NE, Suite C, Salem, Oregon 97301
503.551.1871
www.oregonstateparks.org<http://www.oregonstateparks.org>

From: gpl_list <gpl_list-bounces at listsmart.osl.state.or.us<mailto:gpl_list-bounces at listsmart.osl.state.or.us>> On Behalf Of HARMON Robert C * WRD via gpl_list
Sent: Monday, March 30, 2020 4:31 PM
To: gpl_list at listsmart.osl.state.or.us<mailto:gpl_list at listsmart.osl.state.or.us>
Subject: [gpl_list] Lidar REST service question

Greetings fellow teleworkers!

I hope you all are well.

I wrote a Python tool for ArcMap a couple of years back that grabs the elevation under a point from the bare surface lidar mosaic that DOGAMI hosts.  I'm updating the URL for the REST endpoint with the new folder structure that DOGAMI implemented in February.  It's not working now even with the URL path updated.  I was wondering if you knew of anybody that's using the REST services in this way so I can see what I'm doing wrong?

This was the URL that I was using in my code which worked (with sample lat/long (45, -123)):

https://gis.dogami.oregon.gov/arcgis/rest/services/Public/BareEarth/ImageServer/identify?&geometry={{"x":-123.0,"y":45.0,"spatialReference":{{"wkid":4326}}}}&geometryType=esriGeometryPoint<https://gis.dogami.oregon.gov/arcgis/rest/services/Public/BareEarth/ImageServer/identify?&geometry=%7b%7b%22x%22:-123.0,%22y%22:45.0,%22spatialReference%22:%7b%7b%22wkid%22:4326%7d%7d%7d%7d&geometryType=esriGeometryPoint>
&returnGeometry=false&mosaicRule=&pixelSize=&f=pjson

Which I updated to:

https://gis.dogami.oregon.gov/arcgis/rest/services/lidar/DIGITAL_TERRAIN_MODEL_MOSAIC/ImageServer/identify?&geometry={{"x":-123.0,"y":45.0,"spatialReference":{{"wkid":4326}}}}&geometryType=esriGeometryPoint<https://gis.dogami.oregon.gov/arcgis/rest/services/lidar/DIGITAL_TERRAIN_MODEL_MOSAIC/ImageServer/identify?&geometry=%7b%7b%22x%22:-123.0,%22y%22:45.0,%22spatialReference%22:%7b%7b%22wkid%22:4326%7d%7d%7d%7d&geometryType=esriGeometryPoint>
&returnGeometry=false&mosaicRule=&pixelSize=&f=pjson

Any suggestions would be appreciated.

Thanks,
Bob



--
Robert Harmon, GISP
NHD Steward, State of Oregon
GIS Coordinator | Oregon Water Resources Dept.
725 Summer St. NE, Suite A | Salem, OR  97301-1266
503.986.0866 | robert.c.harmon at oregon.gov<mailto:robert.c.harmon at oregon.gov> | https://www.oregon.gov/OWRD

[cid:image001.png at 01D606B2.DC5631B0]
Integrity | Service | Technical Excellence | Teamwork | Forward-Looking

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://omls.oregon.gov/pipermail/gpl_list/attachments/20200330/9fb8c34c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 10074 bytes
Desc: image001.png
URL: <https://omls.oregon.gov/pipermail/gpl_list/attachments/20200330/9fb8c34c/attachment.png>


More information about the gpl_list mailing list