Re: [gdal-dev] unable to export Mapinfo text geom- style always symbol
Thanks for the information and quick fix. On Tue, Aug 2, 2022 at 9:56 PM Even Rouault wrote: > For reference this was also filed as > https://github.com/OSGeo/gdal/issues/6149 > > Implementation pull request: https://github.com/OSGeo/gdal/pull/6152 > > Le 01/08/2022 à 07:01, prashanti seri a écrit : > > > > Team, > > We are exporting a "TextPointGeometry" type feature using 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:#ff)"); > > > > > > Result checked with ogrinfo, observed that style is always SYMBOL, see > > below - > > > > > > Style = SYMBOL(a:0,c:#00,s:12pt,id:"mapinfo-sym-35,ogr-sym-10") > > > > > > Are we missing anything or any limitations? > > > > > > Regards, > > Prashanti > > > > > > ___ > > gdal-dev mailing list > > gdal-dev@lists.osgeo.org > > https://lists.osgeo.org/mailman/listinfo/gdal-dev > > -- > http://www.spatialys.com > My software is free, but my time generally not. > > ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev
Re: [gdal-dev] unable to export Mapinfo text geom- style always symbol
For reference this was also filed as https://github.com/OSGeo/gdal/issues/6149 Implementation pull request: https://github.com/OSGeo/gdal/pull/6152 Le 01/08/2022 à 07:01, prashanti seri a écrit : Team, We are exporting a "TextPointGeometry" type feature using 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:#ff)"); Result checked with ogrinfo, observed that style is always SYMBOL, see below - Style = SYMBOL(a:0,c:#00,s:12pt,id:"mapinfo-sym-35,ogr-sym-10") Are we missing anything or any limitations? Regards, Prashanti ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev -- http://www.spatialys.com My software is free, but my time generally not. ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev
Re: [gdal-dev] unable to export Mapinfo text geom- style always symbol
Hi, I can reproduce the issue with ogr2ogr and this csv file “ogr_styletest.csv”: wkt,OGR_STYLE "POINT (1 3)","LABEL(t:""TT"",a: 0,c:#ff)" Check what we have: ogrinfo ogr_styletest.csv -al OGRFeature(ogr_styletest):1 wkt (String) = POINT (1 3) OGR_STYLE (String) = LABEL(t:"TT",a: 0,c:#ff) Style = LABEL(t:"TT",a: 0,c:#ff) POINT (1 3) Convert into MapInfo MIF: ogr2ogr -f "MapInfo File" ogr_styletest.mif ogr_styletest.csv What we have now: ogrinfo ogr_styletest.mif -al OGRFeature(ogr_styletest):1 wkt (String) = POINT (1 3) OGR_STYLE (String) = LABEL(t:"TT",a: 0,c:#ff) Style = SYMBOL(a:0,c:#00,s:12pt,id:"mapinfo-sym-35,ogr-sym-9") POINT (1 3) The LABEL style is changed into SYMBOL. Label is kept as label if ogr2ogr is set to write out for example OpenJUMP JML format (-f JML). -Jukka Rahkonen- Lähettäjä: gdal-dev Puolesta prashanti seri Lähetetty: maanantai 1. elokuuta 2022 8.02 Vastaanottaja: gdal-dev@lists.osgeo.org Aihe: [gdal-dev] unable to export Mapinfo text geom- style always symbol Team, We are exporting a "TextPointGeometry" type feature using 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:#ff)"); Result checked with ogrinfo, observed that style is always SYMBOL, see below - Style = SYMBOL(a:0,c:#00,s:12pt,id:"mapinfo-sym-35,ogr-sym-10") Are we missing anything or any limitations? Regards, Prashanti ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev