[Geoserver-users] Styling problem with polygons

Hi guys,

this is my first post and I’m pretty new in geoserver, so please accept my appologies in advance if any of my comments is’nt at your level.

Here is my issue:

I’ve a layer from a MySQL view of a spatial table. The geometry type of this layer is specified as ‘Geometry’, not ‘polygon’ although all its records are polygons. It has to be in this way cause if it is declared as polygon it crashes using an application we have to create these polygons.

I’ve created a thematical style that specifies a certain colour for a certain value in some of the attributes of the table.

My problem is that this style works fine when I check the result in the previous visualizations in OpenLayers in the Geoserver Administration site. But, when I try to load this layer in my web app, a full pink layer is the result.

I’ve tested the layer opening a wfs connection to my geoserver from a client GIS (Udig) and it appears to display a line feature instead of a polygon. So I guess that here must be the problem.

Can anybody suggest any solutoin please?

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

Abans d’imprimir aquest correu, pensi seriosament si necessita fer-ho.
Antes de imprimir este correo, piense seriamente si necesita hacerlo.
--------------------------------------------

Aquest missatge electrònic està dirigit únicament a les adreces indicades. El seu caràcter confidencial, personal i intransferible està protegit per la Llei 15/99 de Protecció de Dades Personals. Qualsevol revelació, ús o reenviament no autoritzat, total o parcial, està prohibit. Si ha rebut aquest missatge per equivocació, notifiqui-ho immediatament a la persona que l’ha enviat i esborri el missatge original conjuntament amb els seus fitxers annexos sense llegir-lo ni gravar-lo.

Este mensaje electrónico está dirigido únicamente a las direcciones indicadas. Su carácter confidencial, personal e intransferible, está protegido por la Ley 15/99 de Protección de Datos Personales. Cualquier revelación, uso o reenvío no autorizado, total o parcial, está prohibido. Si ha recibido este mensaje por equivocación, notifíquelo inmediatamente a la persona que se lo ha enviado, y borre el mensaje original conjuntamente con los ficheros anexos sin leerlo ni grabarlo.

When you see pink tiles in an OpenLayers map, you can usually right click on the map (or click while holding the Control key, etc.) and choose “View image in new tab” to see an error message. There should also be some information about the error available in the GeoServer logs (accessible from the administration GUI.) If you look there and aren’t able to understand the problem from the error message, try posting again to this list and including the error text.

···

On Fri, Jun 21, 2013 at 8:45 AM, Robert Juan Francès <robert.juan@anonymised.com> wrote:

Hi guys,

this is my first post and I’m pretty new in geoserver, so please accept my appologies in advance if any of my comments is’nt at your level.

Here is my issue:

I’ve a layer from a MySQL view of a spatial table. The geometry type of this layer is specified as ‘Geometry’, not ‘polygon’ although all its records are polygons. It has to be in this way cause if it is declared as polygon it crashes using an application we have to create these polygons.

I’ve created a thematical style that specifies a certain colour for a certain value in some of the attributes of the table.

My problem is that this style works fine when I check the result in the previous visualizations in OpenLayers in the Geoserver Administration site. But, when I try to load this layer in my web app, a full pink layer is the result.

I’ve tested the layer opening a wfs connection to my geoserver from a client GIS (Udig) and it appears to display a line feature instead of a polygon. So I guess that here must be the problem.

Can anybody suggest any solutoin please?

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

Abans d’imprimir aquest correu, pensi seriosament si necessita fer-ho.
Antes de imprimir este correo, piense seriamente si necesita hacerlo.
--------------------------------------------

Aquest missatge electrònic està dirigit únicament a les adreces indicades. El seu caràcter confidencial, personal i intransferible està protegit per la Llei 15/99 de Protecció de Dades Personals. Qualsevol revelació, ús o reenviament no autoritzat, total o parcial, està prohibit. Si ha rebut aquest missatge per equivocació, notifiqui-ho immediatament a la persona que l’ha enviat i esborri el missatge original conjuntament amb els seus fitxers annexos sense llegir-lo ni gravar-lo.

Este mensaje electrónico está dirigido únicamente a las direcciones indicadas. Su carácter confidencial, personal e intransferible, está protegido por la Ley 15/99 de Protección de Datos Personales. Cualquier revelación, uso o reenvío no autorizado, total o parcial, está prohibido. Si ha recibido este mensaje por equivocación, notifíquelo inmediatamente a la persona que se lo ha enviado, y borre el mensaje original conjuntamente con los ficheros anexos sin leerlo ni grabarlo.


This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Thank you very much David. That’s what I’m gonna do

···

On Fri, Jun 21, 2013 at 8:45 AM, Robert Juan Francès <robert.juan@anonymised.com> wrote:

Hi guys,

this is my first post and I’m pretty new in geoserver, so please accept my appologies in advance if any of my comments is’nt at your level.

Here is my issue:

I’ve a layer from a MySQL view of a spatial table. The geometry type of this layer is specified as ‘Geometry’, not ‘polygon’ although all its records are polygons. It has to be in this way cause if it is declared as polygon it crashes using an application we have to create these polygons.

I’ve created a thematical style that specifies a certain colour for a certain value in some of the attributes of the table.

My problem is that this style works fine when I check the result in the previous visualizations in OpenLayers in the Geoserver Administration site. But, when I try to load this layer in my web app, a full pink layer is the result.

I’ve tested the layer opening a wfs connection to my geoserver from a client GIS (Udig) and it appears to display a line feature instead of a polygon. So I guess that here must be the problem.

Can anybody suggest any solutoin please?

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

Abans d’imprimir aquest correu, pensi seriosament si necessita fer-ho.
Antes de imprimir este correo, piense seriamente si necesita hacerlo.
--------------------------------------------

Aquest missatge electrònic està dirigit únicament a les adreces indicades. El seu caràcter confidencial, personal i intransferible està protegit per la Llei 15/99 de Protecció de Dades Personals. Qualsevol revelació, ús o reenviament no autoritzat, total o parcial, està prohibit. Si ha rebut aquest missatge per equivocació, notifiqui-ho immediatament a la persona que l’ha enviat i esborri el missatge original conjuntament amb els seus fitxers annexos sense llegir-lo ni gravar-lo.

Este mensaje electrónico está dirigido únicamente a las direcciones indicadas. Su carácter confidencial, personal e intransferible, está protegido por la Ley 15/99 de Protección de Datos Personales. Cualquier revelación, uso o reenvío no autorizado, total o parcial, está prohibido. Si ha recibido este mensaje por equivocación, notifíquelo inmediatamente a la persona que se lo ha enviado, y borre el mensaje original conjuntamente con los ficheros anexos sin leerlo ni grabarlo.


This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev


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