📄 pgbox2d.java
字号:
/* * PGbox2d.java * * PostGIS extension for PostgreSQL JDBC driver - bounding box model * * (C) 2004 Paul Ramsey, pramsey@refractions.net * * (C) 2005 Markus Schaber, markus.schaber@logix-tt.com * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation, either version 2.1 of the License. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. * * You should have received a copy of the GNU Lesser General Public License * along with this library; if not, write to the Free Software Foundation, Inc., * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA or visit the web at * http://www.gnu.org. * * $Id: PGbox2d.java 1622 2005-04-15 14:04:34Z mschaber $ */package org.postgis;import java.sql.SQLException;public class PGbox2d extends PGboxbase { /* JDK 1.5 Serialization */ private static final long serialVersionUID = 0x100; public PGbox2d() { super(); } public PGbox2d(Point llb, Point urt) { super(llb, urt); } public PGbox2d(String value) throws SQLException { super(value); } public void setValue(String value) throws SQLException { super.setValue(value); if (llb.dimension != 2 || urt.dimension != 2) { throw new SQLException("PGbox2d is only allowed to have 2 dimensions!"); } } public String getPrefix() { return "BOX"; } public String getPGtype() { return "box2d"; } protected PGboxbase newInstance() { return new PGbox2d(); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -