Oct 152017
 

The program committee for FOSS4G in Dar isready for collecting your proposals for the Academic Track.

TO submit we advice you to carefully read the instructions here:

http://2018.foss4g.org/call-for-papers.html

The first step is to upload your abstract (500-800 words) by November, 20 2017.

The Scientific Committee will accept the best proposals (deadline 15 December) which will go to the second step. This will be camera ready paper for the Proceedings by 31 March 2018.

Remember that you MUST register (at least one author for one paper) to the Conference for having your paper published. Therefore the registration is mandatory before 31 March 2018.

Mar 032015
 
  • Import of GeoServer WFS into uDig not working [on hold]

    I’m trying to follow the example of how to integrate GeoServer with uDig that is on the uDig web page:

    http://udig.refractions.net/files/docs/latest/user/getting_started/walkthrough2/WMSandWFSIntegration.html

    Firstly it says to drag the WMS link into a new map, and that works.

    Next it says to drag a WFS capability link onto the map, but that doesn’t work.

    uDig flashes up an ‘adding’ requester, but doesn’t offer me any selections and doesn’t add anything to the map.

    How can I work out what’s going on? Is there a uDig console which would report the issue, or a log file somewhere?

    I’m using GeoServer 2.6.2 and uDig 1.5.0 RC1 on a Mac.

    Thanks.

  • Make geoserver to send the WMS request when the user is idle for some seconds

    I see in the geoserver admin page that there are three difference methods for Raster Rendering (bilinear, bicubic and nearest neighbour).

    Loading my WMS layers using openlayers and then zooming and panning cause a huge overhead cause of the multiple connections sent to the Postgis.

    I wonder if there is a way to make geoserver to send the WMS request when the user is idle for some seconds. For example if not zooming for 3 sec then send the request.
    Is something like this possible?

    Thanks

Digest powered by RSS Digest

 Posted by at 13:46
Mar 022015
 
  • Geowebcache alias for custom projections

    Is there a way to configure a projection alias in geowebcache?

    E.g. if I would like to advertise projection EPSG:25833 and EPSG:32633 to the client, while requesting tiles from the backend using EPSG:25833. That is for (mostly) identical projections where no reprojection is needed.

    The idea being of course that identical tiles are only cached (and requested) once, while both projections are advertised.

  • How to enable JSONP for WMS GetFeatureInfo on GeoServer 2.6.2

    calling GetCapabilities reports text/javascript for JSONP is not available for GetFeatureInfo. Other types are included in the list.

    according to GeoServer docs @ http://docs.geoserver.org/latest/en/user/services/wms/reference.html this should be possible

    this is a fresh install of geoserver 2.6.2 running as a service on Windows 8.1

    we set ENABLE_JSONP true in\webapps\geoserver\WEB-INF\web.xml and restarted the GeoServer serveice

    wrapper.log reports as follows;

    INFO   | jvm 1    | 2015/03/02 12:38:16 | org.geowebcache.mime.MimeException: Unsupported format request: text/javascript
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geowebcache.mime.MimeType.createFromFormat(MimeType.java:134)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geoserver.gwc.layer.GeoServerTileLayer.getInfoMimeTypes(GeoServerTileLayer.java:1105)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geowebcache.service.wms.WMSGetCapabilities.capabilityRequestGetFeatureInfo(WMSGetCapabilities.java:303)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geowebcache.service.wms.WMSGetCapabilities.capability(WMSGetCapabilities.java:215)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geowebcache.service.wms.WMSGetCapabilities.generateGetCapabilities(WMSGetCapabilities.java:125)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geowebcache.service.wms.WMSGetCapabilities.writeResponse(WMSGetCapabilities.java:86)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geowebcache.service.wms.WMSService.handleRequest(WMSService.java:288)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geowebcache.service.wms.WMSService$$FastClassByCGLIB$$85c0e55b.invoke(<generated>)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geoserver.gwc.config.GWCServiceEnablementInterceptor.invoke(GWCServiceEnablementInterceptor.java:47)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geowebcache.service.wms.WMSService$$EnhancerByCGLIB$$e0331eae.handleRequest(<generated>)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geowebcache.GeoWebCacheDispatcher.handleServiceRequest(GeoWebCacheDispatcher.java:344)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geowebcache.GeoWebCacheDispatcher.handleRequestInternal(GeoWebCacheDispatcher.java:254)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geoserver.gwc.dispatch.GwcServiceProxy.dispatch(GwcServiceProxy.java:98)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at java.lang.reflect.Method.invoke(Unknown Source)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geoserver.ows.Dispatcher.execute(Dispatcher.java:792)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:274)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsCleanupFilter.java:28)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:75)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geoserver.wms.animate.AnimatorFilter.doFilter(AnimatorFilter.java:71)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:71)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geoserver.filters.SpringDelegatingFilter.doFilter(SpringDelegatingFilter.java:46)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geoserver.platform.AdvancedDispatchFilter.doFilter(AdvancedDispatchFilter.java:50)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:311)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geoserver.security.filter.GeoServerAnonymousAuthenticationFilter.doFilter(GeoServerAnonymousAuthenticationFilter.java:54)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geoserver.security.filter.GeoServerBasicAuthenticationFilter.doFilter(GeoServerBasicAuthenticationFilter.java:83)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geoserver.security.filter.GeoServerSecurityContextPersistenceFilter$1.doFilter(GeoServerSecurityContextPersistenceFilter.java:53)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:173)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geoserver.security.GeoServerSecurityFilterChainProxy.doFilter(GeoServerSecurityFilterChainProxy.java:135)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:76)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:42)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geoserver.filters.SessionDebugFilter.doFilter(SessionDebugFilter.java:48)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.geoserver.filters.FlushSafeFilter.doFilter(FlushSafeFilter.java:44)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.mortbay.jetty.Server.handle(Server.java:324)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
    INFO   | jvm 1    | 2015/03/02 12:38:16 |   at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
    

Digest powered by RSS Digest

 Posted by at 13:36
Feb 282015
 
  • Inserting JSON Data into table for GeoServer?

    I’m very frustrated trying to fix the following code. I’m new in this and I’d like a little help here:

    First, I have the following code and It works perfectly: I received a JSON Data from Geoserver (sectoresURL) and then, I put it into a DIV. That’s all.

    <div id="info" style="width: 100%; height: 280px; overflow-y: scroll;"></div>
    
    <script type="text/javascript">
    function showResult(sectoresURL) {
    
      $('#info').empty(); // Remove all child in stack.
    
      $.getJSON(sectoresURL, function (json) {
        if (sectores.getVisible() && typeof(json.features[0])  != 'undefined') {
          $('#info').append('<iframe width="99%" seamless src="' + sectoresURL + '"></iframe>');
        }
      });
    }
    </script>
    

    But now, I want to insert all this into a table but I can’t do it. At present, I’m showing in the browser like JSON format, but definitely It isn’t the idea.

    By the way, the JSON Data is:

    {
      "type": "FeatureCollection",
      "features": [
        {
          "type": "Feature",
          "id": "SectoresComunaCurico.34",
          "geometry": {
            "type": "Polygon",
            "coordinates": [
              [
                [
                  301138.4332258755,
                  6110719.0948824
                ],
                [
                  307975.62819723826,
                  6117936.350421507
                ],
                [
                  309421.54950536136,
                  6117454.401929129
                ],
                [
                  314529.81321677275,
                  6117779.869510237
                ],
                [
                  321315.062045189,
                  6115168.846100847
                ],
                [
                  309617.2118206576,
                  6102890.015916108
                ],
                [
                  306318.28485806234,
                  6104246.552389812
                ],
                [
                  301138.4332258755,
                  6110719.0948824
                ]
              ]
            ]
          },
          "geometry_name": "FiguraGeometrica",
          "properties": {
            "Numero": 19,
            "Sector": "Cordillera"
          }
        }
      ],
      "crs": {
        "type": "name",
        "properties": {
          "name": "urn:ogc:def:crs:EPSG::32319"
        }
      }
    }
    

    I’ve tried to insert all this in Bootstrap-Table but without success. Also, Is there some way to re-use geoserver template to do it? At the present, I have one but for {'INFO_FORMAT': 'text/html'});

  • How can i filter on ID’s through WFS Post request?

    I want to select a set of features from my GeoServer (its Running 2.0.0) and use a query using multiple ID’s to get their values. For this i send XML in a post message to the Geoserver:

    <wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" service="WFS" version="1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd" maxFeatures= "7000" >
        <wfs:Query typeName="*:MyFeatures_df16" xmlns:feature="http://www.openplans.org/topp">
            <ogc:Filter>
                <ogc:And>
                    <ogc:OR>
                        <PropertyIsEqualTo>
                            <PropertyName>ID</PropertyName>
                            <Literal>98400005701</Literal>
                        </PropertyIsEqualTo>
                        <PropertyIsEqualTo>
                            <PropertyName>ID</PropertyName>
                            <Literal>-1</Literal>
                        </PropertyIsEqualTo>
                    </ogc:OR>
                    <ogc:And>
                        <ogc:PropertyIsLessThanOrEqualTo>
                            <ogc:PropertyName>MH_DATUM_INGANG</ogc:PropertyName>
                            <ogc:Literal>2015-02-27T00:00:00Z</ogc:Literal>
                        </ogc:PropertyIsLessThanOrEqualTo>
                        <ogc:Or>
                            <ogc:PropertyIsGreaterThanOrEqualTo>
                                <ogc:PropertyName>MH_DATUM_EINDE</ogc:PropertyName>
                                <ogc:Literal>2015-02-27T00:00:00Z</ogc:Literal>
                            </ogc:PropertyIsGreaterThanOrEqualTo>
                            <ogc:PropertyIsNull>
                                <ogc:PropertyName>MH_DATUM_EINDE</ogc:PropertyName>
                            </ogc:PropertyIsNull>
                        </ogc:Or>
                    </ogc:And>
                </ogc:And>
            </ogc:Filter>
        </wfs:Query>
    </wfs:GetFeature>
    

    The filter based on the date (MH_DATUM_BEGIN/MH_DATUM_EIND) is working as expected. But the filter using is completly ignored.
    One of the returns includes:

    <gml:featureMember>
          <ws_df16:MyFeatures_df16 fid="MyFeatures_df16.fid--7d7f79e6_14bcb33c65d_161">
             <ws_df16:GEOMETRIE>
                <gml:Polygon srsName="http://www.opengis.net/gml/srs/epsg.xml#28992">
                   <gml:outerBoundaryIs>
                      <gml:LinearRing>
                         <gml:coordinates decimal="." cs="," ts=" ">197089.235,393933.984 197059.285,393941.753 197057.851,393936.587 197061.768,393935.646 197059.436,393926.758 197062.756,393925.888 197062.109,393923.534 197071.095,393921.174 197072.634,393927.002 197074.054,393932.378 197084.891,393929.538 197087.87,393928.757 197089.235,393933.984</gml:coordinates>
                      </gml:LinearRing>
                   </gml:outerBoundaryIs>
                </gml:Polygon>
             </ws_df16:GEOMETRIE>
             <ws_df16:ID>98400007766</ws_df16:ID>
             <ws_df16:MH_DATUM_INGANG>2010-01-01</ws_df16:MH_DATUM_INGANG>
             <ws_df16:GIS_ID>288830</ws_df16:GIS_ID>
          </ws_df16:MyFeatures_df16>
       </gml:featureMember>
    

    In this part of the response, the Date is correct(like all of the answers) but it returns all of the thousands of features in GeoServer.
    I want to select that specific ID because it is used in other parts of a larger application.

    How can i make sure that my filter query is used as well?

