public CoordinateReferenceSystem getCoordinateReferenceSystem() { return getCoordinateSystem(); }
public GeometricAttributeType(GeometricAttributeType copy, CoordinateReferenceSystem override) { super(copy); coordinateSystem = copy.getCoordinateSystem(); if (override != null) { coordinateSystem = override; } if (coordinateSystem == null) { coordinateSystem = DefaultGeocentricCRS.CARTESIAN; } geometryFactory = (coordinateSystem == DefaultGeocentricCRS.CARTESIAN) ? CSGeometryFactory.DEFAULT : new CSGeometryFactory(coordinateSystem); }
public GeometricAttributeType(String name, Class type, boolean nillable, int min, int max, Object defaultValue, CoordinateReferenceSystem crs, Filter filter) { super(createAttributeType(name, type, crs,filter), name, nillable,min,max,defaultValue); geometryFactory = getCoordinateSystem() == null ? CSGeometryFactory.DEFAULT : new CSGeometryFactory(getCoordinateSystem()); /* coordinateSystem = (cs != null) ? cs : LocalCoordinateSystem.CARTESIAN; geometryFactory = (cs == LocalCoordinateSystem.CARTESIAN) ? CSGeometryFactory.DEFAULT : new CSGeometryFactory(cs); */ }
public GeometricAttributeType(GeometricAttributeType copy, CoordinateReferenceSystem override) { this( copy.getLocalName(), copy.getBinding(), copy.isNillable(), copy.getMinOccurs(),copy.getMaxOccurs(), null, crs(override), copy.getRestriction() ); geometryFactory = (getCoordinateSystem() == DefaultGeocentricCRS.CARTESIAN) ? CSGeometryFactory.DEFAULT : new CSGeometryFactory(getCoordinateSystem()); }