GithubHelp home page GithubHelp logo

eukarya-inc / plateauutils Goto Github PK

View Code? Open in Web Editor NEW
2.0 6.0 0.0 2.04 MB

Python library for PLATEAU VIEW data processing

Home Page: https://eukarya-inc.github.io/plateauutils/

License: Apache License 2.0

Python 100.00%
plateau python

plateauutils's People

Contributors

fcctakasawa avatar rot1024 avatar shogohirasawa avatar smellman avatar tajimagrp avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

plateauutils's Issues

Want to see the progress bar while parsing CityGML

Running CityGMLParser.parse_and_download() takes so long time. Is it possible to show a progress bar while parsing CityGML?

My suggestion is adding progressbar at the line 180 of city_gml_parser.py (there might be better location to add progress bar).

#city_gmle_parser.py
from progressbar import progressbar  # anywhere before

        for city_object_member in progressbar(city_object_members):  # line 180

Regards,
Akito

Possible to parse without unzip?

CityGMLParser parse にて、shutil.unpack_archive せずに with zipfile.ZipFile 内でパースすることは可能でしょうか?

参考資料 https://hacker.trickstorm.com/?p=275

Colabで実行している時に、Google Driveをマウントするとそちらの方に解凍ファイルが流れ込み容量圧迫してしまいます。

パーサーの属性の追加

作業内容

  • Plateau Utilsのパースする属性に下記の内容を追加する
    bldg:usage,real_estate_id_of_building,real_estate_id_of_building_unit_ownership

  • OSSとして公開後、第三者が任意の属性をパース対象として追加したい場合、スクリプトにどのような変更を加えればよいかをドキュメント化(日本語)する。

期限

3月中旬 *要相談

Problem on parsing

With parsing Kurume's CityGML, I found there are some regions (or tiles) where parsing fails.

The boundary I use for running CityGMLParser and CityGMLParser.download_and_parse is the following.

    [
      [130.41249721501615, 33.224722548534864],
      [130.41249721501615, 33.348],
      [130.59, 33.348],
      [130.59, 33.224722548534864],
      [130.41249721501615, 33.224722548534864]
    ]

I made a scatter plot of building locations (yellow dots) over DEM. There is a gap or parsing failures around the latitude of 130.500 degree.
image

revert README.rst from README.md

pyproject.toml references README.rst and when you make new package, it needs some tuning for pyproject.toml, because ReST document is default format for Python.
I recommend to revert README.rst from README.md.

Value of "building_structure_type"

"building_structure_type" の値がこのままだと理解できません。何らかの変換をかませて「木造」とか「鉄筋コンクリート」の様な値にすることは可能でしょうか?

Handling of FileExists case

以下のコードを2度実行した場合に FileExistsError が上がりました。

from plateauutils.parser.city_gml_parser import CityGMLParser
parser = CityGMLParser(from_wkt(building_bound))
buildings = parser.download_and_parse(url_CityGML, "/tmp")

raise元は abc/plateau_parser.py の 34行目~36行目、 _download 内。

        # 保存先パスが既に存在すればエラー
        if exists(saved_path):
            raise FileExistsError(f"{saved_path} already exists.")

CityGMLParser.download_and_parse

        saved_path = self._download(url, target_dir)
        return self.parse(saved_path)

なので、 FileExistsError を raiseせずに、saved_path を返すのではダメなのでしょうか?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.