Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/raster/AbstractProducer.java @ 1119:7c4f81f74c47
merged gnv-artifacts
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:14:00 +0200 |
parents | f953c9a559d8 |
children |
comparison
equal
deleted
inserted
replaced
1027:fca4b5eb8d2f | 1119:7c4f81f74c47 |
---|---|
1 /* | |
2 * Copyright (c) 2010 by Intevation GmbH | |
3 * | |
4 * This program is free software under the LGPL (>=v2.1) | |
5 * Read the file LGPL.txt coming with the software for details | |
6 * or visit http://www.gnu.org/licenses/ if it does not exist. | |
7 */ | |
8 | |
9 package de.intevation.gnv.raster; | |
10 | |
11 import de.intevation.gnv.raster.Vectorizer.RingsHandler; | |
12 | |
13 /** | |
14 * Abstract base class for producing multi polygons and | |
15 * multi line strings. This base class stores a bounding box | |
16 * of world coordinates which helps to transform the index | |
17 * spaced egde data into real world coordinates. | |
18 * | |
19 * @author <a href="mailto:sascha.teichmann@intevation.de">Sascha L. Teichmann</a> | |
20 */ | |
21 public abstract class AbstractProducer | |
22 implements RingsHandler | |
23 { | |
24 /** | |
25 * min x coord of the world. | |
26 */ | |
27 protected double minX; | |
28 | |
29 /** | |
30 * min y coord of the world. | |
31 */ | |
32 protected double minY; | |
33 | |
34 /** | |
35 * max x coord of the world. | |
36 */ | |
37 protected double maxX; | |
38 | |
39 /** | |
40 * max y coord of the world. | |
41 */ | |
42 protected double maxY; | |
43 | |
44 /** | |
45 * Default constructor. | |
46 */ | |
47 public AbstractProducer() { | |
48 } | |
49 | |
50 /** | |
51 * Constructor to create an Abstract producer with a | |
52 * given world bounding box. | |
53 * @param minX Min x coord of the world. | |
54 * @param minY Min y coord of the world. | |
55 * @param maxX Max x coord of the world. | |
56 * @param maxY Max y coord of the world. | |
57 */ | |
58 public AbstractProducer( | |
59 double minX, double minY, | |
60 double maxX, double maxY | |
61 ) { | |
62 this.minX = minX; | |
63 this.minY = minY; | |
64 this.maxX = maxX; | |
65 this.maxY = maxY; | |
66 } | |
67 } | |
68 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |