Re: [Geoserver-users] Shapfile of type polygon showing point features in WMS

2019-04-25 Thread Naresh N
Naresh N Thu, Apr 25, 4:57 PM (16 hours ago) to me Dear Andrea, I have found the code in the link https://github.com/geotools/geotools/blob/13.4/modules/plugin/jdbc/jdbc-postgis/src/main/java/org/geotools/data/postgis/PostGISDialect.java and code is as follows String geomType =

Re: [Geoserver-users] Shapfile of type polygon showing point features in WMS

2019-04-25 Thread Naresh N
Dear Andrea, Thanks a lot for your quick response. Thanks, Naresh On Thu, Apr 25, 2019 at 2:54 PM Andrea Aime wrote: > On Thu, Apr 25, 2019 at 11:19 AM Naresh N wrote: > >> * Is it possible to find the in GeoServer2.7.4, which part of the code >> deals with PostgreSQL table layer publishing?

Re: [Geoserver-users] Shapfile of type polygon showing point features in WMS

2019-04-25 Thread Andrea Aime
On Thu, Apr 25, 2019 at 11:19 AM Naresh N wrote: > * Is it possible to find the in GeoServer2.7.4, which part of the code > deals with PostgreSQL table layer publishing? Kindly help me in > this regard.* > GeoServer 2.7.4 source code is here: https://github.com/geoserver/geoserver/tree/2.7.4 It

Re: [Geoserver-users] Shapfile of type polygon showing point features in WMS

2019-04-25 Thread Naresh N
Dear Andrea and Brad, Thanks for responding and suggestions As per my understanding when we are publishing postgresql table in Geoserver 2.7.4, some have misinterpreted the-geom type and it is showing as Geometry and assigned default point SLD. GeoServer assigning for all the PostgreSQL/PostGIS

Re: [Geoserver-users] Shapfile of type polygon showing point features in WMS

2019-04-25 Thread Andrea Aime
On Wed, Apr 24, 2019 at 2:21 PM Naresh N wrote: > Dear Brad, > Thanks for quick response. > 1. I am deploying GeoNode 2.4 version which has customized version of > GeoServer which is 2.7.4. So I can not upgrade to higher version of > GeoServer. > As Brad said, upgrade if you can, you're running

Re: [Geoserver-users] Shapfile of type polygon showing point features in WMS

2019-04-24 Thread Naresh N
Dear Brad, Thanks for quick response. 1. I am deploying GeoNode 2.4 version which has customized version of GeoServer which is 2.7.4. So I can not upgrade to higher version of GeoServer. 2. In database after uploading shape file 9f type polygon , i have verified geom column type it showing as

Re: [Geoserver-users] Shapfile of type polygon showing point features in WMS

2019-04-24 Thread bradh
GeoServer 2.7.4 is pretty old. Perhaps trying an upgrade first would be a good idea. After that, you could double-check how you created the database table - what does postgis think the data type is? In any case, you can probably just assign whichever default style you want using the UI. See