Skip to main content
6 votes

Accessing geometry in Shape files (SHP)

I will use an example to demonstrate the code. First, download the shape file "2022-05-20-delim-parcellar-aoc-shp.zip" from https://data.europa.eu/data/datasets/5aaf6b7ec751df67b0d7a87f?...
Jean-Pierre's user avatar
  • 5,222
6 votes

Import YAML file into Mathematica

I wrote such a cross-platform tool to convert other formats to wolfram format: WolframExchange Usage ...
Aster's user avatar
  • 3,896
5 votes

Import YAML file into Mathematica

I just wrote an importer: https://github.com/zbjornson/MYaml. It's built on SnakeYAML and supports all language-independent types. Example 2.10 from the spec: ...
ZachB's user avatar
  • 1,210
3 votes

How to make Import recognize a new file extension?

Here's a nice trick. We can simply figure out how FileFormat works and write a little wrapper, which frees us from overloading ...
b3m2a1's user avatar
  • 47.1k
1 vote

Interpolation error to generate a two variable function

You won't have much luck attempting to use interpolation using both $X$ and $Y$ with any software package. Here is a plot of your data: ...
JimB's user avatar
  • 42.9k
1 vote
Accepted

Strange behavior exporting UnsignedInteger64 in HDF5 format

This is, unfortunately, a bug in HDF5 Export, which we will try to fix in the next release of the Wolfram Language. A workaround for versions 12.3.1 and below is to use (undocumented) ...
rafalc's user avatar
  • 1,369
1 vote

Import structure from Matlab into Mathematica 12 and nested lookup

Your P has reproduced your Structs as Associations but embedded them in some frustrating ...
Jagra's user avatar
  • 14.6k
1 vote

Getting EPS imports to respect the original fill rule

We're getting closer. In Mathematica 12, there are now more filling rules available. The documentation of the new function WindingPolygon lists the following: The ...
Sjoerd C. de Vries's user avatar
1 vote

Converting other C++ classes to MTensor in LibraryLink

As @halirutan said, it is not possible to take already allocated memory and return it to Mathematica. The LibraryLink API does not provide any access to Mathematica's memory management (like malloc, ...
Szabolcs's user avatar
  • 236k

Only top scored, non community-wiki answers of a minimum length are eligible