| | |
| | | public Coal54Entity() { |
| | | } |
| | | |
| | | public Coal54Entity(BigDecimal x, BigDecimal y, BigDecimal top, BigDecimal clong, BigDecimal width, BigDecimal height, String ctype, BigDecimal density, BigDecimal gangue) { |
| | | this.top = top; |
| | | this.clong = clong; |
| | | this.width = width; |
| | | this.height = height; |
| | | this.ctype = ctype; |
| | | this.density = density; |
| | | this.gangue = gangue; |
| | | |
| | | this.bottom = top.add(height); |
| | | this.volume = clong.multiply(width).multiply(height); |
| | | this.geom = String.format("ST_GeomFromText('POINT (%f %f)')", x.doubleValue(), y.doubleValue()); |
| | | } |
| | | |
| | | public Integer getGid() { |
| | | return gid; |
| | | } |