Examples of GeometryType


Examples of org.opengis.feature.type.GeometryType

    super.setUp();
   
    this.geometryFactory = new GeometryFactory( new PrecisionModel( PrecisionModel.FLOATING ), 27700 );
   
    // TODO Try using the SimpleFeatureBuilder class.
    GeometryType geometryType = LimbGeneratorTest.Utils.createGeometryType( LineString.class );
    GeometryDescriptor geometryDescriptor = LimbGeneratorTest.Utils.createGeometryDescriptor( geometryType );
    List<AttributeDescriptor> attributeDescriptors = new ArrayList<AttributeDescriptor>();
    attributeDescriptors.add( geometryDescriptor );
    SimpleFeatureType featureType = new SimpleFeatureTypeImpl( new NameImpl( "test" ), attributeDescriptors, geometryDescriptor, false, null, null, null );
    List<Object> attributeValues = new ArrayList<Object>();
View Full Code Here

Examples of org.opengis.feature.type.GeometryType

          } else {
            objSR = new JSONObject();
            objSR.put("wkid", outSR);
            obj.put("spatialReference", objSR);

            GeometryType geometryType = featureCollection
                .getSchema().getGeometryDescriptor().getType();
            obj
                .put("geometryType", EsriJsonUtil
                    .geometryType2String(geometryType
                        .getBinding()));
            String geometryField = featureCollection.getSchema()
                .getGeometryDescriptor().getLocalName();

            ArrayList<String> fields = new ArrayList<String>();
View Full Code Here

Examples of org.opengis.feature.type.GeometryType

      obj.put("GIServerVersion", VersionUtil.getCurrentversion());
      if (featureCollection == null && featureId >= 0) {
        ArrayList<String> details = new ArrayList<String>();
        details.add("Feature got is NULL.");
      } else {
        GeometryType geometryType = featureCollection.getSchema()
            .getGeometryDescriptor().getType();
        obj.put("geometryType", EsriJsonUtil
            .geometryType2String(geometryType.getBinding()));
        String geometryField = featureCollection.getSchema()
            .getGeometryDescriptor().getLocalName();

        ArrayList<String> fields = new ArrayList<String>();
        Collection<PropertyDescriptor> propertyDescriptors = featureCollection
View Full Code Here

Examples of org.opengis.feature.type.GeometryType

      obj.put("GIServerVersion", VersionUtil.getCurrentversion());
      if (featureCollection == null && !(featureId >= 0)) {
        ArrayList<String> details = new ArrayList<String>();
        details.add("Feature got is NULL.");
      } else {
        GeometryType geometryType = featureCollection.getSchema()
            .getGeometryDescriptor().getType();
        obj.put("geometryType", EsriJsonUtil
            .geometryType2String(geometryType.getBinding()));
        String geometryField = featureCollection.getSchema()
            .getGeometryDescriptor().getLocalName();

        ArrayList<String> fields = new ArrayList<String>();
        Collection<PropertyDescriptor> propertyDescriptors = featureCollection
View Full Code Here

Examples of org.opengis.feature.type.GeometryType

          } else {
            objSR = new JSONObject();
            objSR.put("wkid", outSR);
            obj.put("spatialReference", objSR);

            GeometryType geometryType = featureCollection
                .getSchema().getGeometryDescriptor().getType();
            obj
                .put("geometryType", EsriJsonUtil
                    .geometryType2String(geometryType
                        .getBinding()));
            String geometryField = featureCollection.getSchema()
                .getGeometryDescriptor().getLocalName();

            ArrayList<String> fields = new ArrayList<String>();
View Full Code Here

Examples of org.opengis.feature.type.GeometryType

            writeElement("minoccurs", Integer.toString(descriptor.getMinOccurs()));
            writeElement("maxoccurs", Integer.toString(descriptor.getMaxOccurs()));
            writeElement("nillable", Boolean.toString(descriptor.isNillable()));
            PropertyType attrType = descriptor.getType();
            if (attrType instanceof GeometryType) {
                GeometryType gt = (GeometryType) attrType;
                CoordinateReferenceSystem crs = gt.getCoordinateReferenceSystem();
                String crsText = CrsTextSerializer.serialize(crs);
                writeElement("crs", crsText);
            }
            out.writeEndElement();
        }
View Full Code Here

Examples of org.opengis.feature.type.GeometryType

            Entry<PropertyDescriptor, AttributeDiff> entry = iter.next();
            out.writeStartElement("diff");
            PropertyType attrType = entry.getKey().getType();
            if (attrType instanceof GeometryType) {
                writeElement("geometry", "true");
                GeometryType gt = (GeometryType) attrType;
                CoordinateReferenceSystem crs = gt.getCoordinateReferenceSystem();
                if (crs != null) {
                    String crsCode = null;
                    try {
                        crsCode = CRS.lookupIdentifier(Citations.EPSG, crs, false);
                    } catch (FactoryException e) {
View Full Code Here

Examples of org.opengis.feature.type.GeometryType

                                    .getDescriptors();

                            for (PropertyDescriptor attrib : attribs) {
                                PropertyType attrType = attrib.getType();
                                if (attrType instanceof GeometryType) {
                                    GeometryType gt = (GeometryType) attrType;
                                    CoordinateReferenceSystem crs = gt
                                            .getCoordinateReferenceSystem();
                                    if (crs != null) {
                                        try {
                                            crsCode = CRS.lookupIdentifier(Citations.EPSG, crs,
                                                    false);
View Full Code Here

Examples of org.opengis.feature.type.GeometryType

                            Collection<PropertyDescriptor> attribs = type.type().getDescriptors();

                            for (PropertyDescriptor attrib : attribs) {
                                PropertyType attrType = attrib.getType();
                                if (attrType instanceof GeometryType) {
                                    GeometryType gt = (GeometryType) attrType;
                                    CoordinateReferenceSystem crs = gt
                                            .getCoordinateReferenceSystem();

                                    if (crs != null) {
                                        try {
                                            crsCode = CRS.lookupIdentifier(Citations.EPSG, crs,
View Full Code Here

Examples of org.opengis.feature.type.GeometryType

                        String crsCode = null;

                        for (PropertyDescriptor attrib : attribs) {
                            PropertyType attrType = attrib.getType();
                            if (attrType instanceof GeometryType) {
                                GeometryType gt = (GeometryType) attrType;
                                CoordinateReferenceSystem crs = gt.getCoordinateReferenceSystem();
                                if (crs != null) {
                                    try {
                                        crsCode = CRS.lookupIdentifier(Citations.EPSG, crs, false);
                                    } catch (FactoryException e) {
                                        crsCode = null;
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.