[gdal-dev] ogr2ogr: KML to any format - export fields
Christopher Condit
condit at sdsc.edu
Wed Jan 28 12:54:08 EST 2009
Hi Ednardo-
>Now, I'm testing options. I'd like to convert from .TAB to KML,
>and then KML to .TAB because my enterprise is on transition
>situation. We want to use KML files, not .TAB anymore. But for
>a time, we have to use both formats.
I'm not sure what your particular data looks like, but I would encourage you not to use KML as a primary format. XML is not well suited to large datasets and at this point doesn't translate well into other formats. I think PostGIS is a better bet as a primary source for your vector data, and from there translate into any other format you need (including KML). On the other hand, if your data sets are small and you have little interest in producing them in other formats, go with KML.
In your transition situation I would maintain everything in .TAB for the time being and write a script to generate KML from the .TAB.
-Chris
>I think that I'll kill the 7 fields that I mentioned. In fact, they are not used. But if I could mantain them, I
>would do it.
>
>Thank you!
>
>Até mais!
>Jesus te ama e Ele vai voltar!
>Ednardo de Oliveira Ferreira
>Analista de Sistemas e Mestre em Transportes
>+55(61)8128-7950
>Blog: http://vilaperi.blogspot.com/
>
>Desmascarando o panfleto Veja: http://luis.nassif.googlepages.com/home
>Caso Daniel Dantas: ttp://www.cartacapital.com.br/app/materia.jsp?a=2&a2=6&i=1643
>
>"Suspeitavam que eu vivia intensamente e num livre abandono à felicidade; isto não se perdoa." (Albert Camus)
>
>"Quem confia em traidores a si próprio atraiçoa." (Mariano da Fonseca)
>
>"Há o suficiente no mundo para todas as necessidades humanas, não há o suficiente para a cobiça humana." (Mahatma Gandhi)
>
________________________________________
From: Christopher Condit <condit at sdsc.edu>
To: Ednardo Ferreira <ednardof at yahoo.com>; gdal-dev at lists.osgeo.org
Sent: Tuesday, January 27, 2009 7:08:42 PM
Subject: RE: [gdal-dev] ogr2ogr: KML to any format - export fields
Hi Ednardo-
Is there a particular reason that you don't want to go directly from the original MapInfo to SHP? I would suggest that first, that way you don't lose field information. At this point the KML reader is not aware of KML Schemas, so you'll always get a big mashup of fields... This is being worked on.
-Chris
Christopher Condit
condit at sdsc.edu
(858) 822-5483
From: gdal-dev-bounces at lists.osgeo.org [mailto:gdal-dev-bounces at lists.osgeo.org] On Behalf Of Ednardo Ferreira
Sent: Tuesday, January 27, 2009 11:42 AM
To: gdal-dev at lists.osgeo.org
Subject: [gdal-dev] ogr2ogr: KML to any format - export fields
Hello!
I'm testing ogr2ogr solution. It's really great.
But I have a problem. The situation is:
1) I have a Map Info Line layer. It has 7 descripition fields.
2) Using ogr2ogr tool, I generated a KML file from this Map Info layer. It's ok.
3) When I use this KML in google earth, the informations are all there.
4) But, If I try to convert this KML to any other format (as SHP or TAB), the 7 fields are all put together in one single field.
5) how can I convert from KML to, for example, SHP or TAB, keeping all fields?
Até mais!
Jesus te ama e Ele vai voltar!
Ednardo de Oliveira Ferreira
Analista de Sistemas e Mestre em Transportes
+55(61)8128-7950
Blog: http://vilaperi.blogspot.com/
Desmascarando o panfleto Veja: http://luis.nassif.googlepages.com/home
Caso Daniel Dantas: ttp://www.cartacapital.com.br/app/materia.jsp?a=2&a2=6&i=1643
"Suspeitavam que eu vivia intensamente e num livre abandono à felicidade; isto não se perdoa." (Albert Camus)
"Quem confia em traidores a si próprio atraiçoa." (Mariano da Fonseca)
"Há o suficiente no mundo para todas as necessidades humanas, não há o suficiente para a cobiça humana." (Mahatma Gandhi)
More information about the gdal-dev
mailing list