GithubHelp home page GithubHelp logo

marinetraffic / mt-ais-toolbox Goto Github PK

View Code? Open in Web Editor NEW
110.0 9.0 11.0 5.17 MB

Marinetraffic AIS density map toolbox

Home Page: https://www.marinetraffic.com/research/the-marinetraffic-ais-toolbox/

License: Other

Python 98.53% Makefile 1.47%
ais density map geospatial

mt-ais-toolbox's Issues

Land Area is coming as Blank

Hi All,

I had generated the tiff file of the sample dataset attached. I have got the density map but the land/ sea area is not being highlighted. I had tried changing some attributes to the color file as well but was not successful.

Any help for the same would be highly appreciated. Thanks in advance.

Rahu
TempGIT
l

Adapt to Shapely 2.0.0 API changes.

Recent updates in shapely breaks the execution during cleaning process execution if land masking is enabled.
By default package installation allows the installation of the latest shapely version.

A quick fix is to prevent this behaviour is to manually install v1.8.5 of shapely.
pip install shapely==1.8.5

GDAL version

Regarding the toolbox requirements, does the GDAL version specifically need to be version 3.0.4? I have version 3.4.3 installed using a .whl file however I am having issues, could it be down to this?

Windows 10: pygeos wheel build error

Hi,

I am excited to use the mt-ais-toolbox package but am unfortunately falling at the first hurdle. I am using a windows 10 operating system and having issues when installing the packages.

I have Microsoft Visual C++ 14.3 installed, and opened a virtual environment into which I have downloaded GDAL. However, when I clone the mt-ais-toolbox and subsequently install the packages, the wheel for pygeos fails to build (ERROR: Could not build wheels for pygeos, which is required to install pyproject.toml-based projects). Additionally, it says: 'Could not find geos-config executable. Either append the path to geos-config to PATH or manually provide the include_dirs, library_dirs, libraries and other link args for compiling against a GEOS version >=3.5.'

I have tried researching this error and have found information that the lib and include folders need to be specified manually because there is no geos.config on windows (https://pygeos.readthedocs.io/en/stable/installation.html). However, I do not understand how I can specify the file paths before running the code to install the packages, because the path wouldn't exist yet?

I am new to python so I am quite overwhelmed. If you have any tips or pointers for me, I would hugely appreciate it.

Fiona

Adapting package to create multiple .tif files

I have AIS data over a longer time period and I would like to create .tif files of vessel density for each day. I have the AIS .csv files organised into daily folders, with each folder containing .csv's for each mmsi that day, like this:

-samples
--01_merged
---1
----209122000.csv
----209952000.csv
---2
----215783000.csv
----235070241.csv

Do you have any recommendations for adapting the package to iteratively create .tif files for each of the daily sub-folders within the 01_merged folder?

Error line 249, in clean_data(TypeError: 'int' object is not iterable)

Hi,

I am applying this package to AIS data that I have acquired for my project. I have created a GeoJSON file of the sea in my study area and put it into the geometry path, and adjusted the configuration file to suit my needs. When I run the data cleaning script I was getting the error:

File "C:...\mt-ais-toolbox\src\mt\cleaning\data_cleaning.py", line 249, in clean_data
for _polygon in polygons.geoms:
^^^^^^^^^^^^^^
AttributeError: 'Polygon' object has no attribute 'geoms'. Did you mean: '_geom'?

So I changed the code to be 'for _polygon in polygons._geom:'. However, now I am getting the error:

File "C:\Users...\mt-ais-toolbox\src\mt\cleaning\data_cleaning.py", line 249, in clean_data
for _polygon in polygons._geom:
TypeError: 'int' object is not iterable

This makes it seem like the operation assumes it is a multi-polygon object. I thought maybe this was why the polygon_split function was called at the start of the script, so maybe this isn't working as it should? Or perhaps I am completely misinterpreting what the polygon_split is for.

Any insight or help you can give me would be hugely appreciated!

Thanks,

Fiona

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.