semiautomaticgit / SemiAutomaticClassificationPlugin

https://fromgistors.blogspot.com/p/semi-automatic-classification-plugin.html
Other
137 stars 50 forks source link

Vector to Raster Problem #48

Closed Scibeeria closed 3 years ago

Scibeeria commented 5 years ago

I am trying to convert the vector for a cloud mask to a raster following your excellent video tutorial. I follow all your steps for "Vector to Raster." For some reason, the screen that I receive when I hit run is not the same as the video. There is no save "raster output screen," but a similar screen to saving the vector file. I type in mask.tif (screenshot) and the execution dialogue runs straight to 100% and stays there. When I hit cancel, I get a red line with Error [34] Clip area outside image.

I look forward to you "switching on the light" for me.

Cheers, Peter

semiautomaticgit commented 5 years ago

Hello Peter, please follow these steps to copy the SCP log file https://semiautomaticclassificationmanual.readthedocs.io/en/latest/faq.html#how-can-i-report-an-error

Scibeeria commented 5 years ago

Luca,

Thank you so much for your quick response. I am a neophyte with satellite image processing, but I am warming to your plugin. Your tutorials are great.

I have run the process with a Sentinel image and not the sample dataset. I will try that next. For now, here is the log file from the debug process.

Cheers, Pete

