[FWTools] FWTools Digest, Vol 71, Issue 2 - ogr2ogr convert MIF to SHP file that contains Text Object
Jiang, David
JJiang at p2energysolutions.com
Tue Sep 28 12:54:22 EST 2010
Hello, Richard,
Sorry, could you please explain a little bit more on how to use "Update
column" to assign text to an attribute in MapInfo for this case?
To me, seems that after I run [ogr2ogr.exe -f "ESRI Shapefile" -where
ogr_geometry='POINT' drawing_layer_#3_point.shp drawing_layer_#3.mif],
the above command generates 4 files (in the attachment). But
drawing_layer_PT.dbf doesn't keep the description. How can I update
description column when I open these files in MapInfo? There are Point
and Text objects in the MIF file. Should I use a different ogr_geometry
value for Point object?
In MapInfo Prof, there is this Universal Translator tool. When I use
Universal Translator to convert drawing_layer_#3.mif to ESRI shape, it
does generate a separate set of shape files for the text object in MIF
besides the shape files for lines, regions and points. And I can see the
description in the dbf file.
What I am trying to do is: from our application, execute DOS command
calls ogr2ogr.exe to convert MIF file to ESRI Shape. But it seems that
ogr2ogr.exe cannot handle Text type in MIF file at this point.
Thanks very much!
David
-----Original Message-----
From: fwtools-bounces at lists.maptools.org
[mailto:fwtools-bounces at lists.maptools.org] On Behalf Of
fwtools-request at lists.maptools.org
Sent: Saturday, September 18, 2010 11:00 AM
To: fwtools at lists.maptools.org
Subject: FWTools Digest, Vol 71, Issue 2
Send FWTools mailing list submissions to
fwtools at lists.maptools.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.maptools.org/mailman/listinfo/fwtools
or, via email, send a message with subject or body 'help' to
fwtools-request at lists.maptools.org
You can reach the person managing the list at
fwtools-owner at lists.maptools.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of FWTools digest..."
Today's Topics:
1. Re: FW: Ogr2ogr convert MIF to SHP file that contains Text
object (Richard Greenwood)
----------------------------------------------------------------------
Message: 1
Date: Sat, 18 Sep 2010 06:42:47 -0600
From: Richard Greenwood <richard.greenwood at gmail.com>
Subject: Re: [FWTools] FW: Ogr2ogr convert MIF to SHP file that
contains Text object
To: "Jiang, David" <JJiang at p2energysolutions.com>
Cc: fwtools at lists.maptools.org
Message-ID:
<AANLkTi=1qSXmx=5Lp6HuRdvu4CNYz8PKgLhKJmnLcRru at mail.gmail.com>
Content-Type: text/plain; charset=windows-1252
Shape files don't have text objects, so you'd need to assign the
MapInfo text to an attribute. This can easily be done in MapInfo using
the "Update column" menu option with the objectinfo(obj,3) function.
HTH,
Rich
On Tue, Sep 14, 2010 at 11:47 AM, Jiang, David
<JJiang at p2energysolutions.com> wrote:
> The attached MIF file contains a Text object with the description of
> ?test\nanother\nline?.
>
>
>
> Tried the following command: ogr2ogr ?f ?ESRI Shapefile? ?where
> ogr_geometry=?POINT? drawing_layer_#3_point.shp drawing_layer_#3.mif
>
>
>
> The result shape file contains 3 point objects but the problem is that
it
> doesn?t keep the ?test\nanother\nline? description.
>
>
>
> What?s the correct syntax to convert a MIF file that contains Text
Object?
>
>
>
> Thanks very much!
>
>
>
> David
>
> _______________________________________________
> FWTools mailing list
> FWTools at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/fwtools
> http://fwtools.maptools.org/
>
>
--
Richard Greenwood
richard.greenwood at gmail.com
www.greenwoodmap.com
------------------------------
_______________________________________________
FWTools mailing list
FWTools at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/fwtools
End of FWTools Digest, Vol 71, Issue 2
**************************************
-------------- next part --------------
A non-text attachment was scrubbed...
Name: drawing_layer_PT.prj
Type: application/octet-stream
Size: 146 bytes
Desc: drawing_layer_PT.prj
Url : http://lists.maptools.org/pipermail/fwtools/attachments/20100928/47e3551c/attachment.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: drawing_layer_PT.shp
Type: application/octet-stream
Size: 184 bytes
Desc: drawing_layer_PT.shp
Url : http://lists.maptools.org/pipermail/fwtools/attachments/20100928/47e3551c/attachment-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: drawing_layer_PT.shx
Type: application/octet-stream
Size: 124 bytes
Desc: drawing_layer_PT.shx
Url : http://lists.maptools.org/pipermail/fwtools/attachments/20100928/47e3551c/attachment-0002.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: drawing_layer_PT.dbf
Type: application/octet-stream
Size: 301 bytes
Desc: drawing_layer_PT.dbf
Url : http://lists.maptools.org/pipermail/fwtools/attachments/20100928/47e3551c/attachment-0003.obj
More information about the FWTools
mailing list