Metadata-Version: 2.0
Name: ocad
Version: 0.0.2
Summary: Module for handling ocad-files
Home-page: UNKNOWN
Author: Marius Huerzeler
Author-email: huerzeler.marius@gmail.com
License: MIT
Description-Content-Type: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Requires-Python: >=3


# OCAD

This is a python-modul which contains usefull fuctions when handling with ocad-files.

### Install

$ pip install ocad

### Example


```python
from ocad import ocad
```


```python
ocad.file_is_cs("OCAD12-File-Sample.ocd")

    >>>False
```

```python
ocad.file_is_map("OCAD12-File-Sample.ocd")

    >>>True
```

```python
ocad.file_is_ocad("OCAD12-File-Sample.ocd")

    >>>True
```

```python
ocad.file_version("OCAD12-File-Sample.ocd", format='short')

    >>>'12'
 ```


```python
ocad.file_info("OCAD12-File-Sample.ocd")

 >>>{'epsg_code': None,
     'epsg_name': None,
     'georeferenced': True,
     'note': 'map note',
     'number_of_backgroundmaps': 0,
     'number_of_classes': 0,
     'number_of_colors': 1,
     'number_of_courses': 0,
     'number_of_spot-colors': 0,
     'scale': '10000.000000',
     'typ': 'map',
     'version_long': '12.3.1',
     'version_short': '12'}
```



