/*
 * Copyright 2009-2016 DigitalGlobe, 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 org.mrgeo.geometry;


import org.mrgeo.utils.tms.Bounds;

import java.io.DataOutputStream;
import java.io.IOException;
import java.io.Serializable;
import java.util.Map;
import java.util.TreeMap;

/**
 * @author jason.surratt
 * 
 */
public interface Geometry extends Serializable
{
  enum Type {
    POINT, LINESTRING, LINEARRING, POLYGON, COLLECTION
  }

  public WritableGeometry createWritableClone();
  public WritableGeometry asWritable();

  public Map<String, String> getAllAttributes();
  public TreeMap<String, String> getAllAttributesSorted();
  public String getAttribute(String key);
  public boolean hasAttribute(String key);
  public boolean hasAttribute(String key, String value);

  public Bounds getBounds();

  public boolean isValid();
  public boolean isEmpty();

  public com.vividsolutions.jts.geom.Geometry toJTS();

  public Type type();

  public Geometry clip(Bounds bbox);
  public Geometry clip(Polygon geom);
  
  public void write(DataOutputStream stream) throws IOException;
  public void writeAttributes(DataOutputStream stream) throws IOException;
}

@@ -964,23 +964,16 @@
 %0A  %7D%0A%0A  
-public 
 Writable
@@ -1006,23 +1006,16 @@
 ne();%0A  
-public 
 Writable
@@ -1040,23 +1040,16 @@
 e();%0A%0A  
-public 
 Map%3CStri
@@ -1082,23 +1082,16 @@
 es();%0A  
-public 
 TreeMap%3C
@@ -1134,23 +1134,16 @@
 ed();%0A  
-public 
 String g
@@ -1161,39 +1161,32 @@
 (String key);%0A  
-public 
 boolean hasAttri
@@ -1201,31 +1201,24 @@
 ing key);%0A  
-public 
 boolean hasA
@@ -1256,23 +1256,16 @@
 ue);%0A%0A  
-public 
 Bounds g
@@ -1279,23 +1279,16 @@
 s();%0A%0A  
-public 
 boolean 
@@ -1300,23 +1300,16 @@
 id();%0A  
-public 
 boolean 
@@ -1322,23 +1322,16 @@
 y();%0A%0A  
-public 
 com.vivi
@@ -1371,23 +1371,16 @@
 S();%0A%0A  
-public 
 Type typ
@@ -1387,23 +1387,16 @@
 e();%0A%0A  
-public 
 Geometry
@@ -1417,23 +1417,16 @@
 box);%0A  
-public 
 Geometry
@@ -1451,23 +1451,16 @@
 );%0A  %0A  
-public 
 void wri
@@ -1509,23 +1509,16 @@
 tion;%0A  
-public 
 void wri

Remove rendundant public from interface descriptions