0

I have various shapefiles - some created by others, some created by my self. They should all have the same size of the underlying Raster file.

The shapefiles have been created on top of a Raster file (in QGIS) with Coordinate System WGS84 /UTM zone 45N. I checked the Options in QGIS - Shapes and Raster use the same Coordinate System.

When importing the Shapefiles to Erdas Imagine, everything looks fine.

In eCognition the shapefiles doesn't fit to the extend of the Raster file.

Where can I solve this problem? Do I have to change something in QGIS or is it a eCognition problem?

Shapefile created in QGIS - Displayed in eCognition

  • For which purpose you need to process the shape file in eCognition? – Sandhya Sep 16 '13 at 9:40
  • I have some sample points that I want to use for classification. So I do a coarse multi resolution segmentation first. Than I do a second segmentation with a Threshold of "Num. of overlap samples (Thematic Objects) >0" – Nicolas Sep 16 '13 at 11:59
  • 1
    if you want to use use shapefile for classification do the chessboard segmentation as i said already and use geometrical parameters to classify the image objects – Sandhya Sep 16 '13 at 12:23
  • Thank you for this information, maybe my question was not very exact. My problem is, that the imported shapefile is not congruent to the raster file. – Nicolas Sep 16 '13 at 12:45
  • did you check your planar units of your shape file is same as in your image? – Sandhya Sep 17 '13 at 4:26
3

You can not directly view the shape file in eCognition. But you can use the shape file in the process.

Import the shape as 'Thematic layer'. If you want to use the shape file to segment the image, use chessboard segmentation with the object size more than your image file and select 'yes' to select which shape file you want to use in the place of 'Thematic layer usage'. Execute the process. If you want use the shape file for other application, use that in the process when writing rule set. enter image description here enter image description here

  • Problem solved: The subset selection window simulates wrong extend of the imported Thematic Layers. However this was irritating me, and I could not check with my point-shapefile. Some test with polygon shapefile (like your explanation) delivered answer. Shapefile was at exactly the right place. – Nicolas Sep 18 '13 at 7:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.