Is that sequential starting at 0 with the column headers or starting at
0 with the actual data? I have written a script to add the object IDs in
to my RATs but it may be off by 1.
Do you know of a handy automated way of doing the join in a script
fashion, and saving the columns into the vector polygon file itself? I
have a number of vector polygon files now from applying RSGISlib to
Martian images, topography and derived topographic layers.
regards,
David Trethewey
On 15.07.14 18:01, Daniel Clewley wrote:
> Hi Alex,
>
> I've created an issue about exporting the object ID when exporting to
> ASCII. Will add when I get chance.
>
> You can just add a column to the ASCII file with the object ID, they're
> sequential and start at 0.
>
> Thanks,
>
> Dan
>
> On 15 Jul 2014, at 17:48, Alexandra Mates <
alexand...@envsys.co.uk
> <mailto:
alexand...@envsys.co.uk>> wrote:
>
>> Thanks Dan, it works well for exporting a given column, apart from the
>> fact that it doesn't export the FID column which is I believe
>> necessary for the join, and I don't know how to refer to it. I tried
>> 'FID', 'OBJECTID', '', 'DN'.
>>
>>
>>
>> On Monday, 14 July 2014 17:07:27 UTC+1, Dan Clewley wrote:
>>
>> Hi Alex,
>>
>> I'd do something like the following:
>>
>> 1) Use gdal_polygonize to convert to a vector (attributed with
>> object ID).
>> 2) Export the columns you want from the RAT to and ASCII file
>> using rastergis.export2Ascii
>> 3) Join attribute table from the polygons with the ASCII file
>> using QGIS or ArcMap
>>
>> As for smoothing the polygons I'm not sure the best way to go
>> about this.
>>
>> Thanks,
>>
>> Dan
>>
>> On 14 Jul 2014, at 16:41, Alexandra Mates
>> <
alexand...@envsys.co.uk
>> <mailto:
alexand...@envsys.co.uk>> wrote:
>>
>>> I have a kea file with a RAT that I'd like to convert into a
>>> smoothed polygon shapefile, maintaining the attribute table. I
>>> was wondering whether anyone has already investigated into this
>>> task, and if there is a relatively straightforward way around it,
>>> using either the open source GEOBIA libraries or proprietary
>>> software? GDAL / RSGISlib / ArcMap doesn't seem to support it.
>>>
>>> Thanks!
>>>
>>> <
http://rspsoc2014.co.uk/>
>>> *RSPSoc 2014 - 2nd -5th September <
http://rspsoc2014.co.uk/>*
>>>
>>> --
>>> You received this message because you are subscribed to the
>>> Google Groups "RSGISLib Support" group.
>>> To unsubscribe from this group and stop receiving emails from it,
>>> send an email to
rsgislib-suppo...@googlegroups.com
>>> <mailto:
rsgislib-suppo...@googlegroups.com>.
>>> To post to this group, send email
>>> to
rsgislib...@googlegroups.com
>>> <mailto:
rsgislib...@googlegroups.com>.
>>> <
http://groups.google.com/group/rsgislib-support>.
>>> <
https://groups.google.com/d/optout>.
>>
>>
>> <
http://rspsoc2014.co.uk/>
>> *RSPSoc 2014 - 2nd -5th September <
http://rspsoc2014.co.uk/>*
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "RSGISLib Support" group.
>> To unsubscribe from this group and stop receiving emails from it, send
>> an email to
rsgislib-suppo...@googlegroups.com
>> <mailto:
rsgislib-suppo...@googlegroups.com>.
>> To post to this group, send email to
rsgislib...@googlegroups.com
>> <mailto:
rsgislib...@googlegroups.com>.
> --
> You received this message because you are subscribed to the Google
> Groups "RSGISLib Support" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
rsgislib-suppo...@googlegroups.com
> <mailto:
rsgislib-suppo...@googlegroups.com>.
> To post to this group, send email to
rsgislib...@googlegroups.com
> <mailto:
rsgislib...@googlegroups.com>.