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> 
Sent: Wednesday, 24 April 2019 7:13 PM
To: 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
grating-new-features-and-improvements-in-GeoServer


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