Hi Roberto, 

The solution Dan has suggest would be one way to do it but the best solution 
and something I will add to my list of things to do would be for the spdmetrics 
command to take a thematic image of raster clumps alongside the shapefile and 
for the calculated metrics to be added added to the attribute table of the 
raster rather than the shapefile. 

You could effectively hack this by calculating the metrics onto the attribute 
table of the shapefile and then writing some python to copy the attributes to 
the raster clump file. This would effectively be how I would implement this 
functionality with the spdmetrics command, just without ever writing anything 
to the shapefile so the results would be the same. 

Hope that makes sense. 

Cheers, Pete


On 29 Jan 2014, at 18:05, Roberto Antolín <[email protected]> wrote:

> Hi Dan,
> Yes, I've already thought about that possibility, and it's a very nice one :)
> 
> I asked because I was curious. I tried to produce an image from a
> shape and it didn't seem to work. I didn't know whether it was the
> software that doesn't support it or me who didn't know how to make it
> run.
> 
> Thanks!
> Roberto
> 
> 2014-01-29 Daniel Clewley <[email protected]>:
>> Hi Roberto,
>> 
>> If you don't mind using two steps you could use gdal_rasterize following
>> calculating metrics from a vector to produce a raster.
>> 
>> Hope this helps,
>> 
>> Dan
>> 
>> 
>> On 29/01/14 08:21, Roberto Antolín wrote:
>>> 
>>> Hello all,
>>> Just to be sure about spdmetrics functionality...
>>> 
>>> It is clear that --image gives an image as the output and --vector gives a
>>> vector as the output. In this last case you have to provide the -v option
>>> in
>>> order to populate the vector with the metrics.
>>> 
>>> I would like to introduce a shapefile as input in order to calculate some
>>> metrics within the polygons but outputing an image I tried to use the -v
>>> option
>>> with --image output and it doesn't seem to work. So I suppose this
>>> functionality
>>> is not implemented, isn't it?
>>> 
>>> Cheers,
>>> Roberto.
>>> 
>>> 
>> 
> 
> 
> 
> -- 
> Roberto
> 
> ------------------------------------------------------------------------------
> WatchGuard Dimension instantly turns raw network data into actionable 
> security intelligence. It gives you real-time visual feedback on key
> security issues and trends.  Skip the complicated setup - simply import
> a virtual appliance and go from zero to informed in seconds.
> http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
> _______________________________________________
> spdlib-develop mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/spdlib-develop

------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
spdlib-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spdlib-develop

Reply via email to