[Gdal-dev] ogr2ogr, TAB->SHP, MULTILINESTRINGs
Krzysztof Chodak
k.chodak at autoguard.pl
Tue May 27 09:31:19 EDT 2003
Reads...
INFO: Open of `railways2-linestring.tab'
using driver `MapInfo File' successful.
1: railways2 (Line String)
...
OGRFeature(railways2):1491
kolej (String) = kolej
Style = PEN(w:1px,c:#000000,id:"mapinfo-pen-203.ogr-pen-0")
MULTILINESTRING ((19.17392900 49.65804700,19.17453500
49.65919400,19.17873700 49.66676400,19.17926000 49.66771700,19.18079500
49.67061500,19.18130100 49.67143100,19.18148700 49.67212100,19.18159900
49.67285700,19.18180900 49.67383100,19.18186000 49.67430500,19.18188500
49.67454200,19.18189100 49.67520500,19.18204700 49.67577600,19.18238300
49.67635100,19.18399100 49.67922700,19.18513700 49.68112300,19.18553100
49.68188700,19.18559700 49.68200400,19.18560400 49.68207400,19.18567400
49.68229500,19.18571500 49.68276800,19.18554900 49.68323700,19.18481700
49.68504100,19.18413100 49.68660800,19.18278500 49.68998200,19.17935000
49.69798700,19.17796000 49.70152400,19.17767800 49.70217900,19.17764300
49.70295900,19.17746300 49.70373500,19.17738400 49.70467900,19.17732200
49.70526800,19.17692700 49.70599200,19.17611500 49.70715500,19.17518000
49.70781800,19.17394900 49.70864000,19.17266600 49.70901100,19.17094500
49.70944300,19.16918700 49.70989700,19.16871100 49.71002700,19.16616800
49.71103100,19.16564700 49.71135900),(19.18559700 49.68200400,19.18598700
49.68234900,19.18694000 49.68289300,19.18772600 49.68312500,19.18963700
49.68328900,19.19129400 49.68347100,19.19428700 49.68370800,19.19515700
49.68368100,19.19651000 49.68338300,19.19694800 49.68329900,19.19709900
49.68316100,19.19743600 49.68290900,19.19841100 49.68215200,19.19863600
49.68196800,19.19889800 49.68178500,19.19923100 49.68162700,19.20133200
49.68077900,19.20483300 49.67939700,19.20859000 49.67792700,19.21090500
49.67717800,19.21174500 49.67700900,19.21262100 49.67686400,19.21429100
49.67673900,19.21585000 49.67668200,19.21653700 49.67669800,19.21686800
49.67658800,19.21858500 49.67622700,19.22297700 49.67515000,19.22557500
49.67452700,19.22847500 49.67362700,19.23324800 49.67211000,19.23688100
49.67101400,19.23757900 49.67077100,19.23827300 49.67064600,19.23980000
49.67049300,19.24128800 49.67038700,19.24267300 49.67018400,19.24533400
49.66977500,19.24599100 49.66964900,19.24675000 49.66969600))
but doesn't translate
ogr2ogr 1 railways2.tab
ERROR 1: Attempt to write non-linestring (MULTILINESTRING) geometry to ARC
type shapefile.
ERROR 1: Terminating translation prematurely after failed
translation of layer railways2
BR
Krzysztof Chodak
-----Original Message-----
From: gdal-dev-admin at remotesensing.org
[mailto:gdal-dev-admin at remotesensing.org] On Behalf Of Frank Warmerdam
Sent: Tuesday, May 27, 2003 3:13 PM
To: gdal-dev at remotesensing.org
Subject: Re: [Gdal-dev] ogr2ogr, TAB->SHP, MULTILINESTRINGs
Krzysztof Chodak wrote:
> What are the objections of converting MULTILINESTRING (from MI TAB) into
> (ESRI) shapes?
>
> As sections from MULTILINESTRING can be independent/discontinuous it would
> require creating one shape for each section. As ogr2ogr doesn't support
such
> conversion and MI Professional Universal Translator is doing it badly (it
> makes one continuous line from all of segments which sometimes is correct
> but sometimes produces rubbish) I have no tool and I'm in a dead point
now.
>
> It would be great if someone would suggest me the solution (or/and answer
to
> first question in this post).
Krzysztof,
Could you supply an example of these MapInfo multilinestrings? When you say
they aren't supported by OGR for translation to shape, do you mean OGR
doesn't
read them at all or that they aren't properly translated?
Best regards,
--
---------------------------------------+------------------------------------
--
I set the clouds in motion - turn up | Frank Warmerdam,
warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
_______________________________________________
Gdal-dev mailing list
Gdal-dev at remotesensing.org
http://remotesensing.org/mailman/listinfo/gdal-dev
More information about the Gdal-dev
mailing list