Package com.geodetix.geo.interfaces

Examples of com.geodetix.geo.interfaces.GeometryLocalHome


     * @param polygon The Polygon to search in.
     */
    public Collection findByPolygon(org.postgis.Polygon polygon)
    throws ApplicationGeoLayerException {
        try {
            GeometryLocalHome geometryHome = GeometryUtil.getLocalHome();
            Collection       geometries    = geometryHome.findByPolygon(polygon);
           
            List result = new ArrayList();
           
            for (Iterator iter = geometries.iterator(); iter.hasNext(); ) {
                GeometryLocal geometry = (GeometryLocal) iter.next();
View Full Code Here


     * @return a value object representing the created EJB.
     */
    public GeometryValue createGeometry(org.postgis.Geometry geometry, String description)
    throws ApplicationGeoLayerException {
        try {
            GeometryLocalHome geometryHome  = GeometryUtil.getLocalHome();
            GeometryLocal     geometryLocal =
                    geometryHome.create(geometry,description);
           
            return geometryLocal.getGeometryValue();
        } catch (NamingException e) {
            throw new ApplicationGeoLayerException(e);
        } catch (CreateException e) {
View Full Code Here

     * @throws ApplicationGeoLayerException thrown if an error occours
     * during table creation.
     */
    public void createGeometryTable() throws ApplicationGeoLayerException {
        try {
            GeometryLocalHome geometryHome = GeometryUtil.getLocalHome();
           
            geometryHome.makeDbTable();
        } catch (NamingException e) {
            throw new ApplicationGeoLayerException(e);
        } catch (Exception e) {
            throw new ApplicationGeoLayerException(e);
        }
View Full Code Here

     * during table creation.
     */
    public void createGeometryTable(String gemetryType, int srid, int geometryDimension )
    throws ApplicationGeoLayerException {
        try {
            GeometryLocalHome geometryHome = GeometryUtil.getLocalHome();
           
            geometryHome.makeDbTable(gemetryType, srid,  geometryDimension);
           
        } catch (NamingException e) {
            throw new ApplicationGeoLayerException(e);
        } catch (Exception e) {
            throw new ApplicationGeoLayerException(e);
View Full Code Here

     * @throws ApplicationGeoLayerException thrown if an error occours
     * during table creation.
     */
    public void dropGeometryTable() throws ApplicationGeoLayerException {
        try {
            GeometryLocalHome geometryHome = GeometryUtil.getLocalHome();
           
            geometryHome.dropDbTable();
        } catch (NamingException e) {
            throw new ApplicationGeoLayerException(e);
        } catch (Exception e) {
            throw new ApplicationGeoLayerException(e);
        }
View Full Code Here

TOP

Related Classes of com.geodetix.geo.interfaces.GeometryLocalHome

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.