Is there a pandas_read_gml available?
How to read gml into pandas data frame? Is there a pandas_read_gml available? Regards, David
Hi David, I think that the Fiona library should be able to read GML files ( https://stackoverflow.com/questions/53249561/is-it-possible-to-read-gml-or-k...), and if that's the case, you can use GeoPandas to read that directly into a dataframe ( https://geopandas.org/en/stable/docs/reference/api/geopandas.read_file.html) Best, Joris On Wed, 1 Dec 2021 at 14:38, Shaozhong SHI <shishaozhong@gmail.com> wrote:
How to read gml into pandas data frame?
Is there a pandas_read_gml available?
Regards, David _______________________________________________ Pandas-dev mailing list Pandas-dev@python.org https://mail.python.org/mailman/listinfo/pandas-dev
Hi, Joris, Many thanks. Which version of Python, Pandas and fiona should I use? At the moment, I got Python 3.6.5 and Pandas 1.1.5 on. Regards, David On Wed, 1 Dec 2021 at 13:42, Joris Van den Bossche < jorisvandenbossche@gmail.com> wrote:
Hi David,
I think that the Fiona library should be able to read GML files ( https://stackoverflow.com/questions/53249561/is-it-possible-to-read-gml-or-k...), and if that's the case, you can use GeoPandas to read that directly into a dataframe ( https://geopandas.org/en/stable/docs/reference/api/geopandas.read_file.html )
Best, Joris
On Wed, 1 Dec 2021 at 14:38, Shaozhong SHI <shishaozhong@gmail.com> wrote:
How to read gml into pandas data frame?
Is there a pandas_read_gml available?
Regards, David _______________________________________________ Pandas-dev mailing list Pandas-dev@python.org https://mail.python.org/mailman/listinfo/pandas-dev
I don't know myself (didn't use it for reading GML), but based on the comments in the StackOverflow question, you need at minimum Fiona 1.8.4. I think the python and pandas version you mention will be fine. Best, Joris On Wed, 1 Dec 2021 at 14:50, Shaozhong SHI <shishaozhong@gmail.com> wrote:
Hi, Joris,
Many thanks. Which version of Python, Pandas and fiona should I use?
At the moment, I got Python 3.6.5 and Pandas 1.1.5 on.
Regards, David
On Wed, 1 Dec 2021 at 13:42, Joris Van den Bossche < jorisvandenbossche@gmail.com> wrote:
Hi David,
I think that the Fiona library should be able to read GML files ( https://stackoverflow.com/questions/53249561/is-it-possible-to-read-gml-or-k...), and if that's the case, you can use GeoPandas to read that directly into a dataframe ( https://geopandas.org/en/stable/docs/reference/api/geopandas.read_file.html )
Best, Joris
On Wed, 1 Dec 2021 at 14:38, Shaozhong SHI <shishaozhong@gmail.com> wrote:
How to read gml into pandas data frame?
Is there a pandas_read_gml available?
Regards, David _______________________________________________ Pandas-dev mailing list Pandas-dev@python.org https://mail.python.org/mailman/listinfo/pandas-dev
participants (2)
-
Joris Van den Bossche -
Shaozhong SHI