From: Brent O. <bre...@gm...> - 2006-11-30 20:53:38
|
Hi Daryl This seems really odd. Could you change the logging level to 'fine', and try the request again? What is weird is that when you specify for a kmz result, it is returning valid kml in the zipped up kmz file. But for just regular kml it isn't working. There seem to be very few features as well, so it isn't a size issue.The style also looks fine. Although looking at the request you aren't using the style you specified. I tried to do a getCapabilities request but that is also getting truncated part way through the response. A describe feature type request is also not working. So something weird is going on here. Can you try the same dataset but as a shapefile instead? Brent Owens (The Open Planning Project) Daryl Herzmann wrote: > Hi, > > I'm trying to get a point layer in my postgis database to be served > via Geoserver to Google Earth. I haven't been able to get it to work. > > When I use > > format=application/vnd.google-earth.kml+XML > > The server delays for a number of seconds and I finally get a > truncated XML file (see attached current_kcci.kml.gz) and nothing > interesting in the log files on the server. > > When I use > > format=application/vnd.google-earth.kmz+XML > > The server immediately responds, but Google Earth appears to have > duplicate points. When I click on the point, two points appear, each > with a label. > > I've attached my sld (point_test.sld) and the URI to my instance is: > > http://mesonet.agron.iastate.edu/geoserver//wms?service=WMS&request=GetMap&format=application/vnd.google-earth.kmz+XML&width=1024&height=1024&srs=EPSG:4326&layers=topp:current_kcci&styles=poi&bbox=-180,-90,180,90 > > > Any ideas? thanks! > > daryl > ------------------------------------------------------------------------ > > <?xml version="1.0" encoding="ISO-8859-1"?> > > <StyledLayerDescriptor version="1.0.0" > > xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd" > > xmlns="http://www.opengis.net/sld" > > xmlns:ogc="http://www.opengis.net/ogc" > > xmlns:xlink="http://www.w3.org/1999/xlink" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > <!-- a named layer is the basic building block of an sld document --> > > > > <NamedLayer> > > <Name>Default Point</Name> > > <UserStyle> > > <!-- they have names, titles and abstracts --> > > > > <Title>A boring default style</Title> > > <Abstract>A sample style that just prints out a purple circle</Abstract> > > <!-- FeatureTypeStyles describe how to render different features --> > > <!-- a feature type for points --> > > > > <FeatureTypeStyle> > > <!--FeatureTypeName>Feature</FeatureTypeName--> > > <Rule> > > <Name>Rule 1</Name> > > <Title>PurpleFill</Title> > > <Abstract>A purple fill with an 11 pixel size</Abstract> > > > > <!-- like a linesymbolizer but with a fill too --> > > <PointSymbolizer> > > <Graphic> > > <Mark> > > <WellKnownName>circle</WellKnownName> > > <Fill> > > <CssParameter name="fill">#9F4DC5</CssParameter> > > <CssParameter name="fill-opacity">1.0</CssParameter> > > </Fill> > > </Mark> > > <Size>6</Size> > > </Graphic> > > </PointSymbolizer> > > > > <TextSymbolizer> > > <Label> > > <ogc:PropertyName>sname</ogc:PropertyName> > > </Label> > > > > <Font> > > <CssParameter name="font-style">Normal</CssParameter> > > <CssParameter name="font-size">16</CssParameter> > > <CssParameter name="font-weight">bold</CssParameter> > > </Font> > > > > <Fill> > > <CssParameter name="fill">#FF0000</CssParameter> > > </Fill> > > </TextSymbolizer> > > > > </Rule> > > > > </FeatureTypeStyle> > > </UserStyle> > > </NamedLayer> > > </StyledLayerDescriptor> > > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ------------------------------------------------------------------------ > > _______________________________________________ > Geoserver-users mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geoserver-users > |