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

GDAL MapInfo driver: always Symbol instead of LABEL style for TextPointGeometry #6149

Closed
rmaddu opened this issue Aug 2, 2022 · 0 comments
Closed
Assignees

Comments

@rmaddu
Copy link

rmaddu commented Aug 2, 2022

We are exporting a "TextPointGeometry" type feature using the GDAL MapInfo driver. Below is the pseudo-code -

           Driver mapInfoFileDriver = Ogr.GetDriverByName("MapInfo File");
           ...
          Feature mapInfoFeature = CreateFeature(featureData[i].Geometry, mapInfolayer, featureData[i].SpatialRef);

           mapInfoFeature.SetStyleString($"LABEL(t:\"TT\",a: 0,c:#0000ff)");

Result checked with ogrinfo, observed that style is always SYMBOL, see below -

         Style = SYMBOL(a:0,c:#000000,s:12pt,id:"mapinfo-sym-35,ogr-sym-10")

When we check with ogr2ogr, the LABEL style is changed into SYMBOL. see below -
ogr2ogr -f "MapInfo File" "C:\MapInfo" "C:\MapInfo\test.csv"

If we convert to JML format –

ogr2ogr -f JML "C:\111.jml" "C:\MapInfo\test.csv"

    The label is kept as the label. 

So the issue is with MapInfo.

@rouault rouault self-assigned this Aug 2, 2022
@rouault rouault closed this as completed in c2ff51f Aug 4, 2022
rouault added a commit that referenced this issue Aug 4, 2022
MapInfo driver: implements writing Text objects for Point geometries with LABEL style string (fixes #6149)
g8sqh pushed a commit to g8sqh/gdal that referenced this issue Aug 20, 2022
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