Digest powered by RSS Digest

 Posted by at 13:51
Feb 272015
 
  • Is there anything like OGC Property IN list Filter?

    I am converting some CQL filters to OGC, and I’m wondering whether there is something like a propery in list filter in OGC, or the only solution is to combine the PropertyIsEqualTo with an OR filter. I suspect there isn’t, but if you have a nicer solution please share.

  • GeoNetwork not displaying all harvested metadata with Dublin Core schema

    I have a GeoServer 2.6 installed with the CSW plugin. I can make a call to GetRecords using the standard ISO19115/19139 schema and see all of the metadata. My main interest here are keywords that I am manually adding to a layer. When I change the output schema to Dublin Core (outputSchema=http://www.opengis.net/cat/csw/2.0.2), everything looks good… the keyword values all show up as elements. All other metadata is properly populated… abstract, references, description, type, creator, etc etc.

    Using GeoNetwork 2.10.4, I harvest my GeoServer CSW. When I call GetRecords using the ISO schema, everything looks just as it does on GeoServer. All of my metadata is present. However, when I change the output schema to Dublin Core, almost all of the metadata disappears. A single Record element only contains an identifier, date, BoundingBox, and URIs to my WFS and WMS. All of the other metadata has vanished. If I create a brand new metadata record from within GeoNetwork using the Dublin Core template, it shows every dublin core field, regardless if it’s populated or not. My request looks like this:

    geonetwork/srv/eng/csw?service=CSW&version=2.0.2&request=GetRecords&typeNames=csw:Record&resultType=results&elementSetName=full&outputSchema=http://www.opengis.net/cat/csw/2.0.2&constraintLanguage=CQL_TEXT

    Does anybody have any idea why the GeoNetwork Dublin Core output schema isn’t showing much of the data that does appear in the ISO output schema for my harvested data?

  • Oracle / GeoServer / WFS-T / Openlayers many polygons as one feature

    Newbie question regarding Oracle / GeoServer / WFS-T / Openlayers. I am creating a table that will hold geometry features a user creates/updates. My question is, I would like to have just one record in the table per customer (customerId). Can I create many polygons/points/lines as one feature in OpenLayers and have that go to GeoServer/WFS-T as one feature that then gets written all in one record in the Oracle Table? Currently I have it all running but it is creating one record for each feature.

    One more thing to note, Oracle does allow this by setting the SDO_GTYPE (geometry type) as a MULTIPOLYGON (2007). The questions is how to create multiple features as one record in OpenLayers/ WFS-T / GeoServer. Is there a setting in the Editable Layer I am missing? Thanks.

    Here is my editable layer:

    var saveStrategy = new OpenLayers.Strategy.Save();
    
            customers = new OpenLayers.Layer.Vector("Customers", {
                strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy],
                projection: new OpenLayers.Projection("EPSG:2236"),
                protocol: new OpenLayers.Protocol.WFS({
                    version: "1.1.0",
                    srsName: "EPSG:2236",
                    url: "http://server01:8085/geoserver/sf/wfs",
                    featurePrefix: "sf",
                    featureType: "customers",
                    featureNS: "http://a.org/layers01",
                    geometryName: "GEOMETRY"
                })
            });
    

    This is the feature added method:

    function FeatureAdded(object)
            {
    
                var added_feature = object.feature;
                added_feature.state = OpenLayers.State.INSERT;
    
                // Setup Customer Id for inserting to one record
                // NOTE: This is not working, it just creates multiple records
                //       with the next id number (seed)
                added_feature.attributes.customerId = 123456;
    
                saveStrategy.save();
    
            }
    

    When I set the strategy to OpenLayers.Strategy.BBOX(), I get multiple records created in the table. (I am looking to create just one MultiPolygon record in the table.) When I set the strategy to OpenLayers.Strategy.Fixed(), I get no client error (fail method for the strategy does not fire), no GeoServer log error and no records written to the table.

    Update # 1

    As requested, here is a sample post request. In this case I created two polygons which I only wanted to be one record, but it created two records in the table:

    <wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.1.0"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs
     http://schemas.opengis.net/wfs/1.1.0/wfs.xsd">
    <wfs:Insert>
      <feature:CUSTOMERS xmlns:feature="http://a.org/layers01">
        <feature:GEOMETRY>
          <gml:MultiSurface xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:2236">
            <gml:surfaceMember>
              <gml:Polygon>
                <gml:exterior>
                  <gml:LinearRing>
                    <gml:posList>701479.552253 437319.29214775 799997.3100655 437319.29214775 799997.3100655
                                 436384.8351165 701092.880378 436223.72183525 700899.5444405 436771.5069915
                                 701479.552253 437319.29214775
                    </gml:posList>
                  </gml:LinearRing>
                </gml:exterior>
              </gml:Polygon>
            </gml:surfaceMember>
          </gml:MultiSurface>
        </feature:GEOMETRY>
        <feature:CUSTOMERID>123456</feature:CUSTOMERID>
        <feature:LAST_MODIFIED_DATE>2015-02-26</feature:LAST_MODIFIED_DATE>
      </feature:CUSTOMERS>
    </wfs:Insert>
    <wfs:Insert>
      <feature:CUSTOMERS xmlns:feature="http://a.org/layers01">
        <feature:GEOMETRY>
          <gml:MultiSurface xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:2236">
            <gml:surfaceMember>
              <gml:Polygon>
                <gml:exterior>
                  <gml:LinearRing>
                    <gml:posList>701608.442878 435611.4913665 700738.43115925 434805.92496025 701253.99365925
                                 433968.13589775 702059.5600655 434258.139804 701608.442878 435611.4913665
                    </gml:posList>
                  </gml:LinearRing>
                </gml:exterior>
              </gml:Polygon>
            </gml:surfaceMember>
          </gml:MultiSurface>
        </feature:GEOMETRY>
        <feature:CUSTOMERID>123456</feature:CUSTOMERID>
        <feature:LAST_MODIFIED_DATE>2015-02-26</feature:LAST_MODIFIED_DATE>
      </feature:CUSTOMERS>
    </wfs:Insert>
    </wfs:Transaction>
    

Digest powered by RSS Digest

 Posted by at 13:36
Feb 262015
 
  • GeoTIFFS on Geoserver are served slowly, at too low resolution

    I have a bunch of large, high resolution GeoTIFFs, that I am serving using GeoServer. I also have a prototype client I wrote using Leaflet. The resolution of the TIFFs is quite high, but despite that I get unpleasant, low resolution imagery on my client and also on the layer previews using the GeoServer interface.

    The GeoTIFFs are stored as an Image Mosaic; I then created a Layer from it and then seeded the tiles using the GeoWebCache interface.

    In my Javascript client I use this code to add the layer to my map:

    app.currentTileLayer = L.tileLayer.wms('http://mygeoserver:8080/geoserver/wms', {
                layers: 'myworkspace:layer-name',
                format: 'image/png',
                version: '1.1.1',
                transparent: true,
                tiled: true,
                attribution: '&copy; Myself',
            });
    

    I get the layer all right, but, as mentioned above, it is very low resolution – pixelated is the word I’d use. Also, despite the tile caching, it takes such a very long time to actually get the tiles.

    Obviously I must have set some options incorrectly. What could I check?

Digest powered by RSS Digest

 Posted by at 13:38
Feb 252015
 
  • Unable to view my local geoserver in that dropdown menu of Open Geosuite 4.5 Version?

    I’m using GeoExplorer(Web Map Client) in Open Geo Suite4.5 version. I use to upload the layers from my LocalGeoserver by clicking on Add Layers Button. But now i’m unable to view my local geoserver in that dropdown menu.

    How can I troubleshoot this problem?

  • Cannot access WMS.GetMap as anonymous

    version geoserver 2.6.2

    I have a problem with the WMS service

    to authenticate the service wms configure the following rule in ” List of access to services”

    wms.GetMap ROLE_AUTHENTICATED

    but the response this url

    http://localhost/geoserver/xxxx/wms?service=WMS&version=1.1.0&request=GetMap&layers=xxxx:clientes&styles=&bbox=…….&width=378&height=512&srs=EPSG:4326&format=application/openlayers

    is

    Estado HTTP 500 – Request processing failed; nested exception is org.springframework.security.authentication.InsufficientAuthenticationException: Cannot access WMS.GetMap as anonymous

    thanks for your help

  • How to update back to GeoServer/Oracle from OpenLayers

    I have followed the example to setup a WFS Transaction successfully:

    http://dev.openlayers.org/examples/wfs-protocol-transactions.html

    My environment is GeoServer 2.6.1/OpenLayers 2.12.1. I do get the 4 toolbar icons on the upper right hand corner. (draw, modify, delete, save). I used a layer that is connected to an oracle table in geoserver as the editable layer.

    Now, when I click on the “save” button, it does not add a record to that table. Of course, I was not expecting it to because it does not even know what key value I want to put in (as customerid) when it creates a new record with feature data; nor does it know which record to update the geometry for it its an existing key value (customerid). The editable layer I created based on the above link is:

    // Customers Editable VECTOR Layer
                var saveStrategy = new OpenLayers.Strategy.Save();
    
                customers = new OpenLayers.Layer.Vector("Customers", {
                    strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy],
                    projection: new OpenLayers.Projection("EPSG:2236"),
                    protocol: new OpenLayers.Protocol.WFS({
                        version: "1.1.0",
                        srsName: "EPSG:2236",
                        url: "http://pc74535:8085/geoserver/sf/wfs",
                        featurePrefix: "sf",
                        featureType: "customers",
                        geometryName: "GEOMETRY"
                    })
                });
    

    The oracle table itself has the following fields:

    -customerId
    -geometry
    -date_updated
    

    My question is, how do I perform inserts through openlayers/geoserver/all the way to the oracle table. (To included key value and geometry, etc) I would like the above example to actually save the geometry back to a specific record in the table. I am not sure how to proceed on this.

  • getFeatureInfo is working only if line of polygon is clicked, does not work inside polygon

    I have issue with getFeatureInfo function. I can get features of polygon only if it is clicked on line (border) of polygon. By clicking on line, i get features of few polygons, and i want to click inside of polygon and get feature info of that polygon, nothing else.
    I’m using Openlayers 2.13 and GeoServer. Where can i fix this?

Digest powered by RSS Digest

 Posted by at 13:36
Feb 242015
 
  • Information for court [on hold]

    Do your company plot coordinates for court hearings? I have pulled the information myself. However I am looking for a expert for court

  • Leaflet is behaving unexpectedly when trying to load more than one layer

    I had a hard time trying to create a good title for my issue since it is a little hard to explain. But I will do my best.
    Basically what I’m trying to create a web map to show three distinct layers, each from a different time period. The user choose a year and then the layer is loaded. For this to happen Geoserver is serving three layers using WFS. Now what follows is weird.

    • Sometimes when the web map is loaded, or refreshed, some layers are not encoded.
    • Sometimes layers end-up in the wrong year option.
    • But sometimes everything works, but requires that I refresh the page several times.

    Basically my code is not behaving as it should all the time. At first I thought that this should be something related to Geoserver (I posted this question a while ago following this line of though). But now I suspect that the issue is in my Javascript code, I friend of mine mentioned something relate to syncronous and asycrounouns code but I have not idea how to start debugging it.

    This is my code:

    <html>
    
    <head>
    <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.5/leaflet.css" />
    <link rel="stylesheet" type="text/css" href="style.css">
    <link rel="stylesheet" href="Plugins/Leaflet.label-master/dist/leaflet.label.css" />
    <title>Mapping Past Denver</title>
    <script src="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.js"></script>
    <script src="https://code.jquery.com/jquery-2.1.3.js"></script>
    <script src="Plugins/Leaflet.label-master/dist/leaflet.label.js"></script>
    </head>
    
    <body>
    <div id="map">
        <script>
            var map = L.map('map').setView([39.752171, -104.998817], 17);
    
            //the base map
            L.tileLayer('https://{s}.tiles.mapbox.com/v3/{id}/{z}/{x}/{y}.png', {
                maxZoom: 20,
                attribution: 'Map data &copy; <a    href="http://openstreetmap.org">OpenStreetMap</a> contributors, ' +
                    '<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY- SA</a>, ' +
                    'Imagery © <a href="http://mapbox.com">Mapbox</a>',
                id: 'examples.map-20v6611k'
            }).addTo(map);
    
            //create the datasets that will hold the layers      
            var dataset1 = new L.layerGroup();
            var dataset2 = new L.layerGroup();
            var dataset3 = new L.layerGroup();
    
    
            //JSON request   
            var WFSLayer1 = null;
            var ajax = $.ajax({
                url: "http://localhost:8080/geoserver/PastDenver/ows?service=WFS&version=2.0.0&request=GetFeature&typeName=PastDenver:dataset3&maxFeatures=300&outputFormat=text/javascript&format_options=callback:getJson",
                dataType: 'jsonp',
                jsonpCallback: 'getJson',
                success: function (response) {
                    WFSLayer1 = L.geoJson(response, {
                        style: function (feature) {
                            return {
                                weight: 5,
                                color: '#6e7ce8',
                                weight: 2,
                                opacity: 1,
                                dashArray: '3',
                                fillOpacity: 0.7,
                            };
                        },
                        onEachFeature: function (feature, layer) {
                            popupOptions = {
                                maxWidth: 200
                            };
                            if (feature.properties.name !== null) {
                                layer.bindLabel(feature.properties.name, popupOptions, {
                                    noHide: true
                                });
                            };
                            layer.bindPopup("<b>Name: </b>" + feature.properties.name + "<br><b>Description: </b>" + feature.properties.descr + "<br><b>Floors: </b>" + feature.properties.floors + "<br><b>Material: </b>" + feature.properties.material);
                            layer.on({
                                click: zoomToFeature
                            })
                        }
                    }).addTo(dataset1);
                }
            });
    
            var WFSLayer2 = null;
            var ajax = $.ajax({
                url: "http://localhost:8080/geoserver/PastDenver/ows?service=WFS&version=2.0.0&request=GetFeature&typeName=PastDenver:dataset1&maxFeatures=300&outputFormat=text/javascript&format_options=callback:getJson",
                dataType: 'jsonp',
                jsonpCallback: 'getJson',
                success: function (response) {
                    WFSLayer1 = L.geoJson(response, {
                        style: function (feature) {
                            return {
                                weight: 5,
                                color: '#e31424',
                                weight: 2,
                                opacity: 1,
                                dashArray: '3',
                                fillOpacity: 0.7,
                            };
                        },
                        onEachFeature: function (feature, layer) {
                            popupOptions = {
                                maxWidth: 200
                            };
                            if (feature.properties.name !== null) {
                                layer.bindLabel(feature.properties.name, popupOptions, {
                                    noHide: true
                                });
                            };
                            layer.bindPopup("<b>Name: </b>" + feature.properties.name + "<br><b>Description: </b>" + feature.properties.descr + "<br><b>Floors: </b>" + feature.properties.floors + "<br><b>Material: </b>" + feature.properties.material);
                            layer.on({
                                click: zoomToFeature
                            })
                        }
                    }).addTo(dataset2);
                }
            });
    
            var WFSLayer3 = null;
            var ajax = $.ajax({
                url: "http://localhost:8080/geoserver/PastDenver/ows?service=WFS&version=2.0.0&request=GetFeature&typeName=PastDenver:dataset2&maxFeatures=300&outputFormat=text/javascript&format_options=callback:getJson",
                dataType: 'jsonp',
                jsonpCallback: 'getJson',
                success: function (response) {
                    WFSLayer3 = L.geoJson(response, {
                        style: function (feature) {
                            return {
                                weight: 5,
                                color: '#14e324',
                                weight: 2,
                                opacity: 1,
                                dashArray: '3',
                                fillOpacity: 0.7,
                            };
                        },
                        onEachFeature: function (feature, layer) {
                            popupOptions = {
                                maxWidth: 200
                            };
                            if (feature.properties.name !== null) {
                                layer.bindLabel(feature.properties.name, popupOptions, {
                                    noHide: true
                                });
                            };
                            layer.bindPopup("<b>Name: </b>" + feature.properties.name + "<br><b>Description: </b>" + feature.properties.descr + "<br><b>Floors: </b>" + feature.properties.floors + "<br><b>Material: </b>" + feature.properties.material);
                            layer.on({
                                click: zoomToFeature
                            })
                        }
                    }).addTo(dataset3);
                }
            });
    
    
            //zoom to feature
            function zoomToFeature(e) {
                map.fitBounds(e.target.getBounds());
            }
    
            //group the datasets
            var overlayData = {
                "1887": dataset1,
                "1925": dataset2,
                "1961": dataset3
            };
    
    
            //create the layer control
            L.control.layers(overlayData, null, {
                collapsed: false
            }).addTo(map);
        </script>
    </div>
    

    Any type of help or idea is very appreciated, since now I have no idea where to start. Also, I’m very open to rebuild the code following better practices =).

    Best,

  • Add wmts layer from Geoserver to ArcGIS viewer for Flex

    Is there anyone out there who has set wmts layer from Geoserver to ArcGIS viewer for flex?

    I am trying to do that but without any luck.

    <layer label="Sample WMTS layer" type="wmts" visible="true" useproxy="false" imageformat="gif" url="http://v2.suite.opengeo.org/geoserver/gwc/service/wmts" style="_null" servicemode="KVP" layerid="world" tilematrixsetid="EPSG:4326"/>
    

    If I change the type to “wms” it works like a charm.

    Anyone?

