⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gml3profile.java

📁 电子地图服务器,搭建自己的地图服务
💻 JAVA
字号:
/* Copyright (c) 2001 - 2007 TOPP - www.openplans.org. All rights reserved.
 * This code is licensed under the GPL 2.0 license, availible at the root
 * application directory.
 */
package org.geoserver.wfs.xml;

import org.geotools.feature.Name;
import org.geotools.feature.type.ProfileImpl;
import org.geotools.gml3.GMLSchema;
import org.geotools.gml3.bindings.GML;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.Set;


public class GML3Profile extends TypeMappingProfile {
    static Set profiles = new HashSet();

    static {
        // set with guaranteed iteration order, so that we can put deprecated elements only
        // after the ones that replaced them
        Set profile = new LinkedHashSet();
        
        //basic
        profile.add(new Name(GML.NAMESPACE, GML.MeasureType.getLocalPart()));

        //geomtetries
        //profile.add( new Name(  GML.NAMESPACE, GML.PointType.getLocalPart() ) );
        profile.add(new Name(GML.NAMESPACE, GML.PointPropertyType.getLocalPart()));
        //profile.add( new Name(  GML.NAMESPACE, GML.MultiPointType.getLocalPart() ) );
        profile.add(new Name(GML.NAMESPACE, GML.MultiPointPropertyType.getLocalPart()));

        //profile.add( new Name(  GML.NAMESPACE, GML.LineStringType.getLocalPart() ) );
        profile.add(new Name(GML.NAMESPACE, GML.LineStringPropertyType.getLocalPart()));
        //profile.add( new Name(  GML.NAMESPACE, GML.MultiLineStringType.getLocalPart() ) );
        profile.add(new Name(GML.NAMESPACE, GML.MultiLineStringPropertyType.getLocalPart()));

        //profile.add( new Name(  GML.NAMESPACE, GML.CurveType.getLocalPart() ) );
        profile.add(new Name(GML.NAMESPACE, GML.CurvePropertyType.getLocalPart()));
        //profile.add( new Name(  GML.NAMESPACE, GML.MultiCurveType.getLocalPart() ) );
        profile.add(new Name(GML.NAMESPACE, GML.MultiCurvePropertyType.getLocalPart()));

        profile.add(new Name(GML.NAMESPACE, GML.SurfacePropertyType.getLocalPart()));
        //profile.add( new Name(  GML.NAMESPACE, GML.MultiSurfaceType.getLocalPart() ) );
        profile.add(new Name(GML.NAMESPACE, GML.MultiSurfacePropertyType.getLocalPart()));

        // register polygon and multipolygon only after surface, the iteration order
        // will make sure surface is found before in any encoding attempt, this way we
        // are still able to handle polygons, but we don't use them by default
        //profile.add( new Name(  GML.NAMESPACE, GML.PolygonType.getLocalPart() ) );
        profile.add(new Name(GML.NAMESPACE, GML.PolygonPropertyType.getLocalPart()));
        //profile.add( new Name(  GML.NAMESPACE, GML.MultiPolygonType.getLocalPart() ) );
        profile.add(new Name(GML.NAMESPACE, GML.MultiPolygonPropertyType.getLocalPart()));


        //profile.add( new Name(  GML.NAMESPACE, GML.AbstractGeometryType.getLocalPart() ) );
        profile.add(new Name(GML.NAMESPACE, GML.GeometryPropertyType.getLocalPart()));
        profiles.add( new ProfileImpl( new GMLSchema(), profile ) );
    }

    public GML3Profile() {
        super(profiles);
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -