Package org.geotools.gml3.v3_2.gss

Examples of org.geotools.gml3.v3_2.gss.GSS


     * @param schemaLocation
     * @return
     */
    private static XSDElementDeclaration parseFeatureType(final QName featureTypeName,
            final URL schemaLocation) throws DataSourceException {
        ApplicationSchemaConfiguration configuration;
        {
            String namespaceURI = featureTypeName.getNamespaceURI();
            String uri = schemaLocation.toExternalForm();
            configuration = new ApplicationSchemaConfiguration(namespaceURI, uri);
        }
        SchemaIndex schemaIndex;
        try {
            schemaIndex = Schemas.findSchemas(configuration);
        } catch (RuntimeException e) {
View Full Code Here


     */
    private static XSDElementDeclaration parseFeatureType(QName featureTypeName,
            final URL schemaLocation, final Map<String, String> mappedURIs,
            final boolean ignoreMissingElementDeclaration)
            throws DataSourceException {
        ApplicationSchemaConfiguration configuration;
        {
            String namespaceURI = featureTypeName.getNamespaceURI();
            if(mappedURIs.containsKey(namespaceURI)) {
                namespaceURI = mappedURIs.get(namespaceURI);
                featureTypeName = new QName(namespaceURI, featureTypeName.getLocalPart());
            }
            String uri = schemaLocation.toExternalForm();
            configuration = new ApplicationSchemaConfiguration(namespaceURI, uri);
        }
        SchemaIndex schemaIndex;
        try {
            schemaIndex = Schemas.findSchemas(configuration);
        } catch (RuntimeException e) {
View Full Code Here

            CoordinateReferenceSystem crs) throws IOException {
        Configuration configuration;
        // use GML3 application Schema by default
        String namespaceURI = featureName.getNamespaceURI();
        String uri = schemaLocation.toExternalForm();
        configuration = new ApplicationSchemaConfiguration(namespaceURI, uri);

        XSDElementDeclaration elementDecl = parseFeatureType(featureName, configuration);
        return parse(configuration,elementDecl, crs);
    }
View Full Code Here

        CurvedGeometryFactory factory;
        if (arcParameters != null && arcParameters.getLinearizationTolerance() != null) {
            double tolerance = Double.MAX_VALUE;
            if (cs != null) {
                CircularArc arc = CurvedGeometries.getArc(cs, 0);
                Circle c = new Circle(arc.getCenter(), arc.getRadius());
                tolerance = arcParameters.getLinearizationTolerance().getTolerance(c);
            }
            factory = new CurvedGeometryFactory(gFactory, tolerance);
        } else if (gFactory instanceof CurvedGeometryFactory) {
            factory = (CurvedGeometryFactory) gFactory;
View Full Code Here

        Coordinate c1 = circleCoordinates[0];
        Coordinate c2 = circleCoordinates[1];
        Coordinate c3 = circleCoordinates[2];

        Circle circle = new Circle(c1, c2, c3);
        double tolerance = arcParameters.getLinearizationTolerance().getTolerance(circle);
        Coordinate[] resultCoordinates = Circle.linearizeCircle(c1, c2, c3, tolerance);

        LineString resultLineString = gFactory.createLineString(resultCoordinates);
View Full Code Here

     * @generated
     */    
    public WCSConfiguration() {
       super(WCS.getInstance());
      
       addDependency(new GMLConfiguration());
       addDependency(new OWSConfiguration());
    }
View Full Code Here

            public void disposed(DataStoreInfo dataStore, DataAccess da) {
                wfs.flush();
            }
        });
        addDependency(new OGCConfiguration());
        addDependency(new GMLConfiguration());
        addDependency(new OWSConfiguration());
    }
View Full Code Here

           "    </wps:RawDataOutput>" +
           "  </wps:ResponseForm>" +
           "</wps:Execute>";
       
        Document d = postAsDOM( "wps", xml );
        checkValidationErrors(d, new GMLConfiguration());
       
        assertEquals( "gml:Polygon", d.getDocumentElement().getNodeName() );
    }
View Full Code Here

        private Encoder encoder;
        private ContentHandler handler;

        public KML3GeometryTranslator(ContentHandler handler) {
            this.handler = handler;
            org.geotools.xml.Configuration configuration = new GMLConfiguration();
            this.encoder = new Encoder(configuration);
            this.encoder.setNamespaceAware(false);
        }
View Full Code Here

    }

    public void write(Object value, OutputStream output, Operation operation)
            throws IOException, ServiceException {
   
        Encoder encoder = new Encoder( new GMLConfiguration() );
        encoder.setEncoding(Charset.forName( wfs.getGeoServer().getGlobal().getCharset() ));
       
        if ( value instanceof Point ) {
            encoder.encode( value, GML.Point, output );
        }
View Full Code Here

TOP

Related Classes of org.geotools.gml3.v3_2.gss.GSS

Copyright © 2018 www.massapicom. 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.