Examples of GeometryType


Examples of org.opengis.feature.type.GeometryType

   
    private GeometryDescriptor reprojectGeometry(GeometryDescriptor descr) {
      if (descr == null) {
        return null;
      }
      GeometryType type = ftf.createGeometryType(descr.getType().getName(), descr.getType().getBinding(), reprojection, descr.getType().isIdentified(), descr.getType().isAbstract(), descr.getType().getRestrictions(), descr.getType().getSuper(), descr.getType().getDescription());
      type.getUserData().putAll(descr.getType().getUserData());
      GeometryDescriptor gd = ftf.createGeometryDescriptor(type, descr.getName(), descr.getMinOccurs(), descr.getMaxOccurs(), descr.isNillable(), descr.getDefaultValue());
      gd.getUserData().putAll(descr.getUserData());
      return gd;
    }
View Full Code Here

Examples of org.opengis.feature.type.GeometryType

            binding = aType.getBinding();
            isIdentified = aType.isIdentified();
            superType = aType.getSuper();
        }
        if (type instanceof GeometryType) {
            GeometryType geometryType = (GeometryType) type;

            this.crs = geometryType.getCoordinateReferenceSystem();
        }
        if (type instanceof ComplexType) {
            ComplexType cType = (ComplexType) type;

            properties = null;
View Full Code Here

Examples of org.opengis.feature.type.GeometryType

                    LOGGER.warning("Creating "+name+" with null CoordinateReferenceSystem - did you mean to setCRS?");
                }
                attributeBuilder.setCRS(defaultCrs);
            }

            GeometryType type = attributeBuilder.buildGeometryType();
            descriptor = attributeBuilder.buildDescriptor(name, type);
        } else {
            AttributeType type = attributeBuilder.buildType();
            descriptor = attributeBuilder.buildDescriptor(name, type);
        }
View Full Code Here

Examples of org.opengis.feature.type.GeometryType

  public void add(String name, Class<?> binding, CoordinateReferenceSystem crs ) {
    attributeBuilder.setBinding(binding);
    attributeBuilder.setName(name);
    attributeBuilder.setCRS(crs);
   
    GeometryType type = attributeBuilder.buildGeometryType();
    GeometryDescriptor descriptor = attributeBuilder.buildDescriptor(name,type);
    attributes().add(descriptor);
  }
View Full Code Here

Examples of org.opengis.feature.type.GeometryType

                //
          if ( !(att instanceof GeometryDescriptor ) ) {
              LOGGER.warning("Default Geometry "+this.defaultGeometry+" was added as a geoemtry");
            attributeBuilder.init( att );
            attributeBuilder.setCRS(defaultCrs);
            GeometryType type = attributeBuilder.buildGeometryType();
           
            att = attributeBuilder.buildDescriptor(att.getName(),type);
            atts.set( i, att );
          }
          defGeom = (GeometryDescriptor)att;
View Full Code Here

Examples of org.opengis.feature.type.GeometryType

        //look it up from the type
        if (((FeatureType)getType()).getGeometryDescriptor() == null ) {
          return null;
        }
       
        GeometryType geometryType =
           (GeometryType) getType().getGeometryDescriptor().getType();
       
         if (geometryType != null) {
           for (Iterator itr = getValue().iterator(); itr.hasNext();) {
             Property property =  (Property) itr.next();
View Full Code Here

Examples of org.opengis.feature.type.GeometryType

   * <p>
   * This method resets all state after the attribute is built.
   * </p>
   */
  public GeometryType buildGeometryType() {
    GeometryType type = factory.createGeometryType(
      name(), binding, crs, isIdentifiable, isAbstract,
      restrictions(), superType, description());
   
    resetTypeState();
   
View Full Code Here

Examples of org.opengis.feature.type.GeometryType

           
            if( Geometry.class.isAssignableFrom( binding )){
                CoordinateReferenceSystem crs;
                AttributeType originalAttributeType = origional.getType(name);
                if( originalAttributeType != null && originalAttributeType instanceof GeometryType ) {
                    GeometryType geometryType = (GeometryType)originalAttributeType;
                    crs = geometryType.getCoordinateReferenceSystem();
                } else {
                    crs = origional.getCoordinateReferenceSystem();
                }
                build.crs(crs);
                build.add(name, binding);
View Full Code Here

Examples of org.opengis.feature.type.GeometryType

                }
            }

            Class clazz = type(type);
            if (Geometry.class.isAssignableFrom(clazz)) {
                GeometryType at = new GeometryTypeImpl(new NameImpl(name), clazz, crs, false,
                        false, Collections.EMPTY_LIST, null, null);
                return new GeometryDescriptorImpl(at, new NameImpl(name), 0, 1, nillable, null);
            } else {
                AttributeType at = new AttributeTypeImpl(new NameImpl(name), clazz, false, false,
                        Collections.EMPTY_LIST, null, null);
View Full Code Here

Examples of org.opengis.feature.type.GeometryType

        if (!(type instanceof AttributeTypeProxy)
                && (Geometry.class.isAssignableFrom(type.getBinding()) || CurvedGeometry.class
                        .isAssignableFrom(type.getBinding()))) {
            // create geometry descriptor with the simple feature type CRS
            GeometryType geomType = new GeometryTypeImpl(type.getName(), type.getBinding(), crs,
                    type.isIdentified(), type.isAbstract(), type.getRestrictions(),
                    type.getSuper(), type.getDescription());
            descriptor = typeFactory.createGeometryDescriptor(geomType, elemName, minOccurs,
                    maxOccurs, nillable, defaultValue);
        } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.