blueherongis / Heron

An add-on for Grasshopper enabling the GIS functions of GDAL in Rhino 3d
MIT License
31 stars 19 forks source link

1. Solution exception:Input parameter index [-1] too low for Component Get REST Raster. #40

Open lleandrolludwig opened 2 years ago

lleandrolludwig commented 2 years ago

Hello, I'm following this tutorial (https://vimeo.com/470855651). For me it is very important to be able to use Heron as well as in the video. But the error "1. Solution exception:Input parameter index [-1] too low for Component Get REST Raster" appears. I've seen that this problem may be associated with http/https, but it didn't solve it. I installed Heron through PackageManager on rhino 7. I've tried on rhino 5 and 6 without success too. Any other way to resolve this error? 11

blueherongis commented 2 years ago

Hi @lleandrolludwig, this could be due to a couple of issues. Could you first try just replacing this RESTRaster component with a new one? Could you also zip your definition and post it here so I can try to replicate the error on my end? -Brian

lleandrolludwig commented 2 years ago

Hi @lleandrolludwig, this could be due to a couple of issues. Could you first try just replacing this RESTRaster component with a new one? Could you also zip your definition and post it here so I can try to replicate the error on my end? -Brian

Many thanks for the reply. I tried to replace the RESTRaster component with a new one, as a result the error changed to "1. Solution exception: The type initializer of 'RESTful.GdalConfiguration' threw an exception.".

Below are the files I am using. Thanks again for the support. error.zip

blueherongis commented 2 years ago

So this RESTful.GdalConfiguration error means Heron is having trouble finding where the GDAL libraries are installed. It seems to be hit or miss on installations from the package manager, so I've had difficulty trouble-shooting it. The work-around for this issue has been the following: in Grasshopper Settings>Solver>Plug-in Loading, scroll down to Heron and click the little puzzle piece icon so that you see the disk. This makes the Heron plugin load directly from disk. Restart Rhino/GH and let me know if this works. image

lleandrolludwig commented 2 years ago

Hello, after doing what you recommended, I got a connection problem error. I found that the firewall was blocking access to the server, I solved it. Then I saw that in addition to changing the RESTRaster component, I also needed to change the EsriRaster component (right click on the RESTRaster component). After that, the error message no longer appears. However, several notification windows appeared (I had to click several times to close), pointing out several problems (I send the screen prints below). I tried using USGS Raster, but the image doesn't show up either.

Now there is no error message, but the image does not appear.

I don't think there is much left to resolve. I apologize for the inconvenience and appreciate any suggestions or ideas

no image 1 3 4 2 .

blueherongis commented 2 years ago

Glad it's working! For the issue related to USGS Raster, when the response images say "Map data not yet available", it is likely due to the fact the service does not have imagery available at all scales/resolutions or the boundary used for the request is querying an area outside of their available imagery. Try either using a larger boundary or reducing the resolution and make sure your Earth Anchor Point is set within the US.