本文整理汇总了Java中org.geoserver.catalog.Catalog类的典型用法代码示例。如果您正苦于以下问题:Java Catalog类的具体用法?Java Catalog怎么用?Java Catalog使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Catalog类属于org.geoserver.catalog包,在下文中一共展示了Catalog类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: initRequestParser
import org.geoserver.catalog.Catalog; //导入依赖的package包/类
public static void initRequestParser(Parser parser, WFSInfo wfs, GeoServer geoServer, Map kvp) {
//check the strict flag to determine if we should validate or not
Boolean strict = (Boolean) kvp.get("strict");
if ( strict == null ) {
strict = Boolean.FALSE;
}
//check for cite compliance, we always validate for cite
if ( wfs.isCiteCompliant() ) {
strict = Boolean.TRUE;
}
parser.setValidating(strict.booleanValue());
WFSURIHandler.addToParser(geoServer, parser);
Catalog catalog = geoServer.getCatalog();
//"inject" namespace mappings
parser.getNamespaces().add(new CatalogNamespaceSupport(catalog));
}
开发者ID:STEMLab,项目名称:geoserver-3d-extension,代码行数:20,代码来源:WFSXmlUtils_ISO.java
示例2: setUp
import org.geoserver.catalog.Catalog; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
catalog = EasyMock.createMock("catalog", Catalog.class);
featureType1 = EasyMock.createMock("featureType1", FeatureTypeInfo.class);
featureType2 = EasyMock.createMock("featureType2", FeatureTypeInfo.class);
listener = new BoundsUpdateTransactionListener(catalog);
}
开发者ID:MapStory,项目名称:ms-gs-plugins,代码行数:9,代码来源:BoundsUpdateTransactionListenerTest.java
示例3: read
import org.geoserver.catalog.Catalog; //导入依赖的package包/类
public Object read(Object request, Reader reader, Map kvp) throws Exception {
//TODO: refactor this method to use WFSXmlUtils
Catalog catalog = geoServer.getCatalog();
//check the strict flag to determine if we should validate or not
Boolean strict = (Boolean) kvp.get("strict");
if ( strict == null ) {
strict = Boolean.FALSE;
}
//create the parser instance
Parser parser = new Parser(configuration);
parser.setEntityResolver(entityResolverProvider.getEntityResolver());
//"inject" namespace mappings
parser.getNamespaces().add(new CatalogNamespaceSupport(catalog));
//set validation based on strict or not
parser.setValidating(strict.booleanValue());
WFSURIHandler.addToParser(geoServer, parser);
//parse
Object parsed = parser.parse(reader);
//if strict was set, check for validation errors and throw an exception
if (strict.booleanValue() && !parser.getValidationErrors().isEmpty()) {
WFSException exception = new WFSException("Invalid request", "InvalidParameterValue");
for (Iterator e = parser.getValidationErrors().iterator(); e.hasNext();) {
Exception error = (Exception) e.next();
exception.getExceptionText().add(error.getLocalizedMessage());
}
throw exception;
}
return parsed;
}
开发者ID:STEMLab,项目名称:geoserver-3d-extension,代码行数:39,代码来源:WfsXmlReader_ISO.java
示例4: Holder
import org.geoserver.catalog.Catalog; //导入依赖的package包/类
public Holder(Catalog cat) {
this.catalog = cat;
try {
this.config = new MonitorConfig(catalog.getResourceLoader());
} catch (IOException e) {
LOGGER.log(Level.SEVERE, "Impossible to Initialize the Holder",
e);
}
}
开发者ID:joaomartins27396,项目名称:GSOC2015-gsmonitoext,代码行数:10,代码来源:GSMonitorPage.java
示例5: onSave
import org.geoserver.catalog.Catalog; //导入依赖的package包/类
/**
* Validates Elasticsearch attributes configuration and stores the
* Elasticsearch layer configuration into feature type metadata as
* {@link ElasticLayerConfiguration#KEY} <br>
* Validation include the follow rules <li>One attribute must be a GEOMETRY.
*
* @see {@link ElasticLayerConfiguration}
* @see {@link FeatureTypeInfo#getMetadata}
*/
protected void onSave(AjaxRequestTarget target) {
try {
ResourceInfo ri = (ResourceInfo) getDefaultModel().getObject();
ElasticLayerConfiguration layerConfig = fillElasticAttributes(ri);
Boolean geomSet = false;
// Validate configuration
for (ElasticAttribute att : layerConfig.getAttributes()) {
if (Geometry.class.isAssignableFrom(att.getType()) && att.isUse()) {
geomSet = true;
}
}
if (!geomSet) {
error(new ParamResourceModel("geomEmptyFailure", ElasticConfigurationPage.this)
.getString());
}
Catalog catalog = ((GeoServerApplication) this.getPage().getApplication()).getCatalog();
FeatureTypeInfo typeInfo;
DataStoreInfo dsInfo = catalog.getStore(ri.getStore().getId(), DataStoreInfo.class);
ElasticDataStore ds = (ElasticDataStore) dsInfo.getDataStore(null);
CatalogBuilder builder = new CatalogBuilder(catalog);
builder.setStore(dsInfo);
typeInfo = builder.buildFeatureType(ds.getFeatureSource(ri.getQualifiedName()));
typeInfo.setName(ri.getName());
typeInfo.getMetadata().put(ElasticLayerConfiguration.KEY, layerConfig);
LayerInfo layerInfo = builder.buildLayer(typeInfo);
layerInfo.setName(ri.getName());
done(target, layerInfo, layerConfig);
} catch (Exception e) {
LOGGER.log(Level.SEVERE, e.getMessage(), e);
error(new ParamResourceModel("creationFailure", this, e).getString());
}
}
开发者ID:ngageoint,项目名称:elasticgeo,代码行数:44,代码来源:ElasticConfigurationPage.java
示例6: SoilSealingMiddlewareProcess
import org.geoserver.catalog.Catalog; //导入依赖的package包/类
/**
* Default Constructor
*
* @param catalog
* @param geoserver
*/
public SoilSealingMiddlewareProcess(Catalog catalog, GeoServer geoserver) {
super();
this.catalog = catalog;
this.geoserver = geoserver;
}
开发者ID:geosolutions-it,项目名称:soil_sealing,代码行数:13,代码来源:SoilSealingMiddlewareProcess.java
示例7: WorkspaceContentsResource
import org.geoserver.catalog.Catalog; //导入依赖的package包/类
public WorkspaceContentsResource(Context context, Request request,
Response response, Catalog catalog) {
super(context, request, response, WorkspaceFullDoc.class, catalog);
// TODO Auto-generated constructor stub
}
开发者ID:geops,项目名称:geoserver-documentor,代码行数:6,代码来源:WorkspaceContentsResource.java
示例8: CompleteDocumentationResource
import org.geoserver.catalog.Catalog; //导入依赖的package包/类
public CompleteDocumentationResource(final Context context, final Request request,
final Response response, final Catalog catalog) {
super(context, request, response, DocumentationDoc.class, catalog);
}
开发者ID:geops,项目名称:geoserver-documentor,代码行数:5,代码来源:CompleteDocumentationResource.java
示例9: WorkspaceContentsFinder
import org.geoserver.catalog.Catalog; //导入依赖的package包/类
protected WorkspaceContentsFinder(Catalog catalog) {
this.catalog = catalog;
}
开发者ID:geops,项目名称:geoserver-documentor,代码行数:4,代码来源:WorkspaceContentsFinder.java
示例10: CompleteDocumentationFinder
import org.geoserver.catalog.Catalog; //导入依赖的package包/类
protected CompleteDocumentationFinder(Catalog catalog) {
this.catalog = catalog;
}
开发者ID:geops,项目名称:geoserver-documentor,代码行数:4,代码来源:CompleteDocumentationFinder.java
示例11: BoundsUpdateTransactionListener
import org.geoserver.catalog.Catalog; //导入依赖的package包/类
public BoundsUpdateTransactionListener(Catalog catalog) {
super();
this.catalog = catalog;
}
开发者ID:MapStory,项目名称:ms-gs-plugins,代码行数:5,代码来源:BoundsUpdateTransactionListener.java
示例12: getCatalog
import org.geoserver.catalog.Catalog; //导入依赖的package包/类
public Catalog getCatalog() {
return geoServer.getCatalog();
}
开发者ID:STEMLab,项目名称:geoserver-3d-extension,代码行数:4,代码来源:ISODefaultWebFeatureService20.java
示例13: GetFeature3D
import org.geoserver.catalog.Catalog; //导入依赖的package包/类
/**
* Creates the WFS 1.0/1.1 GetFeature operation.
*/
public GetFeature3D(WFSInfo wfs, Catalog catalog) {
this.wfs = wfs;
this.catalog = catalog;
}
开发者ID:STEMLab,项目名称:geoserver-3d-extension,代码行数:8,代码来源:GetFeature3D.java
示例14: getCatalog
import org.geoserver.catalog.Catalog; //导入依赖的package包/类
/**
* @return The reference to the GeoServer catalog.
*/
public Catalog getCatalog() {
return catalog;
}
开发者ID:STEMLab,项目名称:geoserver-3d-extension,代码行数:7,代码来源:GetFeature3D.java
示例15: getCatalog
import org.geoserver.catalog.Catalog; //导入依赖的package包/类
public Catalog getCatalog() {
return catalog;
}
开发者ID:STEMLab,项目名称:geoserver-3d-extension,代码行数:4,代码来源:DescribeFeatureType3D.java
示例16: setCatalog
import org.geoserver.catalog.Catalog; //导入依赖的package包/类
public void setCatalog(Catalog catalog) {
this.catalog = catalog;
}
开发者ID:STEMLab,项目名称:geoserver-3d-extension,代码行数:4,代码来源:DescribeFeatureType3D.java
示例17: GMLAbstractFeatureTypeBinding
import org.geoserver.catalog.Catalog; //导入依赖的package包/类
public GMLAbstractFeatureTypeBinding(FeatureTypeCache featureTypeCache,
BindingWalkerFactory bwFactory, SchemaIndex schemaIndex, GeometryBuilder geometryBuilder, Catalog catalog, Configuration configuration) {
super(featureTypeCache, bwFactory, schemaIndex, configuration);
this.geometryBuilder = geometryBuilder;
this.catalog = catalog;
}
开发者ID:STEMLab,项目名称:geoserver-3d-extension,代码行数:7,代码来源:GMLAbstractFeatureTypeBinding.java
示例18: getCatalog
import org.geoserver.catalog.Catalog; //导入依赖的package包/类
public Catalog getCatalog() {
return catalog;
}
开发者ID:STEMLab,项目名称:geoserver-3d-extension,代码行数:4,代码来源:WFSConfiguration_ISO.java
示例19: ISOWFSHandlerFactory
import org.geoserver.catalog.Catalog; //导入依赖的package包/类
public ISOWFSHandlerFactory(Catalog catalog, ISOFeatureTypeSchemaBuilder schemaBuilder) {
this.catalog = catalog;
this.schemaBuilder = schemaBuilder;
}
开发者ID:STEMLab,项目名称:geoserver-3d-extension,代码行数:5,代码来源:ISOWFSHandlerFactory.java
示例20: ChangeMatrixProcess
import org.geoserver.catalog.Catalog; //导入依赖的package包/类
public ChangeMatrixProcess(Catalog catalog, GeoServer geoserver) {
this.catalog = catalog;
this.geoserver = geoserver;
}
开发者ID:geosolutions-it,项目名称:soil_sealing,代码行数:5,代码来源:ChangeMatrixProcess.java
注:本文中的org.geoserver.catalog.Catalog类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论