Tabnine Logo
GeometryDescriptorImpl.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.geotools.feature.type.GeometryDescriptorImpl
constructor

Best Java code snippets using org.geotools.feature.type.GeometryDescriptorImpl.<init> (Showing top 19 results out of 315)

origin: geotools/geotools

public GeometryDescriptor createGeometryDescriptor(
    GeometryType type,
    Name name,
    int minOccurs,
    int maxOccurs,
    boolean isNillable,
    Object defaultValue) {
  return new GeometryDescriptorImpl(
      type, name, minOccurs, maxOccurs, isNillable, defaultValue);
}
origin: geotools/geotools

          null,
          null);
  return new GeometryDescriptorImpl(at, new NameImpl(name), 0, 1, nillable, null);
} else {
  AttributeType at =
origin: org.geotools/gt-main

public GeometryDescriptor createGeometryDescriptor(GeometryType type,
    Name name, int minOccurs, int maxOccurs, boolean isNillable,
    Object defaultValue) {
  return new GeometryDescriptorImpl(type, name, minOccurs, maxOccurs, isNillable, defaultValue);
}

origin: geotools/geotools

if (type instanceof GeometryType) {
  descriptor =
      new GeometryDescriptorImpl(
          (GeometryType) type,
          name,
origin: geotools/geotools

new GeometryDescriptorImpl(
    geomType,
    descriptor.getName(),
origin: geotools/geotools

/** Test extracting geometry from geometryattribute should be successful. */
public void testGeometry() {
  Geometry geometry = new EmptyGeometry();
  GeometryAttribute geoatt =
      new GeometryAttributeImpl(
          geometry,
          new GeometryDescriptorImpl(
              new GeometryTypeImpl(
                  new NameImpl(""),
                  EmptyGeometry.class,
                  null,
                  false,
                  false,
                  null,
                  null,
                  null),
              new NameImpl(""),
              0,
              0,
              false,
              null),
          null);
  Geometry geometry2 = Converters.convert(geoatt, Geometry.class);
  assertTrue(geometry == geometry2);
}
origin: org.geotools/gt-main

  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,
origin: org.n52.wps/52n-wps-io-geotools

    ,oldGeometryDescriptor.getType().getDescription());
GeometryDescriptor newGeometryDescriptor = new GeometryDescriptorImpl(type, property.getName(), 0, 1, true, null);
Identifier identifier = new GmlObjectIdImpl(feature.getID());
GeometryAttributeImpl geo = new GeometryAttributeImpl((Object) g, newGeometryDescriptor, identifier);
origin: org.geotools/gt-app-schema

  descriptor = new GeometryDescriptorImpl((GeometryType) type, name, minOccurs,
      maxOccurs, nillable, defaultValue);
} else {
origin: org.geotools/gt-app-schema

/**
 * 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));
}
origin: org.n52.wps/52n-wps-io-geotools

        .getDescription());
GeometryDescriptor newGeometryDescriptor = new GeometryDescriptorImpl(
    type, property.getName(), 0, 1, true,
    null);
origin: org.geotools/gt-app-schema

/**
* Test extracting geometry from geometryattribute should be successful.
*/
public void testGeometry() {
  Geometry geometry = new EmptyGeometry();
  GeometryAttribute geoatt = new GeometryAttributeImpl(geometry, new GeometryDescriptorImpl(new GeometryTypeImpl(new NameImpl(""), EmptyGeometry.class, null, false, false, null, null, null), new NameImpl(""), 0, 0, false, null), null);
  Geometry geometry2 = Converters.convert(geoatt, Geometry.class);
    assertTrue(geometry == geometry2);
}
origin: org.n52.wps/52n-wps-io-geotools

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());
GeometryDescriptor newGeometryDescriptor = new GeometryDescriptorImpl(type,property.getName(),0,1,true,null);
Identifier identifier = new GmlObjectIdImpl(feature.getID());
GeometryAttributeImpl geo = new GeometryAttributeImpl((Object)g,newGeometryDescriptor, identifier);
origin: org.geoserver/gs-wfs

        type.getSuper(),
        type.getDescription());
return new GeometryDescriptorImpl(
    curvedType,
    gd.getName(),
        type.getSuper(),
        type.getDescription());
return new GeometryDescriptorImpl(
    curvedType,
    gd.getName(),
origin: org.geoserver/gs-wms

        null);
builder.add(new GeometryDescriptorImpl(gt, new NameImpl("GEOMETRY"), 0, 1, false, null));
origin: org.n52.wps/52n-wps-io-geotools

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());
GeometryDescriptor newGeometryDescriptor = new GeometryDescriptorImpl(type1,geomProperty.getName(),0,1,true,null);
Identifier identifier = new GmlObjectIdImpl(sf.getID());
geo = new GeometryAttributeImpl((Object)g,newGeometryDescriptor, identifier);
origin: robward-scisys/sldeditor

new GeometryDescriptorImpl(
    gt,
    geomDescriptor.getName(),
origin: org.geoserver/gs-wms

new GeometryDescriptorImpl(
    gt,
    geomDescriptor.getName(),
origin: bcdev/beam

                     false, false, null, null, null);
GeometryDescriptor gd1 = new GeometryDescriptorImpl(gt1,
                          new NameImpl("geometry"),
                          0, 1,
org.geotools.feature.typeGeometryDescriptorImpl<init>

Popular methods of GeometryDescriptorImpl

  • getName
  • getType

Popular in Java

  • Reactive rest calls using spring rest template
  • getSystemService (Context)
  • getResourceAsStream (ClassLoader)
  • addToBackStack (FragmentTransaction)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • BoxLayout (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now