Then I’d strongly suggest trying a newer version of GeoNode.

 

If you want to do something in the code, you’ll likely find it in geotools, 
rather than geoserver.

 

Brad

 

From: Naresh N <naresh...@gmail.com> 
Sent: Wednesday, 24 April 2019 10:13 PM
To: br...@frogmouth.net; geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Shapfile of type polygon showing point features 
in WMS

 

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 property with multi polygon. 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. Only problem is compatlblity of Geoserver 2.7.4 with 
postgresql 10.6 and. PostGIS 2.5.2 

 

So if we know In Geoserver which part of code vetifies and asdigns the the_grom 
type we can chbage/fix the code.

 

Kindly help me in this regards

 

Thanks,

NARESH

 

On Wed, Apr 24, 2019, 3:26 PM <br...@frogmouth.net <mailto:br...@frogmouth.net> 
> wrote:

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 
https://docs.geoserver.org/stable/en/user/data/webadmin/layers.html#wms-sett
ings

Brad

-----Original Message-----
From: naresh <naresh...@gmail.com <mailto:naresh...@gmail.com> > 
Sent: Wednesday, 24 April 2019 7:13 PM
To: geoserver-users@lists.sourceforge.net 
<mailto:geoserver-users@lists.sourceforge.net> 
Subject: [Geoserver-users] Shapfile of type polygon showing point features
in WMS

Hello All,

I am using GeoServer2.7.4 ,PostgreSQL 10.7 and PostGIS 2.5.2. I have
uploaded the shapefile of type polygon/line to PosgresQL Database(PostGIS
enabled). Created the store from PostgreSQL/PostGIS in GeoServer.  I have
published the PostgreSQL table( Uploaded Shapefile type of poygon) , then
GeoServer assigns Default POINT SLD to it instead of assigning polygon.
Please find the attached screenshot which shows *the_geom* type as
*Geometry* which is wrong.

Kindly help how to fix the issue. Which part of GeoServer code assigns
*the_geom* type?

Please let me know any other information required further

Thanks&Regards,
Naresh





--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html


_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this
list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-inte 
<https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer>
 
grating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net 
<mailto:Geoserver-users@lists.sourceforge.net> 
https://lists.sourceforge.net/lists/listinfo/geoserver-users

_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to