Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MapInfo Tab don't opened #4

Open
Bescu opened this issue Nov 19, 2012 · 6 comments
Open

MapInfo Tab don't opened #4

Bescu opened this issue Nov 19, 2012 · 6 comments

Comments

@Bescu
Copy link

Bescu commented Nov 19, 2012

Hello,

I also tried to add somes MapInfo TAB with the plugin but It didn't work : the table is shown in the layer selection space of the plugin, but when I click ok the "OK button", it doesn't do nothing.

@rburhum
Copy link
Owner

rburhum commented Nov 19, 2012

Can I get a sample MapInfo file that reproduces this? It will help with debugging.

@Bescu
Copy link
Author

Bescu commented Nov 24, 2012

Yes of course, the sample MapInfo file is here : http://dl.free.fr/nLL0GYybn

@rburhum
Copy link
Owner

rburhum commented Dec 6, 2012

Looks like it is also UTF8 related.

@rburhum
Copy link
Owner

rburhum commented Dec 6, 2012

In addition, even though I sanitize those fields, it looks like ogr_layer.GetGeomType() is returning wkbUnknown. I will have to debug the bindings, too. I'll let you know what I find.

@Bescu
Copy link
Author

Bescu commented Dec 7, 2012

Ok! I see! Thank you!

@rburhum
Copy link
Owner

rburhum commented Jan 30, 2013

I fixed the UTF-8 related stuff. Nevertheless, I am unsure how to go about "fixing" the issue with a mix of geometries.
Sadly, ArcGIS only supports one geometry type per layer. I see a few options, like a manual settings that "forces" a certain geometry type. This could trick ArcGIS into thinking it was that geometry type.

For example, in your case, I would trick the layer into thinking it was only polygons. Then I would drop any other geometry type from the result set. This would in theory work. Another option is to add that behavior directly to GDAL/OGR, then all the other clients could benefit from something like that - although I am still unsure of the utility of that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants