gsrao456 wrote:
>
> Now after setting the bounds I am getting a different problem.The
> coordinates of the points in the tab file are very large compared to
> the original file.
>
> The coordinates of the original points are
> y x
> 1, 7927669.700, 247130.134
> 1, 7927670.316, 247128.328
> 1, 7927669.661, 247125.000
> 1, 7927670.408, 247120.488
> 1, 7927671.949, 247116.404
> 1, 7927672.088, 247114.728
> 1, 7927668.857, 247112.239
> 1, 7927666.361, 247111.317
> 1, 7927665.050, 247110.994
> 1, 7927662.097, 247110.589
>
> I am using C++ API for writting a TAB file.
>
> I have set the bounds using the setBounds function()
>
> if (file->Open(fname, "wb") == 0) {
> file->SetBounds(247108.893, 7927649.353, 247131.979,
> 7927672.088);
> }
>
> Can you please advise me about setting the bounds if i am
> wrong, and whether I should set the coordsys also before setting the
> bounds.
>
The way that you set the bounds seems right. The range that you set is
small and doesn't include a buffer to add more features to the file
later, but that's sufficient for things to work.
What do you mean by "coordinates of the points in the tab file are very
large compared to the original file"? Is an error introduced by the lib?
Can you show us the coordinates that you get to compare with the
expected coordinates?
Daniel
--
Daniel Morissette
http://www.mapgears.com/
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/