How hard would it be to add support for it? Is it only an upper level interface 
addition or would it involve digging down into the lower stuff in areas like 
mitab_mapobjectblock.cpp?

The reason I ask is currently I have an app that is integrated into AutoCAD(an 
.arx) that allows the user to select an area on the AutoCAD drawing then select 
a TAB or shp file and it will draw in all the features that intersect that 
selected area. My company uses it for bringing in taxlots from county GIS 
datasets. I use MITAB for the TAB import and shapelib for the shp import. I 
know three of the counties we serve use "Collections" in some areas but until 
this morning I didn't know that was what they were called we have always called 
them "aggregate features". The TAB import only imports polygon 
features(TABFCRegion). The classes I'm using if it helps any are TABFile, 
TABFeature, TABRegion, and OGRLinearRing. So for me being able to break a 
collection up and write out any TABRegion features it contains would be very 
useful.



-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] Behalf Of
Daniel Morissette
Sent: Wednesday, June 01, 2005 7:51 AM
To: [email protected]
Subject: Re: [mitab] Collections


Canfield, Andrew wrote:
> Can somebody clarify for me if they know off the top of their head what is 
> returned now if the object belongs to a collection? IE say I am calling 
> getNextFeature or something similar to iterate over all the objects in a 
> table do objects that belong to a collection return or are they skipped?
> 

The object would be returned with a NONE geometry (i.e. no geometry) and 
the following warning would be produced by the library or by tab2tab.exe:

    "Unsupported object type %d (0x%2.2x).  Feature will be returned
     with NONE geometry."

I didn't test this, but if you use the C API then I think 
mitab_c_getlasterrorno() should return code 501 
(TAB_WarningFeatureTypeNotSupported) in this case.

Note that this is just a warning and not an error, so it should not 
abort processing (I don't think so anyway).

Daniel
-- 
------------------------------------------------------------
  Daniel Morissette               [EMAIL PROTECTED]
  DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------





 
Yahoo! Groups Links



 







 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/mitab/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to