Digest powered by RSS Digest

 Posted by at 13:38
Feb 232015
 
  • Geoserver SLD repeat = PropertyName

    i’ve got Geoserver up and running, rendering spatial data in Openlayers, based on a view from a Postgresql/Postgis database. I’m trying to get most of the values for the SLD file by the object (column) in the database, this works fine by using as an expression, e.g.

    <Fill>
        <CssParameter name = "fill"><PropertyName>sld_font_color</PropertyName></CssParameter>
    </Fill>
    

    this also seems to work with some VendorOptions like

    <VendorOption name = "followLine"><PropertyName>sld_font_follow</PropertyName></VendorOption>
    

    but won’t work with some other VendorOptions like

    <VendorOption name = "repeat"><PropertyName>sld_font_repeat</PropertyName></VendorOption>
    

    the same error comes with maxDisplacement and autoWrap

    <ServiceException code="internalError">
      Rendering process failed null
    

    and the data from the view looks fine

    greetings

  • WFS without Geometry data type in openlayers

    Is it possible to display layer as WFS if layer does not have field with data type “Geometry” ?


    I have shape file which imported in postgresql and want to display or access as wfs layer from geoserver using openlayers.The file contain field with data type geometry but when I tried to publish using geoserver it takes multipolygon datatype.

    But I published layer with multipolygon data type using geoserver but it does not display and I can’t edit it.

    The layer displays in geoserver but not in using openlayers.

