こんにちは<\/P>
<\/P>
ラスター ファイルからシェイプファイルの領域を切り取る解決策はまだ見つかっていません。<\/P>
より正確には、最終結果で誤った分類を排除するために、研究領域(ラスター ファイル)から水域(シェイプファイル)を除外したいと考えています。<\/P>
ありがとうございます<\/P><\/BODY><\/HTML>
I have had some success clipping rasters with vectors using the tools available in a mosaic dataset.
In particular the 'Import Footprint Or Boundary' tool.
If you already have a shapefile defining 'water areas' then you could clip this out from the raster's footprint and then import it back in (joining by a field - I usually choose 'Name').
Before this step you would of course need to add your raster into a mosaic dataset (in a file GDB).
then export out the raw footprints using the 'Copy Features' tool, where in the screenshot below, 'test_md" is the mosaic dataset and '\Footprint' is the footprint of your raster.
Perform desktop clipping or editing functions in arcGIS Pro and import the raster back into the mosaic dataset with the option checked to 'build boundary'.
Also set the default option for clipping the raster to it's footprint and boundary in the Mosaic Dataset Properties (right-click on the mosaic dataset in the file GDB).
Have you looked at the Extract by Mask tool?
Thanks for your response. changing the water value wasnt possible in this case because it was already incorrectly classified as a mix of different classes. With the clipping of the shapefile i wanted to eliminate this error.
thanks for the quick response. i must had overlooked that menu. im not used to work with the pro version yet
Slight correction, you do not need to persist the file after the Clip Raster function.
You can can use that layer in most raster workflows (including analysis and classification).
(I updated my post above to remove that to not confuse anyone)
Hello Dan.
Pro 2.7 is still in Alpha.
I do not have a date on when Beta will be ready.
Is 2.7 still in Alpha? or is Beta opening soon?
The Clip raster function can clip out (mask) the Inside of a raster dataset. (BTW this URL will be out of date when Pro 2.7 help is released, just do a search on `Clip function` if you need to access this link later).
Within the Clip function, set the parameters as follows: - Raster = navigate or use the drop-down to select your raster
- Clipping Type = Inside (This will mask out features in your raster dataset)
- Clipping Geometry / Raster = your feature class (lakes)
- Use input features for clipping geometry = checked on (so that it only uses the features within your feature class)
Then click `Create new layer` to run the function
Now your raster function layer is ready to use in your analysis and classification
You could set the water area to null if you have no other null values in the raster
Set Null (Spatial Analyst)—ArcGIS Pro | Documentation
or you could use Combine and assign a particular value to the water area.
The solution will depend on what and how you are doing the classification
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.