simple_mapnik 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -2
- data/README.md +10 -3
- data/Rakefile +13 -4
- data/lib/simple_mapnik/version.rb +1 -1
- data/libmapnik_c.dylib +0 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 822e24a92b3078c02d0f49a991f34c7d81dba0f3
|
4
|
+
data.tar.gz: 692f6b7ab90804e3ec7b2d3bc14878c7a1f34712
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22b9a3f9cdb79a612cd08d19e65d1f111a5c15f408501bf58a77ee1127358941a1be1b030f18cbe7d92780fe03b2ca314cab8b318b70d8c9f383e169724fd865
|
7
|
+
data.tar.gz: bb9a107bfe011443ba999c8ede87d7a4d9be847d64cfd3e2e20218475a3ee3ea4e96a8a1f6716b5f7e91a440d7c1744c70c3ac9c76e70ff6289672ac97d227fc
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -7,14 +7,21 @@ Simple ruby access to the Mapnik library using [ruby-ffi](https://github.com/ffi
|
|
7
7
|
|
8
8
|
## Prerequisites
|
9
9
|
|
10
|
-
SimpleMapnik requires that Mapnik 3.x or 2.x be installed at `/usr/local/lib/libmapnik.*`.
|
10
|
+
SimpleMapnik requires that Mapnik 3.x or 2.x be installed at `/usr/local/lib/libmapnik.*`. The gem comes with a pre-built c api library compiled on OSX 10.10.5. For linux a C++ compiler and build environment is needed.
|
11
11
|
|
12
|
-
|
12
|
+
If the OSX binary does not work, the library can be compiled (after installing a build environment) by running:
|
13
|
+
|
14
|
+
```
|
15
|
+
$ rake api:build
|
16
|
+
```
|
17
|
+
|
18
|
+
Mac OS X:
|
13
19
|
|
14
20
|
- https://github.com/mapnik/mapnik/wiki/MacInstallation or ```brew install mapnik```
|
15
21
|
- Build environment: [Xcode](https://developer.apple.com/xcode/)
|
16
22
|
|
17
|
-
|
23
|
+
Linux:
|
24
|
+
|
18
25
|
- https://github.com/mapnik/mapnik/wiki/LinuxInstallation
|
19
26
|
- Build environment: [gcc](https://help.ubuntu.com/community/InstallingCompilers) or clang
|
20
27
|
|
data/Rakefile
CHANGED
@@ -20,10 +20,19 @@ begin
|
|
20
20
|
rescue LoadError
|
21
21
|
end
|
22
22
|
|
23
|
-
require '
|
23
|
+
require 'simple_mapnik/api'
|
24
|
+
require 'ffi'
|
24
25
|
|
25
|
-
|
26
|
-
|
26
|
+
namespace :api do
|
27
|
+
desc 'check for mapnik c api and install'
|
28
|
+
task :check_and_install do
|
29
|
+
SimpleMapnik::Api.new.check_and_install
|
30
|
+
end
|
31
|
+
|
32
|
+
desc 'build mapnik c api'
|
33
|
+
task :build do
|
34
|
+
SimpleMapnik::Api.new.install
|
35
|
+
end
|
27
36
|
end
|
28
37
|
|
29
|
-
task default: :
|
38
|
+
task default: ['api:check_and_install']
|
data/libmapnik_c.dylib
ADDED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_mapnik
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eliot Jordan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -162,6 +162,7 @@ files:
|
|
162
162
|
- lib/simple_mapnik/coordinate.rb
|
163
163
|
- lib/simple_mapnik/map.rb
|
164
164
|
- lib/simple_mapnik/version.rb
|
165
|
+
- libmapnik_c.dylib
|
165
166
|
- simple_mapnik.gemspec
|
166
167
|
- spec/fixtures/sample/missing_attribute.xml
|
167
168
|
- spec/fixtures/sample/stylesheet.xml
|