Commit graph

203 commits

Author SHA1 Message Date
Laura Klünder
e5c3f2509f check_svg_renderer → check_speedups 2017-11-11 02:45:07 +01:00
Laura Klünder
cfbe7c07f6 some linter stuff 2017-11-10 02:19:58 +01:00
Laura Klünder
1e625dd443 remove openscad utils 2017-11-09 17:33:13 +01:00
Laura Klünder
3e41ac9e14 use HybridGeometry to precache triangulations 2017-11-08 18:04:07 +01:00
Laura Klünder
7d0eb3975d add contains_points to mpl utils and move mpl utils to mapdata 2017-11-08 16:03:32 +01:00
Laura Klünder
596dc48f33 don't use quality meshing. we want to get a result, not freeze the device 2017-11-08 12:32:31 +01:00
Laura Klünder
a07c7506dd add missing keep_holes 2017-11-07 23:04:18 +01:00
Laura Klünder
bee51f000b move triangulate_polygon into c3nav.mapdata.utils.mesh 2017-11-07 22:58:47 +01:00
Laura Klünder
df451f9143 cleanup render code to make room for the opengl rendering engine 2017-11-04 23:21:36 +01:00
Laura Klünder
f7291ff237 disable altitudearea shadow rendering for now (takes too long) 2017-11-03 14:59:55 +01:00
Laura Klünder
4216998ec6 cast elevation to float so we can multiply it with floats 2017-11-03 13:00:06 +01:00
Laura Klünder
a58bf3753d fix json reindender for coordinates 2017-11-02 13:44:44 +01:00
Laura Klünder
554b36d22f utils.svg: skip LineStrings with no fill set 2017-11-01 14:20:08 +01:00
Laura Klünder
23e096b2b3 better space geometries so representative points never get places ind holes 2017-10-31 20:10:05 +01:00
Laura Klünder
fd74ca3258 calculate better representative point for geometries 2017-10-31 19:20:28 +01:00
Laura Klünder
94a23454a1 change short urls to not rely on doule slashes 2017-10-31 18:35:42 +01:00
Laura Klünder
6ae559e26a fix cache key for get_location_by_slug_for_request 2017-10-31 17:32:37 +01:00
Laura Klünder
620323b808 export entire location query logic into mapdata.utils.locations and cache 2017-10-31 15:22:12 +01:00
Laura Klünder
55f0f481fe optimized empty png image in SVGImage 2017-10-29 14:24:45 +01:00
Laura Klünder
4ad4083456 rendering background color to RGB instead of RGBA PNGs 2017-10-29 13:36:34 +01:00
Laura Klünder
a3be7b2842 flip every y,x to x,y 2017-10-29 11:32:44 +01:00
Laura Klünder
cce476c37a using id() as a cache key was a very bad idea 2017-10-29 09:47:53 +01:00
Laura Klünder
bfe1491efc add border to map renderings 2017-10-29 09:32:15 +01:00
Laura Klünder
5fe03c4c8e add simple_geometry to location api 2017-10-28 21:36:52 +02:00
Laura Klünder
cd09cbab68 take shortcut in get_png if this is an empty tile rendering 2017-10-20 22:37:54 +02:00
Laura Klünder
e93b9dc222 fix LineString serialization 2017-10-20 17:03:56 +02:00
Laura Klünder
5ede164761 warn during system check it shapely speedups are not available 2017-10-20 16:11:40 +02:00
Laura Klünder
49bc5f013d don't ceil blur radius 2017-10-20 16:00:24 +02:00
Laura Klünder
0986f8862e remove unnecessary line 2017-10-20 15:43:36 +02:00
Laura Klünder
58e2d34217 intersection(), not intersections() 2017-10-20 13:08:07 +02:00
Laura Klünder
f7486cdbaf add rtree Index with wrapper and fallback 2017-10-20 13:06:08 +02:00
Laura Klünder
6869ae40e4 remove unused _trim_lineto 2017-10-20 12:13:55 +02:00
Laura Klünder
34fffafa3f fix typo 2017-10-20 12:12:45 +02:00
Laura Klünder
05982b2364 close polygons in svg 2017-10-20 12:07:09 +02:00
Laura Klünder
2f90a79092 improve speed some more by caching numpy arrays 2017-10-20 12:01:24 +02:00
Laura Klünder
bf7ba02065 improve _create_geometry performance by replacing affine_transform with numpy 2017-10-20 11:55:17 +02:00
Laura Klünder
1b3fab8993 improve _geometry_to_svg performance 2017-10-20 11:31:22 +02:00
Laura Klünder
9e41473040 round up gaussian blur 2017-10-20 02:18:47 +02:00
Laura Klünder
11df6105d3 round blur radius 2017-10-20 02:03:26 +02:00
Laura Klünder
e320e5d35c remove trailing zeros 2017-10-20 01:59:53 +02:00
Laura Klünder
ba068f5c93 don't close polylines 2017-10-20 01:59:31 +02:00
Laura Klünder
fbd9b20dfd replace shapely svg renderer because it's terribly slow 2017-10-20 01:34:54 +02:00
Laura Klünder
518df5c247 fix clippath ids 2017-10-20 01:05:35 +02:00
Laura Klünder
86c9cfa827 fix missing ) after clip-path 2017-10-20 01:04:03 +02:00
Laura Klünder
b5d5d4875e remove unnecessary xml namespace 2017-10-20 01:00:27 +02:00
Laura Klünder
1b1ca2a65b fix too many whitespaces in xml output 2017-10-20 00:59:30 +02:00
Laura Klünder
d4aa5eda84 activate _trim_decimals again 2017-10-20 00:58:19 +02:00
Laura Klünder
41ee2c2ac5 deactivate _trim_decimals 2017-10-20 00:53:35 +02:00
Laura Klünder
627a31d3e3 filter out undrawable geometries 2017-10-20 00:51:30 +02:00
Laura Klünder
1ae60dba63 render XML directly as string for better performance and more cleanup 2017-10-19 23:50:21 +02:00