Hi Chris,
Thanks for the help. I found my error.
I was using a style mapping in my code that changed the style in the access
url, replacing the default style. Once I recognized my problem, disabling
the style mapping and reverting to the default style fixed the problem.
I am using the new geoserver-1.3.1a-war. The improvements for KML are very
nice. Geoserver makes a good one way bridge between the OWS side of things
and Google Earth. It is nice to see that multiple layers now work with the
KML export.
I'll need to get familiar with the KML reflector too.
Thanks
Randy
-----Original Message-----
From: Chris Holmes [mailto:cholmes@anonymised.com]
Sent: Monday, June 12, 2006 10:03 PM
To: Randy George
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] default style location for kml export
Is it KML and KMZ?
Are you using the KML reflector? If you are could you try including the
style name there? Just add the param the same way you would with WMS
styles=installation_area I think. And is
'installation_area' listed in catalog.xml? Like after you hit
'save'. Was it configured with the new SLD editor? Or was it done by
hand?
Randy George wrote:
Hi,
I am getting the following message when exporting KML on
some of my FeatureTypes (curiously only some?)
_org.vfny.geoserver.wms.WmsException_: No default style has been defined
for geo:structure_existing_area
at
org.vfny.geoserver.wms.requests.GetMapKvpReader.parseStylesParam(_GetMapKvpR
eader.java:590_)
at
org.vfny.geoserver.wms.requests.GetMapKvpReader.parseLayersAndStyles(_GetMap
KvpReader.java:685_)
at
org.vfny.geoserver.wms.requests.GetMapKvpReader.parseMandatoryParameters(_Ge
tMapKvpReader.java:381_)
at
org.vfny.geoserver.wms.requests.GetMapKvpReader.getRequest(_GetMapKvpReader.
java:221_)
at .
.
.
I have the style 'structure_existing_area.sld' in my GEOSERVER_DATA_DIR
'D:\geoserver_data\data\styles' subdirectory. I double checked to make
sure that 'structure_existing_area' is the FeatureType editor style
input text. I checked the info.xml for structure_existing_area and it
does contain: <styles default = "structure_existing_area" />
Where should I be looking to verify that a default style has been defined?
Thanks
Randy
!DSPAM:1003,448de5dd173451971556521!
------------------------------------------------------------------------
!DSPAM:1003,448de5dd173451971556521!
------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
!DSPAM:1003,448de5dd173451971556521!
--
Chris Holmes
The Open Planning Project
http://topp.openplans.org