bugpktools - Bugs: bug #47257, pkextract not possible to extract...

 
 

bug #47257: pkextract not possible to extract points for class label 0

Submitted by:  renos <renos>
Submitted on:  Thu 25 Feb 2016 02:48:26 PM UTC  
 
Category: command line utilitySeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Pieter kempeneers <kempenep>
Open/Closed: ClosedOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 16 Mar 2016 01:04:47 PM UTC, comment #2:

Fixed in version 2.6.7. Notice that from v2.6.7 the pkextract tool will be replaced with:
pkextractogr: extract (OGR) vector sample from raster dataset
pkextractimg: extract (GDAL) raster sample from raster dataset

In the new version pkextractimg it is possible to extract points for class label 0:
pkextractimg -i raseter.tif -s sample.tif -c 0 -o output.sqlite

The new version of pkextractogr has been fully redesigned and support multiple rules in a single run:
pkextractogr -i raster.tif -s sample.sqlite -r mean -r stdev -o output.sqlite

The output.sqlite contains fields for both mean and stdev values.

Pieter kempeneers <kempenep>
Project AdministratorIn charge of this item.
Fri 04 Mar 2016 12:10:26 PM UTC, comment #1:

This is correct, class labels 0 are considered as "no data" and not extracted. I could consider changing this if there is a need. For now, if possible, re-class label 0 to a different class number (1-255) before to extract.

Pieter kempeneers <kempenep>
Project AdministratorIn charge of this item.
Thu 25 Feb 2016 02:48:26 PM UTC, original submission:

First, sorry for submitting this twice.

When using pkextract to collect training samples based on a mask (.tif format) with the class labels 0 and 255, I get following error message:

pkextract: pkextract.cc:613: int main(int, char**): Assertion `class_opt[0]' failed.

renos <renos>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by kempenep (Posted a comment)
  • -unavailable- added by renos (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 16 Mar 2016 01:04:47 PM UTCkempenepStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Fri 04 Mar 2016 12:10:26 PM UTCkempenepStatusNone=>Confirmed
      Assigned toNone=>kempenep

    Back to the top


    Powered by Savane 3.1-cleanup1