Timeline for Trouble using "Clip Raster by Mask Layer" algorithm QGIS
Current License: CC BY-SA 3.0
21 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 9, 2018 at 19:27 | history | edited | nmtoken | CC BY-SA 3.0 |
corrected spelling
|
Jun 28, 2016 at 14:45 | comment | added | Joseph | @Berkh - Apologies, I also wasn't aware that you were using PyQGIS. You should probably edit your question to include some code, otherwise we might not know if the code is the issue or something else :) | |
Jun 28, 2016 at 6:01 | comment | added | Andrew Jeffrey | Yeah there are other methods like the one I mentioned previously via the Raster menu. Just for testing purposes you should be able to use the output from your step 2 to clip the raster with that tool. However from the information provided I think the file path to your mask is not correct, or it's not being referenced correctly in your code. | |
Jun 28, 2016 at 5:55 | comment | added | Berkh | Yes, the file write into an output folder along with all of the other files made. I should have included PyQGIS in the title, it is in the tag though. Is there another work path that would allow you to clip a raster with 4 bands of info by a shape file? I have most of the things working, but this one step is holding everything back. | |
Jun 28, 2016 at 5:45 | comment | added | Andrew Jeffrey | Area you able to load the output from step 2 into a separate QGIS project just to make sure there is something there? - Also apologies I wasn't aware you were doing this in pyqgis, the title of the question must have been edited at some stage I assume. | |
Jun 28, 2016 at 5:32 | comment | added | Berkh | The files are all added by command line using a PyQGIS script. Good to know on the numbers. I'm mainly working on QGIS, but may switch to ArcGIS. Is that platform more stable than QGIS? | |
Jun 28, 2016 at 3:38 | comment | added | Paulo Raposo | I'm very suspicious of the | and the = in the path for the file GDAL can't open, as per the error message. Are those things QGIS added via the GUI? maybe try the same command on the GDAL command line tool, but with a path without those special characters. Also, a good idea to not start the names of rasters with a number (throws some ArcGIS tools, if you ever use those). | |
Jun 28, 2016 at 3:33 | history | edited | Berkh | CC BY-SA 3.0 |
Added more context of the process I'm using.
|
Jun 27, 2016 at 21:12 | comment | added | Andrew Jeffrey | Also you mentioned before that you are working a process that has been laid out for you. Any chance you can list or outline that process in your question so we can see the workflow? | |
Jun 27, 2016 at 21:10 | comment | added | Andrew Jeffrey | Not sure about spaces in file names. I know many years ago ArcView didn't like it, not sure if its still an issue or if its an issue in QGIS. I think it is worth a try. | |
Jun 27, 2016 at 21:06 | comment | added | Berkh | I'm not sure either. I've tried adding the shape file immediately before use and it still does not work. Does QGIS care about empty spaces in file name? | |
Jun 27, 2016 at 8:11 | comment | added | Andrew Jeffrey | Sorry about that. I mean i'm curious why the path to your mask layer is something along the lines of "layername=8 difference or shrunk boundary" and not something that looks like <layername>.shp | |
Jun 27, 2016 at 7:41 | comment | added | Berkh | Yeah, it's cut off... I have been getting similar issues with the algorithm history menu, where it cuts off after the first line of algorithm inputs and only writes the first two parameters of the algo. Maybe there is a library corrupted somewhere for handling references? The mask is already a shapefile, not sure what you mean... | |
Jun 27, 2016 at 7:37 | comment | added | Andrew Jeffrey | Hmm makes me think there is something up with the clipping mask, btw what format is the clipping mask? The path to the layer looks a bit odd to me. What happens if you convert the mask to a shapefile, and use the path to the shapefile as the clipping mask? | |
Jun 27, 2016 at 7:29 | comment | added | Berkh | That also gives me an error with not being able to open up the mask layer. "Cannot open C:/Users/Berkh/Documents/Edmonds Farm Example|layername=8 difference or shrunk boundary. " | |
Jun 25, 2016 at 1:07 | comment | added | Andrew Jeffrey | What happens when you use the clipper tool from the Raster menu at the top of your screen with the same datasets? Raster > Extraction > Clipper | |
Jun 24, 2016 at 22:29 | comment | added | Berkh | They are in the same CRS. I'm working a process that has been laid out for me, and should work. This process was used to make these files once and should make them again. I've tried every iteration of saving temp files or named ones and none make a difference. Gives the same error about not being able to find files. | |
Jun 24, 2016 at 13:54 | answer | added | Joseph | timeline score: -1 | |
Jun 24, 2016 at 7:25 | comment | added | Andrew Jeffrey | Are you able to confirm that the mask layer and the raster layer are both using the same CRS? | |
Jun 24, 2016 at 5:13 | history | edited | PolyGeo♦ | CC BY-SA 3.0 |
deleted 51 characters in body
|
Jun 23, 2016 at 22:06 | history | asked | Berkh | CC BY-SA 3.0 |