Hi Feras,
> Thanks Andrea, however, where can I see the output. Also, is it possible to
> see the image output. e.g., shapes of mountains after returning the rendered
> image ?
I only now realized that you were running it from the testcase code
and not from the spatial toolbox.
Well, in that case you will have to read the input raster first and
write the output raster afterwards.
Somthing like:
GridCoverage2D elevationCoverage = OmsRasterReader.readRaster(yourPath);
----------------------------------8<-----------------------------------------
// this comes from the testcase
OmsHillshade hillshade = new OmsHillshade();
hillshade.inElev = elevationCoverage;
hillshade.pElev = 45.0;
hillshade.pAzimuth = 315;
hillshade.pm = pm;
hillshade.process();
GridCoverage2D hillshadeCoverage = hillshade.outHill;
----------------------------------8<-----------------------------------------
OmsRasterWriter.writeRaster("yourOutPath", hillshadeCoverage);
Andrea
> Many thanks
> Feras
>
>
> On Friday, October 17, 2014 8:09:14 AM UTC-4, moovida wrote:
>>
>> Hi Feras,
>>
>> > While running TestHillshade, I got this:
>> > Error while parsing JAI registry file
>> >
>> > "file:/C:/Users/IBM_ADMIN/.m2/repository/org/jaitools/jt-all/1.3.0/jt-all-1.3.0.jar!/META-INF/registryFile.jai"
>> > :
>> > Error in registry file at line number #59
>> > A descriptor is already registered against the name "VectorBinarize"
>> > under
>> > registry mode "rendered"
>> > working on hillshade
>> > 10%... 20%... 30%... 40%... 50%... 60%... Finished.
>> >
>> > Is that good or there is an error ?
>>
>> it is good.
>>
>> Well, the error message you see comes from one of the underlying
>> libraries, which didn't cleanup its log system.
>>
>> But the module seems to end and produce the output.
>> Didn't it?
>>
>> Cheers,
>> Andrea
>
> --
> You received this message because you are subscribed to the Google Groups
> "jgrasstools" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
jgrasstools...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.