lp://staging/~registry/dhis2-academy/map_generation_service-group_10

Created by Kenneth Solbø Andersen and last modified
Get this branch:
bzr branch lp://staging/~registry/dhis2-academy/map_generation_service-group_10
Members of Registry Administrators can upload to this branch. Log in for directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Registry Administrators
Project:
DHIS 2 Academy
Status:
Merged

Recent revisions

5064. By Olai Solheim

+ Added additional javadoc explaining how the classes Interval and IntervalSet works.

5063. By Olai Solheim

+ Tidied up code in class GeoToolsMap.
+ Removed class GeoToolsPrimitiveFactory -> moved its GT factory into class GeoToolsPrimitiveFromJsonFactory.
+ Tidied up code in class GeoToolsMapGenerationService.
+ Replaced geometry type in class GeoToolsMapObject from Object to Geometry -> GT's geometric primitive base class.
+ Reflected these changes in class GeoToolsMap.
+ Removed double definition of legend background in class LegendSet -> legend background is now transparent again, which is good.

Need to fix bug that can be replicated by trying to view map with ID 1149437 (/api/maps/1149437).

Needs code review by absent group members -> kennetsa, krissimo, and then merge to trunk by friday afternoon!!! \m/(-_-)\m/

Olai

5062. By Kjetil Andresen

Bug fix.

5061. By Kjetil Andresen

Commented and improved the code a bit.

5060. By Olai Solheim

Removed warning from class Legend and enabled background transparency for drawn legends (BufferedImage.TYPE_INT_ARGB without any background color).

5059. By Olai Solheim

+ Added functionality to merge images in the service.
+ Changed where geometry is built -> now in GeoToolsMapObject where it belongs.
+ Smaller changes.

5058. By Kjetil Andresen

The LegendSet now works as a charm :) Here are the advantages of the new implementation of Legend:

+ Variable size of the interval sets, not static 5 as before.
+ Sets the image size automatically by investigating the legend sizes and calculate the image size based on that information.
+ A better abstraction that can be modified easier.

The code is not commented yet, and it needs testing.

5057. By Kjetil Andresen

+ Added a class LegendItem which represents a interval on a legend image.
+ Also updated Legend and LegendSet with more dynamic code.

The service know only supports one legend, but with as many intervals as we want.

5056. By Olai Solheim

Introduced the abstract class InternalMap. It provides a base class for all implementations of an internal map, e.g. the GeoToolsMap, which now extends this class.

5055. By Olai Solheim

+ Added authors for remaining source files.
+ Added support for getting period from a map layer.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp://staging/dhis2-academy
This branch contains Public information 
Everyone can see this information.