Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [geomesa-users] NPE in geomesa:Density

Jason, Emillio:

     Thanks for the replies.

So I have applied both changes. I am getting the same error with the same stack trace.

I upgraded to GEOMESA 1.3.0 same issue.


My URL is now as follows:

http://52.222.65.14:8181/geoserver/wms?service=WMS&version=1.1.0&density=true&request=GetMap&layers=OE_Repository:OEEvents,OE_Repository:OEEvents&styles=heatmap,threat&bbox=31.6,44,37.4,47.75&width=1200&height=600&srs=EPSG:4326&format=application/openlayers&env=radiusPixels:30

If I change the styles to just use threat the query works.

If I change the heatmap style to user gs:Heatmap (versus geomesa:Density) it works.

Below is my heatmap style:

<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0"
  xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
  xmlns="http://www.opengis.net/sld"; xmlns:ogc="http://www.opengis.net/ogc";
xmlns:xlink="http://www.w3.org/1999/xlink"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  <NamedLayer>
    <Name>Heatmap</Name>
    <UserStyle>
      <Title>Heatmap</Title>
      <Abstract>A heatmap surface showing point density</Abstract>
      <FeatureTypeStyle>
        <Transformation>
          <ogc:Function name="geomesa:Density">
            <ogc:Function name="parameter">
              <ogc:Literal>data</ogc:Literal>
            </ogc:Function>
            <ogc:Function name="parameter">
              <ogc:Literal>radiusPixels</ogc:Literal>
              <ogc:Function name="env">
<ogc:Literal>radiusPixels</ogc:Literal>
                <ogc:Literal>40</ogc:Literal>
              </ogc:Function>
            </ogc:Function>
            <ogc:Function name="parameter">
              <ogc:Literal>weightAttr</ogc:Literal>
              <ogc:Function name="env">
                <ogc:Literal>weightAttr</ogc:Literal>
              </ogc:Function>
            </ogc:Function>
            <ogc:Function name="parameter">
              <ogc:Literal>outputBBOX</ogc:Literal>
              <ogc:Function name="env">
                <ogc:Literal>wms_bbox</ogc:Literal>
              </ogc:Function>
            </ogc:Function>
            <ogc:Function name="parameter">
              <ogc:Literal>outputWidth</ogc:Literal>
              <ogc:Function name="env">
                <ogc:Literal>wms_width</ogc:Literal>
              </ogc:Function>
            </ogc:Function>
            <ogc:Function name="parameter">
              <ogc:Literal>outputHeight</ogc:Literal>
              <ogc:Function name="env">
                <ogc:Literal>wms_height</ogc:Literal>
              </ogc:Function>
            </ogc:Function>
          </ogc:Function>
        </Transformation>
        <Rule>
          <RasterSymbolizer>
            <!-- specify geometry attribute to pass validation -->
            <Geometry>
<ogc:PropertyName>ActionGeoLocation</ogc:PropertyName>
            </Geometry>
            <Opacity>0.75</Opacity>
            <ColorMap type="ramp">
              <ColorMapEntry color="#0000FF" quantity="0" label="No Data"
                opacity="0" />
              <ColorMapEntry color="#00007F" quantity="0.001"
                label="Lowest" />
              <ColorMapEntry color="#0000FF" quantity="0.003"
                label="Very Low" />
              <ColorMapEntry color="#00FFFF" quantity="0.005"
                label="Low" />
              <ColorMapEntry color="#00FF00" quantity="0.01"
                label="Medium-Low" />
              <ColorMapEntry color="#FFFF00" quantity="0.02"
                label="Medium" />
              <ColorMapEntry color="#FF7F00" quantity="0.05"
                label="Medium-High" />
              <ColorMapEntry color="#FF6600" quantity="0.1"
                label="High" />
              <ColorMapEntry color="#FF0000" quantity="0.35"
                label="Very High" />
              <ColorMapEntry color="#FF00DE" quantity="0.65"
                label="Highest" />
            </ColorMap>
          </RasterSymbolizer>
        </Rule>
      </FeatureTypeStyle>
    </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>


On 2/7/17 1:12 PM, Jason T. Brown wrote:
Also be sure that the <ogc:PropertyName> is the attribute name for your Point geometry.


On 02/07/2017 12:00 PM, geomesa-users-request@xxxxxxxxxxxxxxxx wrote:
Send geomesa-users mailing list submissions to
    geomesa-users@xxxxxxxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
    https://dev.locationtech.org/mailman/listinfo/geomesa-users
or, via email, send a message with subject or body 'help' to
    geomesa-users-request@xxxxxxxxxxxxxxxx

You can reach the person managing the list at
    geomesa-users-owner@xxxxxxxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of geomesa-users digest..."


Today's Topics:

    1. Null pointer exception when trying to use Geomesa:Density
       (David Boyd)
    2. Re: Null pointer exception when trying to use Geomesa:Density
       (Emilio Lahr-Vivaz)


----------------------------------------------------------------------

Message: 1
Date: Tue, 7 Feb 2017 08:33:21 -0500
From: David Boyd <dboyd@xxxxxxxxxxxxxxxxx>
To: <geomesa-users@xxxxxxxxxxxxxxxx>
Subject: [geomesa-users] Null pointer exception when trying to use
    Geomesa:Density
Message-ID: <0d6359a5-f808-a339-340f-ee2174338651@xxxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

Hi all:

I have a small (7 node) Accumulo 1.6.5 cluster with Geomesa 1.2.7.2
installed.
I am using Geoserver 2.10.1.
I have installed the wps extension for geoserver, and followed all the steps
I could find in the documentation.

I have my own ingest of GDELT data that has about 400K events in the
data store.
Normal point based WMS renderings work fine (really fine actually), WFS
queries
also work fine.

However, I am trying to use the heatmap.sld
I have added it to Geoserver. But any attempt to query my layers with it
causes geoserver to throw a NullPointerException.

Attached is the stacktrace from my catalina.out

Any suggestion?




--
========= mailto:dboyd@xxxxxxxxxxxxxxxxx ============
David W. Boyd
VP,  Data Solutions
10432 Balls Ford, Suite 240
Manassas, VA 20109
office:   +1-703-552-2862
cell:     +1-703-402-7908
============== http://www.incadencecorp.com/ ============
ISO/IEC JTC1 WG9, editor ISO/IEC 20547 Big Data Reference Architecture
Chair ANSI/INCITS TC Big Data
Co-chair NIST Big Data Public Working Group Reference Architecture
First Robotic Mentor - FRC, FTC - www.iliterobotics.org
Board Member- USSTEM Foundation - www.usstem.org

The information contained in this message may be privileged
and/or confidential and protected from disclosure.
If the reader of this message is not the intended recipient
or an employee or agent responsible for delivering this message
to the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication
is strictly prohibited.  If you have received this communication
in error, please notify the sender immediately by replying to
this message and deleting the material from any computer.



Back to the top