[Chameleon] getShape w/ OGR and MapInfo Tabs

Paul Spencer pspencer at dmsolutions.ca
Mon Apr 25 20:01:41 EDT 2005


Stephan,

I haven't seen anyone posting on this topic on this list.  Perhaps try 
the mapserver-users list, there are a lot more users there and perhaps 
someone knows something about this issue.

Cheers

Paul

Stephan Holl wrote:
> dear list,
> 
> I have a problem getting shape-information with getShape() from Mapinfo-
> Tabs generated with ogr2ogr from a shapefile.
> 
> it does not retrieve any bounds for the object:
> $oLayer->open();
> $oShape = $oLayer->getShape($nTile, 0 );
>                 $aszAttributes['name'] = $oLayer->name;
>                 $aszAttributes['index'] = $oLayer->index;
>                 $oRect = $oShape->bounds;
>                 $aszAttributes['minx'] = $oRect->minx;
>                 $aszAttributes['miny'] = $oRect->miny;
>                 $aszAttributes['maxx'] = $oRect->maxx;
>                 $aszAttributes['maxy'] = $oRect->maxy;
> 
> $oRect is alway empty when I try this on TAB-Files connected through
> OGR.
> 
> My Mapfile-Snippet.
> TYPE POLYGON
>   STATUS ON
>   CONNECTIONTYPE OGR #
>   CONNECTION "/data/lka/seen_tab/seen.tab" 
> CLASS
>     NAME "Binnenseen"
> ...
> 
> I couldn`t find similar problems at goole.
> Does anybodyy can give me a hint?!
> 
> TIA
> 	Stephan
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon

-- 
+-----------------------------------------------------------------+
|Paul Spencer                           pspencer at dmsolutions.ca   |
+-----------------------------------------------------------------+
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+


More information about the Chameleon mailing list