From: Luca Congedo notifications@github.com Reply-To: semiautomaticgit/SemiAutomaticClassificationPlugin reply@reply.github.com Date: Saturday, 10 November 2018 at 22:11 To: semiautomaticgit/SemiAutomaticClassificationPlugin SemiAutomaticClassificationPlugin@noreply.github.com Cc: Peter Flindell peter@flindell.org, Author author@noreply.github.com Subject: Re: [semiautomaticgit/SemiAutomaticClassificationPlugin] Vector to Raster Problem (#48)

Hello Peter, please follow these steps to copy the SCP log file https://semiautomaticclassificationmanual.readthedocs.io/en/latest/faq.html#how-can-i-report-an-error

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/semiautomaticgit/SemiAutomaticClassificationPlugin/issues/48#issuecomment-437617828, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Aq190LtL-VCTVALBVpmzylOuglutQjOoks5utzLXgaJpZM4YYAA7.

Date Function Message 2018-11-11 07.55.34.923620 SemiAutomaticClassificationPlugin.maininterface.settings-logCheckbox 148 LOG ACTIVE SemiAutomaticClass Version 6.2.6 - Greenbelt - QGIS v. 30401 L:en - OS Darwin - 64bit =Yes 2018-11-11 07.56.43.187845 SemiAutomaticClassificationPlugin.core.utils-clearTable 6651
2018-11-11 07.56.43.188923 SemiAutomaticClassificationPlugin.core.utils-clearTable 6651
2018-11-11 07.56.43.189892 SemiAutomaticClassificationPlugin.core.utils-clearTable 6651
2018-11-11 07.56.43.190665 SemiAutomaticClassificationPlugin.core.utils-clearTable 6651
2018-11-11 07.56.43.191641 SemiAutomaticClassificationPlugin.core.utils-clearTable 6651
2018-11-11 07.56.43.246358 SemiAutomaticClassificationPlugin.spectralsignature.scatter_plot-scatterPlot 483 scatter plot created 2018-11-11 07.56.43.248376 SemiAutomaticClassificationPlugin.spectralsignature.scatter_plot-scatterPlotListTable 577 list created 2018-11-11 07.56.43.290032 SemiAutomaticClassificationPlugin.spectralsignature.spectralsignatureplot-signaturePlot 732 plot created 2018-11-11 07.56.43.291065 SemiAutomaticClassificationPlugin.spectralsignature.spectralsignatureplot-refreshPlot 465
2018-11-11 07.56.43.291949 SemiAutomaticClassificationPlugin.core.utils-clearTable 6651
2018-11-11 07.56.43.294405 SemiAutomaticClassificationPlugin.maininterface.LCSignatureThresholdTab-checkIntersections 172
2018-11-11 07.56.43.295434 SemiAutomaticClassificationPlugin.maininterface.LCSignatureThresholdTab-higlightRowsByID 220
2018-11-11 07.56.43.296387 SemiAutomaticClassificationPlugin.maininterface.LCSignatureThresholdTab-LCSignatureThresholdListTable 142 signature list threshold created 2018-11-11 07.56.43.326899 SemiAutomaticClassificationPlugin.core.utils-readProjectVariable 5217 variable: qmlfile - value: 2018-11-11 07.56.43.347449 SemiAutomaticClassificationPlugin.core.utils-readProjectVariable 5217 variable: calculateSignature - value: Yes 2018-11-11 07.56.43.381614 SemiAutomaticClassificationPlugin.core.utils-readProjectVariable 5217 variable: saveInput - value: Yes 2018-11-11 07.56.43.385147 SemiAutomaticClassificationPlugin.core.utils-readProjectVariable 5217 variable: rapidROI - value: No 2018-11-11 07.56.43.391879 SemiAutomaticClassificationPlugin.core.utils-readProjectVariable 5217 variable: vegetationIndex - value: Yes 2018-11-11 07.56.43.393979 SemiAutomaticClassificationPlugin.core.utils-readProjectVariable 5217 variable: rapidROIBand - value: 1 2018-11-11 07.56.43.408623 SemiAutomaticClassificationPlugin.core.utils-readProjectVariable 5217 variable: ClassAlgorithm - value: Minimum Distance 2018-11-11 07.56.43.420443 SemiAutomaticClassificationPlugin.core.utils-readProjectVariable 5217 variable: previewSize - value: 200 2018-11-11 07.56.43.424707 SemiAutomaticClassificationPlugin.core.utils-readProjectVariable 5217 variable: minROISize - value: 60 2018-11-11 07.56.43.426881 SemiAutomaticClassificationPlugin.core.utils-readProjectVariable 5217 variable: maxROIWidth - value: 100 2018-11-11 07.56.43.428935 SemiAutomaticClassificationPlugin.core.utils-readProjectVariable 5217 variable: rangeRadius - value: 0.01 2018-11-11 07.56.43.430976 SemiAutomaticClassificationPlugin.core.utils-readProjectVariable 5217 variable: ROIIDField - value: 1 2018-11-11 07.56.43.433008 SemiAutomaticClassificationPlugin.core.utils-readProjectVariable 5217 variable: ROIInfoField - value: C 1 2018-11-11 07.56.43.435027 SemiAutomaticClassificationPlugin.core.utils-readProjectVariable 5217 variable: ROIMacroclassInfoField - value: MC 1 2018-11-11 07.56.43.437135 SemiAutomaticClassificationPlugin.core.utils-readProjectVariable 5217 variable: customExpression - value: 2018-11-11 07.56.43.439228 SemiAutomaticClassificationPlugin.core.utils-readProjectVariable 5217 variable: ROIMacroIDField - value: 1 2018-11-11 07.56.43.441321 SemiAutomaticClassificationPlugin.core.utils-readProjectVariable 5217 variable: maskFilePath - value: 2018-11-11 07.56.43.443402 SemiAutomaticClassificationPlugin.core.utils-readProjectVariable 5217 variable: maskFileState - value: 0 2018-11-11 07.56.43.445460 SemiAutomaticClassificationPlugin.dock.scpdock-setMaskCheckbox 340 mask checkbox 2018-11-11 07.56.43.447709 SemiAutomaticClassificationPlugin.core.utils-readProjectVariable 5217 variable: bandSetsList - value: [] 2018-11-11 07.56.43.449884 SemiAutomaticClassificationPlugin.core.utils-readProjectVariable 5217 variable: bndSetNumber - value: 0 2018-11-11 07.56.43.452406 SemiAutomaticClassificationPlugin.maininterface.algorithmWeightTab-deleteBandSetWeigthTab 144 closed band set weigth 1 2018-11-11 07.56.43.456908 SemiAutomaticClassificationPlugin.maininterface.algorithmWeightTab-addBandSetWeigthTab 136 added band set weight tab 1 2018-11-11 07.56.43.462039 SemiAutomaticClassificationPlugin.maininterface.bandsetTab-addBandSetTab 605 added band set 2018-11-11 07.56.43.466644 SemiAutomaticClassificationPlugin.maininterface.algorithmWeightTab-addBandSetWeigthTab 136 added band set weight tab 2 2018-11-11 07.56.43.471412 SemiAutomaticClassificationPlugin.maininterface.bandsetTab-addBandSetTab 605 added band set 2018-11-11 07.56.43.477183 SemiAutomaticClassificationPlugin.core.utils-readProjectVariable 5217 variable: SCP_RGBList - value: ['-', '3-2-1', '4-3-2'] 2018-11-11 07.56.43.480079 SemiAutomaticClassificationPlugin.core.utils-removeLayer 5250 layer: Virtual Band Set 2 2018-11-11 07.56.43.495293 SemiAutomaticClassificationPlugin.core.utils-createVirtualRaster 2678 virtual raster: /var/folders/77/84db8vyx4gg8lr4gklp0w4jw0000gn/T/semiautomaticclassification/20181111_075347109609/20181111_075643482941Virtual Band Set 2.vrt 2018-11-11 07.56.49.982751 SemiAutomaticClassificationPlugin.core.utils-readProjectVariable 5217 variable: SCP_DownloadTable - value: 2018-11-11 07.56.49.988309 referenceLayerName 482 reference layer name: MSK_CLOUDS_B00 MaskFeature 2018-11-11 07.56.49.991377 SemiAutomaticClassificationPlugin.core.utils-refreshVectorFields 4948
2018-11-11 07.56.49.994274 SemiAutomaticClassificationPlugin.core.utils-refreshVectorFields2 4964
2018-11-11 07.56.49.997030 refreshVectorLayer 4932 vector layers refreshed 2018-11-11 07.56.50.000336 classificationLayerName 54 classification name: RT_T35MPS_20160702T080612_B01 2018-11-11 07.56.50.003227 classificationLayerName 54 classification name: RT_T35MPS_20160702T080612_B01 2018-11-11 07.56.50.007943 refreshClassificationLayer 4911 classification layers refreshed 2018-11-11 07.56.50.011440 referenceLayerName 394 reference layer name: MSK_CLOUDS_B00 MaskFeature 2018-11-11 07.56.50.014420 refreshReferenceLayer 410 reference layers refreshed 2018-11-11 07.56.50.017538 referenceLayerName 395 reference layer name: MSK_CLOUDS_B00 MaskFeature 2018-11-11 07.56.50.020667 refreshReferenceLayer 411 reference layers refreshed 2018-11-11 07.56.50.024075 SemiAutomaticClassificationPlugin.maininterface.landcoverchange-classificationReferenceLayerName 48 reference classification name: RT_T35MPS_20160702T080612_B01 2018-11-11 07.56.50.027289 SemiAutomaticClassificationPlugin.maininterface.landcoverchange-refreshClassificationReferenceLayer 262 reference classification layers refreshed 2018-11-11 07.56.50.030354 SemiAutomaticClassificationPlugin.maininterface.landcoverchange-newClassificationLayerName 249 reference classification name: RT_T35MPS_20160702T080612_B01 2018-11-11 07.56.50.033235 SemiAutomaticClassificationPlugin.maininterface.landcoverchange-refreshNewClassificationLayer 275 new classification layers refreshed 2018-11-11 07.56.50.035990 SemiAutomaticClassificationPlugin.core.utils-clearTable 6651
2018-11-11 07.56.50.038834 SemiAutomaticClassificationPlugin.maininterface.bandsetTab-rasterBandName 1015 raster band name checklist created 2018-11-11 07.56.50.042267 SemiAutomaticClassificationPlugin.core.utils-clearTable 6651
2018-11-11 07.56.50.046048 SemiAutomaticClassificationPlugin.maininterface.bandcalcTab-rasterBandName 324 raster band name checklist created 2018-11-11 07.56.50.049286 SemiAutomaticClassificationPlugin.core.utils-clearTable 6651
2018-11-11 07.56.50.052107 SemiAutomaticClassificationPlugin.core.utils-clearTable 6651
2018-11-11 07.56.50.066987 SemiAutomaticClassificationPlugin.core.utils-readProjectVariable 5217 variable: trainingLayer - value: 2018-11-11 07.56.50.070498 SemiAutomaticClassificationPlugin.core.utils-clearTable 6651
2018-11-11 07.57.22.287402 SemiAutomaticClassificationPlugin.core.utils-selectTab4MainInterface 6868 tab selected 2018-11-11 07.57.25.351523 SemiAutomaticClassificationPlugin.core.utils-selectLayerbyName 5460 layer selected: 2018-11-11 07.57.25.356517 referenceLayerName 482 reference layer name: 2018-11-11 07.57.25.361102 referenceLayerName 482 reference layer name: MSK_CLOUDS_B00 MaskFeature 2018-11-11 07.57.25.365783 SemiAutomaticClassificationPlugin.core.utils-refreshVectorFields 4948
2018-11-11 07.57.25.370305 SemiAutomaticClassificationPlugin.core.utils-refreshVectorFields2 4964
2018-11-11 07.57.25.374488 refreshVectorLayer 4932 vector layers refreshed 2018-11-11 07.57.27.167151 SemiAutomaticClassificationPlugin.core.utils-refreshVectorFields 4948
2018-11-11 07.57.29.055574 classificationLayerName 54 classification name: 2018-11-11 07.57.29.061412 classificationLayerName 54 classification name: 2018-11-11 07.57.29.066124 classificationLayerName 54 classification name: RT_T35MPS_20160702T080612_B01 2018-11-11 07.57.29.070333 classificationLayerName 54 classification name: RT_T35MPS_20160702T080612_B01 2018-11-11 07.57.29.078013 refreshClassificationLayer 4911 classification layers refreshed 2018-11-11 07.57.46.553873 SemiAutomaticClassificationPlugin.core.utils-vectorToRaster 6019 ERROR exception: 'NoneType' object has no attribute 'GetLayer' 2018-11-11 08.02.22.709869 SemiAutomaticClassificationPlugin.core.input-menuIndex 430
2018-11-11 08.02.22.819937 SemiAutomaticClassificationPlugin.core.input-menuClicked 441
2018-11-11 08.02.25.639797 SemiAutomaticClassificationPlugin.maininterface.settings-logCheckbox 151 LOG DISABLED

semiautomaticgit commented 5 years ago

Thank you Peter, I'm glad that you appreciate my work. About the issue, I think it is related to the GML mask. You can try to save the gml file as shapefile and define the coordinate reference system as WGS 84.

Scibeeria commented 5 years ago

Luca,

My apologies. This is a new language for me. What do you mean by GML?

Cheers, Peter

From: Luca Congedo notifications@github.com Reply-To: semiautomaticgit/SemiAutomaticClassificationPlugin reply@reply.github.com Date: Sunday, 11 November 2018 at 11:04 To: semiautomaticgit/SemiAutomaticClassificationPlugin SemiAutomaticClassificationPlugin@noreply.github.com Cc: Peter Flindell peter@flindell.org, Author author@noreply.github.com Subject: Re: [semiautomaticgit/SemiAutomaticClassificationPlugin] Vector to Raster Problem (#48)

Thank you Peter, I'm glad that you appreciate my work. About the issue, I think it is related to the GML mask. You can try to save the gml file as shapefile and define the coordinate reference system as WGS 84.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/semiautomaticgit/SemiAutomaticClassificationPlugin/issues/48#issuecomment-437654081, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Aq190Nn3y2jPUBlBkjlxKoNRsyI7Wm-Bks5ut-g1gaJpZM4YYAA7.

Scibeeria commented 5 years ago

Luca,

I realised that the GML file is the cloud mask that comes with the Sentinel data. Yes, I saved that as an ESRI shape file before doing the Vector to Raster conversion. I just can’t the conversion to prompt me to save a TIF file.

Cheers, Pete

From: Peter Flindell peter@flindell.org Date: Sunday, 11 November 2018 at 11:13 To: semiautomaticgit/SemiAutomaticClassificationPlugin reply@reply.github.com, semiautomaticgit/SemiAutomaticClassificationPlugin SemiAutomaticClassificationPlugin@noreply.github.com Cc: Author author@noreply.github.com Subject: Re: [semiautomaticgit/SemiAutomaticClassificationPlugin] Vector to Raster Problem (#48)

Luca,

My apologies. This is a new language for me. What do you mean by GML?

Cheers, Peter

From: Luca Congedo notifications@github.com Reply-To: semiautomaticgit/SemiAutomaticClassificationPlugin reply@reply.github.com Date: Sunday, 11 November 2018 at 11:04 To: semiautomaticgit/SemiAutomaticClassificationPlugin SemiAutomaticClassificationPlugin@noreply.github.com Cc: Peter Flindell peter@flindell.org, Author author@noreply.github.com Subject: Re: [semiautomaticgit/SemiAutomaticClassificationPlugin] Vector to Raster Problem (#48)

Thank you Peter, I'm glad that you appreciate my work. About the issue, I think it is related to the GML mask. You can try to save the gml file as shapefile and define the coordinate reference system as WGS 84.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/semiautomaticgit/SemiAutomaticClassificationPlugin/issues/48#issuecomment-437654081, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Aq190Nn3y2jPUBlBkjlxKoNRsyI7Wm-Bks5ut-g1gaJpZM4YYAA7.

semiautomaticgit commented 5 years ago

You can try to check the checkbox "Use constant value"

Scibeeria commented 5 years ago

Luca,

This box is checked. I still get the wrong dialogue box to save the raster.

Cheers, Pete

From: Luca Congedo notifications@github.com Reply-To: semiautomaticgit/SemiAutomaticClassificationPlugin reply@reply.github.com Date: Sunday, 11 November 2018 at 18:16 To: semiautomaticgit/SemiAutomaticClassificationPlugin SemiAutomaticClassificationPlugin@noreply.github.com Cc: Peter Flindell peter@flindell.org, Author author@noreply.github.com Subject: Re: [semiautomaticgit/SemiAutomaticClassificationPlugin] Vector to Raster Problem (#48)

You can try to check the checkbox "Use constant value"

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/semiautomaticgit/SemiAutomaticClassificationPlugin/issues/48#issuecomment-437683206, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Aq190CQJNotw6DOF1EPmpPV0DolEEv4Eks5uuE1ugaJpZM4YYAA7.

semiautomaticgit commented 5 years ago

Thank you, I'll look into it

semiautomaticgit commented 3 years ago

I'm closing this because of the new version 7. If you still get the same issue, please reopen it