/*
 * Copyright 2016 iserge.
 *
 * 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.
 */

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.ol3cesium.client.ol.format.filter;

/**
 * Represents a spatial operator to test whether a geometry-valued 
 * property relates to a given geometry.

 * @author Serge Silaev aka iSergio <s.serge.b@gmail.com>
 */
public class OGCSpatialFilter extends OGCFilter {
    protected OGCSpatialFilter() {
        //
    }
    
//    /**
//     * Represents a spatial operator to test whether a geometry-valued property relates to a given geometry.
//     * @param tagName The XML tag name for this filter.
//     * @param geometryName Geometry name to use.
//     * @param geometry Geometry.
//     * @param srsName SRS name. No srsName attribute will be set on geometries when this is not provided.
//     * @return Spatial filter.
//     */
//    public static final native OGCSpatial create(String tagName, Geometry geometryName, String geometry, String srsName) /*-{
//        return new ol.format.ogc.filter.Spatial(tagName, geometryName, geometry, srsName);
//    }-*/;
//    
//    /**
//     * Represents a spatial operator to test whether a geometry-valued property relates to a given geometry.
//     * @param tagName The XML tag name for this filter.
//     * @param geometryName Geometry name to use.
//     * @param geometry Geometry.
//     * @return Spatial filter.
//     */
//    public static final native OGCSpatial create(String tagName, Geometry geometryName, String geometry) /*-{
//        return new ol.format.ogc.filter.Spatial(tagName, geometryName, geometry, srsName);
//    }-*/;
}

@@ -818,16 +818,63 @@
 ilter;%0A%0A
+import org.ol3cesium.client.ol.geom.Geometry;%0A%0A
 /**%0A * R
@@ -1144,34 +1144,32 @@
 %0A    %7D%0A    %0A
-//
     /**%0A
 //     * Rep
@@ -1148,34 +1148,32 @@
  %7D%0A    %0A    /**%0A
-//
      * Represent
@@ -1257,34 +1257,32 @@
 given geometry.%0A
-//
      * @param ta
@@ -1313,34 +1313,32 @@
 or this filter.%0A
-//
      * @param ge
@@ -1362,34 +1362,32 @@
 ry name to use.%0A
-//
      * @param ge
@@ -1395,34 +1395,32 @@
 metry Geometry.%0A
-//
      * @param sr
@@ -1509,18 +1509,16 @@
 ovided.%0A
-//
      * @
@@ -1536,34 +1536,32 @@
 ial filter.%0A
-//
      */%0A
 //    public
@@ -1540,34 +1540,32 @@
 filter.%0A     */%0A
-//
     public stati
@@ -1558,38 +1558,32 @@
   public static 
-final 
 native OGCSpatia
@@ -1575,32 +1575,38 @@
 ative OGCSpatial
+Filter
  create(String t
@@ -1670,26 +1670,24 @@
 sName) /*-%7B%0A
-//
         retu
@@ -1757,34 +1757,32 @@
 etry, srsName);%0A
-//
     %7D-*/;%0A//    
@@ -1779,25 +1779,17 @@
 */;%0A
-//    %0A//
+%0A
     /**%0A
 //  
@@ -1784,18 +1784,16 @@
     /**%0A
-//
      * R
@@ -1885,34 +1885,32 @@
 given geometry.%0A
-//
      * @param ta
@@ -1945,26 +1945,24 @@
 his filter.%0A
-//
      * @para
@@ -1998,18 +1998,16 @@
 to use.%0A
-//
      * @
@@ -2031,18 +2031,16 @@
 ometry.%0A
-//
      * @
@@ -2066,18 +2066,16 @@
 er.%0A
-//
      */%0A
 //  
@@ -2070,18 +2070,16 @@
      */%0A
-//
     publ
@@ -2092,14 +2092,8 @@
 tic 
-final 
 nati
@@ -2105,16 +2105,22 @@
 CSpatial
+Filter
  create(
@@ -2180,18 +2180,16 @@
 y) /*-%7B%0A
-//
         
@@ -2271,18 +2271,16 @@
 sName);%0A
-//
     %7D-*/

Add constructor of Spatial filter