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

📄 gmlpos.java

📁 google的gdata api包
💻 JAVA
字号:
/* Copyright (c) 2006 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * *     http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */package com.google.gdata.data.geo.impl;import com.google.gdata.data.ExtensionDescription;import com.google.gdata.data.geo.Namespaces;import com.google.gdata.data.geo.Point;/** * A GML Coordinate which is just a space-separated pair of lat/lon. * <gml:pos>45.256 -71.92</gml:pos> * *  */public class GmlPos extends PointConstruct {  static final String NAME = "pos";  /**   * Constructs an empty gml:pos element.   */  public GmlPos() {    super(Namespaces.GML_NAMESPACE, NAME);  }  /**   * Constructs a gml:pos element with the given latitude and longitude.   */  public GmlPos(Double lat, Double lon) {    super(Namespaces.GML_NAMESPACE, NAME, lat, lon);  }  /**   * Constructs a gml:pos element by copying the lat/long values out of the   * supplied point.  If the point is null then an empy gml:pos will be created.   */  public GmlPos(Point copyFrom) {    super(Namespaces.GML_NAMESPACE, NAME, copyFrom);  }  /**   * Returns the suggested extension description with configurable   * repeatability.   */  public static ExtensionDescription getDefaultDescription(boolean repeatable) {    ExtensionDescription desc = new ExtensionDescription();    desc.setExtensionClass(GmlPos.class);    desc.setNamespace(Namespaces.GML_NAMESPACE);    desc.setLocalName(NAME);    desc.setRepeatable(repeatable);    return desc;  }  /**   * Returns the suggested extension description and is repeatable.   */  public static ExtensionDescription getDefaultDescription() {    return getDefaultDescription(true);  }}

⌨️ 快捷键说明

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