Move polygons between vector containers?


I seem unable to move polygons between vector containers. When I draw ROI polygons for the same class I like to draw each polygon in its own vector container so that I can analyze and compare the histograms and statistics across my samples. When I am satisfied that each sample (each polygon) is a good representation of my class I would like to combine the polygons into a single vector container. If I draw all polygons for a class in the same vector container to begin with, there is no way to compare the statistics and quality of the different samples that make up that class. I’m a huge fan of SNAP, but being able to move polygons from one vector container to another is very basic functionality that seems to be missing?

Many thanks,


It’s possible to do so, once the polygon has been created within one product, it’s possible to move it to the other product vector container, by right click on the class vector, and select geometry as sh.file,

other panel will pop up to save it,

Later one , activate the product you want to copy the same vector polygon sh.file by select it and from File import, Vector ESRIS sh.file,

The same vector class will be appear within the new product, Move to a new vector container,

Similar process could be done within one product,

Is that , what are you looking for?

@falahfakhri, thank you very much for your reply, I appreciate it.

Your suggestion does work, however I consider it to be a ‘workaround’, which may be the best we can do here. If I have, say, 50 samples (50 polygons) in total to represent my different classes, and each sample (polygon) is in its own vector container (for reasons I explain in my original post), it means I must individually export the vector container and import the shapefile into a new vector container 50 different times. That is a very cumbersome process when, in my view, moving geometries between vector containers should be as simple as selecting it and moving it with the mouse.

I also hope this option could be done, but let’s ask the developer, might be @marpet , @mengdahl could helps in this point,

Thank you, falahfakhri.

Hi developers @marpet and @mengdahl

Can you please confirm whether it is possible to move multiple vector geometries or import multiple shapefiles into a new vector container? I have numerous vector geometries that I have exported as shapefiles and I would like to import them into a single vector container, but they always import into SNAP as individual vector containers. As I explained earlier in this thread, I have had to create a separate vector container for every sample that I wish to analyze the sample statistics and histogram of - including for samples within the same land cover class. Now I wish to combine all the samples that are of the same land cover class into a single vector container. It seems like such a simple procedure, but so far I have been unable to do it. I’m concerned that I’m going to have to re-digitize several dozen vector geometries in order to get them into the appropriate vector container.

Many thanks,


Hi 1sarah,

Indeed the handling of shapes and geometries is not as good as could be.
SNAP is still lacking some GIS functionality because of its origin from the raster data domain. If you want to combine multiple shapefiles I would suggest to use QGIS.
There, it should be easy to merge shapfiles.

Thank you for your reply, marpet. It’s helpful to have it confirmed that it’s not possible so I don’t spend any more time on it. Your suggestion to use a GIS program to merge the shapefiles is an excellent idea.