Digest powered by RSS Digest

 Posted by at 13:36
Feb 192015
 
  • How to translate geoexplorer to another language

    I am trying to translate Geoexplorer to Swedish language. The information in Google on how to do this is very limited.

    Can someone light me up with a step by step?

    Regads,
    Abel

  • How to create a searchbox in geoexolorer

    Is there someone knowing how to create a searchbox in geoexplorer? On google there is very limited information about it. I work for a municipality and this would be the next step in developing our Webmap.

    Help please!

  • web2py and open source GIS components (geoserver, openlayers, postgresql) [on hold]

    Could someone guide me about how to use open source GIS components (geoserver, openlayers, postgresql) with web2py?
    I would like to develop a web based GIS app with web2py and open source components.

  • Hosting DigitalGlobe stereo imagery on GeoServer

    I have a pretty fresh install of the latest Boundless OpenGeo stack (v4.5). I have a requirement to host some stereo satellite imagery. I’m using the sample imagery over China provided by DigitalGlobe (https://www.digitalglobe.com/product-samples). The .zip file is quite large and contains a directory for panchromatic imagery, one for multispectral imagery, and a GIS_FILES directory that seems to just contain various footprint shapefiles. Each of the imagery directories contain many supporting files: .ATT, .EPH, .GEO, .IMD, .RPB, .STE, .TIL… DigitalGlobe has an Imagery Support Data Document (https://www.digitalglobe.com/sites/default/files/ISD_External.pdf) that explains the information in each file. They all seem to provide information about the image pairs, overlaps, etc.

    I’m confused how to properly host this data in GeoServer. Should the two GeoTIFFs be added to independent stores in GeoServer? Is there some other sort of mechanism that keeps the two images together or contains the metadata in the DG provided files?

    Sorry for such a novice question. If anybody has any advice on how to host stereo image pairs like this in GeoServer, I would greatly appreciate it!

Digest powered by RSS Digest

 Posted by at 13:38
%d bloggers like this:
Close Bitnami banner
Bitnami