Add layers in SMCE

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Add layers in SMCE

sareh_mehr3
Hi,
I have problem in adding data when working with SMCE.
I converted raster layers to ASCII and imported them in ILWIS, but when I
created criteria tree and refer to data directory; for the first factor show
all layers but for other just show one layer that I added for last factor.
Any body can help me what's wrong?
<http://ilwis.forum.52north.org/file/n4026087/1.png>
<http://ilwis.forum.52north.org/file/n4026087/2.png>





--
View this message in context: http://ilwis.forum.52north.org/Add-layers-in-SMCE-tp4026087.html
Sent from the 52° North - ILWIS Community Forum mailing list archive at Nabble.com.
_______________________________________________
Ilwis mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/ilwis
http://ilwis.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Add layers in SMCE

Bas Retsios
Hi!

During the "import" of an image to the ILWIS format, the image is
assigned a Georeference that has the same filename as the image (but
with extension .grf).

The SMCE application requires that all raster images used as "input"
share the same Georeference. This means that they must have the same
projection, the same coordinate bounds, and the same pixel size.
The first image that is selected in SMCE, determines the Georeference
that SMCE will require that the subsequent images have. If the only
selection possible is the first image again, it means that the SMCE
application has compared the Georeferences of the other images, and
found them all to be different than the one of the first image.

Note that the SMCE application compares the Georeferences by filename
(instead of comparing their projection/bounds/pixelsize, because that
would slow down the map selector).

Depending on your case, the solution is one of the two below (A or B):

A. If you are sure that all your raster images are of the same
projection, they share the same coordinate bounds, and have the same
pixelsize, then simply "swap" their georeference filename to the one of
the first image, as follows:
1. Right-click on the second raster image
2. Select "Properties"
3. Click on the georeference filename (the filename with the red-ish
icon before it) to open the selector
4. From the list that appears, choose the georeference of the first
image (if it would not "fit", you will receive an error message, and the
second image is left untouched)
5. Repeat steps 1 to 4 for all images

B. If, however, the georeferences are all different, then you will need
to choose one that best matches your study-area, and then resample the
other images to this one Georeference:
1. From the imported images, choose one that best matches your
study-area (has a representative area, and a good pixel size). Its
georeference will then be used as the "reference" georeference.
Note: there may not be an "optimal" georeference inbetween the imported
images (e.g. because the study-area is larger or smaller than that). In
this case you would need to create a new Georeference manually.
2. Go through all images that do not use this georeference. For each of
those images:
3. Right-click on the image
4. From the menu, choose "Spatial Reference Operations -> Resample ..."
5. In the "Resample Map" form that opens, choose Georeference: the one
from step (1), and a suitable Output Raster Map name (it cannot be the
same as the input map name).
6. Click "Show", wait for the computation, then confirm that the result
is correct.
7. Repeat steps 3 to 6 for all images

Option A changes the metadata of the imported image.
Option B creates a new image in the required Georeference, and copies
the values of the imported image into their new locations in the new image.

The images that result by either A or B can then be used in SMCE.

Best regards,

Bas Retsios
ILWIS team


On 15/5/2017 6:25 PM, sareh_mehr3 wrote:

> Hi,
> I have problem in adding data when working with SMCE.
> I converted raster layers to ASCII and imported them in ILWIS, but when I
> created criteria tree and refer to data directory; for the first factor show
> all layers but for other just show one layer that I added for last factor.
> Any body can help me what's wrong?
> <http://ilwis.forum.52north.org/file/n4026087/1.png>
> <http://ilwis.forum.52north.org/file/n4026087/2.png>
>
>
>
>
>
> --
> View this message in context: http://ilwis.forum.52north.org/Add-layers-in-SMCE-tp4026087.html
> Sent from the 52° North - ILWIS Community Forum mailing list archive at Nabble.com.
> _______________________________________________
> Ilwis mailing list
> [hidden email]
> http://list.52north.org/mailman/listinfo/ilwis
> http://ilwis.forum.52north.org
> Please respect our mailing list guidelines:
> http://52north.org/resources/mailing-lists-and-forums/guidelines

_______________________________________________
Ilwis mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/ilwis
http://ilwis.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Loading...