Followup: I was able to get the NAIP California WMS service working with GRASS, here were my steps:

- installed winGRASS 7.3-dev from https://wingrass.fsv.cvut.cz/grass73/x86_64/

- followed steps in the manual to execute a GetCapabilities request:

   - in "Console" tab, executed this command:

r.in.wms -c url=https://gis.apfo.usda.gov/arcgis/services/NAIP/California_2016_60cm/ImageServer/WMSServer?

- then used the "Add web service layer" menu item in GRASS:

   - File/Map display/Add web service layer

- in the "Server" box enter: https://gis.apfo.usda.gov/arcgis/services/NAIP/California_2016_60cm/ImageServer/WMSServer? and click "Connect"

   - wait for GetCapabilities to be parsed

   - you should see a new dialogue window below open, with a layer listed

- click on the layer, select "EPSG:4326" as your source projection (assuming you have setup a GRASS location for that projection), select "png", and press "Add Layer"

- the California image should appear in your map display

- note that I used another WMS service to load the world continents (such as http://demo.mapserver.org/cgi-bin/wms?) and then zoomed into California extents that way, so I could see that layer

- should look like: https://pasteboard.co/GznOi0u.png

Hope that helps!  Have a good week (and happy late Canada Day!!)

-jeff



--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/



On 2017-07-04 9:41 AM, Jeff McKenna wrote:
Hi Jeshua,

I haven't tested r.in.wms yet, but I can help you to learn about the WMS layers:

- as the r.in.wms manual[1] states, you must always look at the capabilities of the WMS service to get the layer names

- a list of NAIP services can be found at https://gis.apfo.usda.gov/arcgis/rest/services/NAIP/

- clicking on the NAIP/California service, on the resulting page there will be a small "WMS" link in the top left of the page, this is the GetCapabilities for that service, click it (https://gis.apfo.usda.gov/arcgis/services/NAIP/California_2016_60cm/ImageServer/WMSServer?request=GetCapabilities&service=WMS)

- look for a <layer> <name> parameter in that response. Unfortunately ArcGIS services are awful for metadata, so you can see here that the layer is named "0" (lovely, so very helpful, ha).

- if you want another way to find your WMS layer names, use that service in QGIS and click on the "Add WMS layer" button, create a new connection, and use this for the URL: https://gis.apfo.usda.gov/arcgis/services/NAIP/California_2016_60cm/ImageServer/WMSServer?

Hope that helps.

[1] https://grass.osgeo.org/grass73/manuals/r.in.wms.html

-jeff



_______________________________________________
grass-user mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to