origType.isIdentified(), origType.isAbstract(), origType.getRestrictions(), origType.getSuper(), origType.getDescription());
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; }
oldGeometryDescriptor.getType().isIdentified(), oldGeometryDescriptor.getType().isAbstract(), oldGeometryDescriptor.getType().getRestrictions(), oldGeometryDescriptor.getType().getSuper() ,oldGeometryDescriptor.getType().getDescription());
geomType.getCoordinateReferenceSystem(), geomType.isIdentified(), geomType.isAbstract(), geomType.getRestrictions(), geomType.getSuper(), geomType.getDescription());
/** * Create a new geometry attribute, even for null id. * * @see org.geotools.feature.AbstractFeatureFactoryImpl#createGeometryAttribute(java.lang.Object, * org.opengis.feature.type.GeometryDescriptor, java.lang.String, * org.opengis.referencing.crs.CoordinateReferenceSystem) */ @Override public GeometryAttribute createGeometryAttribute(Object value, GeometryDescriptor descriptor, String id, CoordinateReferenceSystem crs) { if (crs != null && !(crs.equals(descriptor.getCoordinateReferenceSystem()))) { // update CRS GeometryType origType = (GeometryType) descriptor.getType(); GeometryType geomType = new GeometryTypeImpl(origType.getName(), origType.getBinding(), crs, origType.isIdentified(), origType.isAbstract(), origType.getRestrictions(), origType.getSuper(), origType.getDescription()); geomType.getUserData().putAll(origType.getUserData()); descriptor = new GeometryDescriptorImpl(geomType, descriptor.getName(), descriptor .getMinOccurs(), descriptor.getMaxOccurs(), descriptor.isNillable(), ((GeometryDescriptor) descriptor).getDefaultValue()); descriptor.getUserData().putAll(descriptor.getUserData()); } return new GeometryAttributeImpl(value, descriptor, buildSafeGmlObjectId(id)); }
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; }
.isAbstract(), oldGeometryDescriptor.getType() .getRestrictions(), oldGeometryDescriptor.getType() .getSuper(),
if(g!=null){ GeometryAttribute oldGeometryDescriptor = feature.getDefaultGeometryProperty(); GeometryType type = new GeometryTypeImpl(property.getName(),(Class<?>)oldGeometryDescriptor.getType().getBinding(),oldGeometryDescriptor.getType().getCoordinateReferenceSystem(),oldGeometryDescriptor.getType().isIdentified(),oldGeometryDescriptor.getType().isAbstract(),oldGeometryDescriptor.getType().getRestrictions(),oldGeometryDescriptor.getType().getSuper(),oldGeometryDescriptor.getType().getDescription());
type.isIdentified(), type.isAbstract(), type.getRestrictions(), type.getSuper(), type.getDescription()); type.isIdentified(), type.isAbstract(), type.getRestrictions(), type.getSuper(), type.getDescription());
GeometryType type1 = new GeometryTypeImpl(geomProperty.getName(),MultiPolygon.class, oldGeometryDescriptor.getType().getCoordinateReferenceSystem(),oldGeometryDescriptor.getType().isIdentified(),oldGeometryDescriptor.getType().isAbstract(),oldGeometryDescriptor.getType().getRestrictions(),oldGeometryDescriptor.getType().getSuper(),oldGeometryDescriptor.getType().getDescription());
geomType.isIdentified(), geomType.isAbstract(), geomType.getRestrictions(), geomType.getSuper(), geomType.getDescription());
geomType.isIdentified(), geomType.isAbstract(), geomType.getRestrictions(), geomType.getSuper(), geomType.getDescription());