Hi Roberto,
I am not sure why you get an error from the XML parsing, can you email me the
XML file you are using? The XML you have put in the email is correct and I have
copied and pasted it into a file and checked it runs OK for me here.
However, I did notice an error in your command as I think you want the option
--image rather than --ascii to generate an output image.
spdmetrics --image -m meanheight.xml -f KEA -o raster_metrics.kea -i
../Vyrnwy_osgb_10m_rmnoise_RGB_pmfgrderrgrd_h.spd
Cheers, Pete
****************************************************
* Dr Pete Bunting
* Senior Lecturer in Remote Sensing
* Institute of Geography and Earth Sciences
* Aberystwyth University
* Aberystwyth
* Ceredigion
* SY23 3DB
* UK
*
* Ph: +44 (0) 1970 622615
* Mob: +44 (0) 7917 842743
* NZ Ph: +64 (0) 4 280 7430
* Email: [email protected]
****************************************************
On 3 Oct 2013, at 12:16, Roberto Antolín <[email protected]> wrote:
> Hi all,
> I am trying to create some metrics with the spdmetrics tool and for that
> purpose
> I use this simple xml file with only one metric in it:
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <spdlib:metrics xmlns:spdlib="http://www.spdlib.org/xml/">
> <spdlib:metric metric="meanheight" field="MeanH" return="All"
> class="NotGrd" lowthreshold="2" />
> </spdlib:metrics>
>
> I've followed the step of the tutorial 6 that I found here[1], but when I run
> this
> command:
>
> $ spdmetrics --ascii -m meanheight.xml -o raster_metrics.env -i
> file_height.spd
>
> I get this error:
> Reading XML file: meanheight.xml
> 1 metrics where found.
> terminate called after throwing an instance of 'std::out_of_range'
> what(): basic_string::substr
> Aborted (core dumped)
>
> I have tried different xml files and the results are always the same, the
> out_of_range error followed by the "core dumped" abort message
>
> Any hint about what it is going on?
>
> [1] http://www.spdlib.org/doku.php?id=spdlib:users:tutorials:basic:tutorial_6
>
> Thank you!
> Roberto
>
> --
> Roberto Antolín
> https://twitter.com/Tolanss
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
> _______________________________________________
> spdlib-develop mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/spdlib-develop
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
spdlib-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spdlib-develop