Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/raster/AbstractProducer.java @ 875:5e9efdda6894
merged gnv-artifacts/1.0
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:13:56 +0200 |
parents | feae2f9d6c6f |
children | f953c9a559d8 |
comparison
equal
deleted
inserted
replaced
722:bb3ffe7d719e | 875:5e9efdda6894 |
---|---|
1 package de.intevation.gnv.raster; | |
2 | |
3 import de.intevation.gnv.raster.Vectorizer.RingsHandler; | |
4 | |
5 /** | |
6 * Abstract base class for producing multi polygons and | |
7 * multi line strings. This base class stores a bounding box | |
8 * of world coordinates which helps to transform the index | |
9 * spaced egde data into real world coordinates. | |
10 * | |
11 * @author <a href="mailto:sascha.teichmann@intevation.de">Sascha L. Teichmann</a> | |
12 */ | |
13 public abstract class AbstractProducer | |
14 implements RingsHandler | |
15 { | |
16 /** | |
17 * min x coord of the world. | |
18 */ | |
19 protected double minX; | |
20 | |
21 /** | |
22 * min y coord of the world. | |
23 */ | |
24 protected double minY; | |
25 | |
26 /** | |
27 * max x coord of the world. | |
28 */ | |
29 protected double maxX; | |
30 | |
31 /** | |
32 * max y coord of the world. | |
33 */ | |
34 protected double maxY; | |
35 | |
36 /** | |
37 * Default constructor. | |
38 */ | |
39 public AbstractProducer() { | |
40 } | |
41 | |
42 /** | |
43 * Constructor to create an Abstract producer with a | |
44 * given world bounding box. | |
45 * @param minX Min x coord of the world. | |
46 * @param minY Min y coord of the world. | |
47 * @param maxX Max x coord of the world. | |
48 * @param maxY Max y coord of the world. | |
49 */ | |
50 public AbstractProducer( | |
51 double minX, double minY, | |
52 double maxX, double maxY | |
53 ) { | |
54 this.minX = minX; | |
55 this.minY = minY; | |
56 this.maxX = maxX; | |
57 this.maxY = maxY; | |
58 } | |
59 } | |
60 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |