Ok, I have a shapefile I an serving into NASA World Wind. I have it
loading fine but I am getting black where there is no data to show.
I have not come across anything the explains what I would have to do
to make the black transparent.
Any pointers or suggestions?
--
"While GE is a nice program... it is like the AOL of the imaging world
and releasing utter noobs on the rest of us"
- Me
Hi Chad,
What output format are you requesting? If you request gif or jpeg, you will get poor or no transparency. If you use PNG (format=image/png) then you will get great transparency.
Brent Owens
(The Open Planning Project)
Chad Zimmerman wrote:
Ok, I have a shapefile I an serving into NASA World Wind. I have it
loading fine but I am getting black where there is no data to show.
I have not come across anything the explains what I would have to do
to make the black transparent.
Any pointers or suggestions?
I am outputting a png and still getting white (thougth it was black
for some reason)...
Here is the output in UDig: http://www.alteviltech.com/temp/NHDPlus_Zone08.jpg
And here in World Wind: http://www.alteviltech.com/temp/NHDPlus_Zone08_WW.jpg
Here is what I use in my WW XML file:
<WMSAccessor>
<ServerGetMapUrl>http://localhost:8080/geoserver/wms</ServerGetMapUrl>
<ServiceName>WMS</ServiceName>
<Version>1.0.0</Version>
<ImageFormat>image/png</ImageFormat>
<WMSLayerName>NHDWaterbody</WMSLayerName>
<UseTransparency>true</UseTransparency>
<Opacity>170</Opacity>
<ServerLogoFilePath>add-ons\sdss\sdss\sdss.png</ServerLogoFilePath>
</WMSAccessor>
On 6/14/06, Brent Owens <brentowens@anonymised.com> wrote:
Hi Chad,
What output format are you requesting? If you request gif or jpeg, you
will get poor or no transparency. If you use PNG (format=image/png) then
you will get great transparency.
Brent Owens
(The Open Planning Project)
Chad Zimmerman wrote:
> Ok, I have a shapefile I an serving into NASA World Wind. I have it
> loading fine but I am getting black where there is no data to show.
>
> I have not come across anything the explains what I would have to do
> to make the black transparent.
>
> Any pointers or suggestions?
>
--
"While GE is a nice program... it is like the AOL of the imaging world
and releasing utter noobs on the rest of us"
- Me
Since it is showing up in in UDig, I think that the problem lies with WW. Either WW is messing up the request and asking a different image format. Or it can't render the PNG.
I can give the request a try in a day or two and see what might be wrong. But try asking the WW guys if they have an idea.
Brent Owens
(The Open Planning Project)
Chad Zimmerman wrote:
I am outputting a png and still getting white (thougth it was black
for some reason)...
Here is the output in UDig: http://www.alteviltech.com/temp/NHDPlus_Zone08.jpg
And here in World Wind: http://www.alteviltech.com/temp/NHDPlus_Zone08_WW.jpg
Here is what I use in my WW XML file:
<WMSAccessor>
<ServerGetMapUrl>http://localhost:8080/geoserver/wms</ServerGetMapUrl>
<ServiceName>WMS</ServiceName>
<Version>1.0.0</Version>
<ImageFormat>image/png</ImageFormat>
<WMSLayerName>NHDWaterbody</WMSLayerName>
<UseTransparency>true</UseTransparency>
<Opacity>170</Opacity>
<ServerLogoFilePath>add-ons\sdss\sdss\sdss.png</ServerLogoFilePath>
</WMSAccessor>
On 6/14/06, Brent Owens <brentowens@anonymised.com> wrote:
Hi Chad,
What output format are you requesting? If you request gif or jpeg, you
will get poor or no transparency. If you use PNG (format=image/png) then
you will get great transparency.
Brent Owens
(The Open Planning Project)
Chad Zimmerman wrote:
> Ok, I have a shapefile I an serving into NASA World Wind. I have it
> loading fine but I am getting black where there is no data to show.
>
> I have not come across anything the explains what I would have to do
> to make the black transparent.
>
> Any pointers or suggestions?
>
Ok, we hacked and tweaked the XML a bit and got it to work. Here is
how the WW XML looks now:
<WMSAccessor>
<ServerGetMapUrl>http://localhost:8080/geoserver/wms</ServerGetMapUrl>
<ServiceName>WMS</ServiceName>
<Version>1.0.0</Version>
<ImageFormat>image/png</ImageFormat>
<WMSLayerName>NHDArea&BGColor=0x000000</WMSLayerName>
<UseTransparency>true</UseTransparency>
<TransparentMinValue>0</TransparentMinValue>
<TransparentMaxValue>16</TransparentMaxValue>
<ServerLogoFilePath>add-ons\sdss\sdss\sdss.png</ServerLogoFilePath>
</WMSAccessor>
On 6/14/06, Brent Owens <brentowens@anonymised.com> wrote:
Since it is showing up in in UDig, I think that the problem lies with
WW. Either WW is messing up the request and asking a different image
format. Or it can't render the PNG.
I can give the request a try in a day or two and see what might be
wrong. But try asking the WW guys if they have an idea.
Brent Owens
(The Open Planning Project)
Chad Zimmerman wrote:
> I am outputting a png and still getting white (thougth it was black
> for some reason)...
>
> Here is the output in UDig:
> http://www.alteviltech.com/temp/NHDPlus_Zone08.jpg
> And here in World Wind:
> http://www.alteviltech.com/temp/NHDPlus_Zone08_WW.jpg
>
> Here is what I use in my WW XML file:
>
> <WMSAccessor>
>
> <ServerGetMapUrl>http://localhost:8080/geoserver/wms</ServerGetMapUrl>
> <ServiceName>WMS</ServiceName>
> <Version>1.0.0</Version>
> <ImageFormat>image/png</ImageFormat>
> <WMSLayerName>NHDWaterbody</WMSLayerName>
> <UseTransparency>true</UseTransparency>
> <Opacity>170</Opacity>
>
> <ServerLogoFilePath>add-ons\sdss\sdss\sdss.png</ServerLogoFilePath>
> </WMSAccessor>
>
> On 6/14/06, Brent Owens <brentowens@anonymised.com> wrote:
>> Hi Chad,
>>
>> What output format are you requesting? If you request gif or jpeg, you
>> will get poor or no transparency. If you use PNG (format=image/png) then
>> you will get great transparency.
>>
>> Brent Owens
>> (The Open Planning Project)
>>
>> Chad Zimmerman wrote:
>> > Ok, I have a shapefile I an serving into NASA World Wind. I have it
>> > loading fine but I am getting black where there is no data to show.
>> >
>> > I have not come across anything the explains what I would have to do
>> > to make the black transparent.
>> >
>> > Any pointers or suggestions?
>> >
>>
>
--
"While GE is a nice program... it is like the AOL of the imaging world
and releasing utter noobs on the rest of us"
- Me
Cool, glad it is working.
Brent Owens
(The Open Planning Project)
Chad Zimmerman wrote:
Ok, we hacked and tweaked the XML a bit and got it to work. Here is
how the WW XML looks now:
<WMSAccessor>
<ServerGetMapUrl>http://localhost:8080/geoserver/wms</ServerGetMapUrl>
<ServiceName>WMS</ServiceName>
<Version>1.0.0</Version>
<ImageFormat>image/png</ImageFormat>
<WMSLayerName>NHDArea&BGColor=0x000000</WMSLayerName>
<UseTransparency>true</UseTransparency>
<TransparentMinValue>0</TransparentMinValue>
<TransparentMaxValue>16</TransparentMaxValue>
<ServerLogoFilePath>add-ons\sdss\sdss\sdss.png</ServerLogoFilePath>
</WMSAccessor>
On 6/14/06, Brent Owens <brentowens@anonymised.com> wrote:
Since it is showing up in in UDig, I think that the problem lies with
WW. Either WW is messing up the request and asking a different image
format. Or it can't render the PNG.
I can give the request a try in a day or two and see what might be
wrong. But try asking the WW guys if they have an idea.
Brent Owens
(The Open Planning Project)
Chad Zimmerman wrote:
> I am outputting a png and still getting white (thougth it was black
> for some reason)...
>
> Here is the output in UDig:
> http://www.alteviltech.com/temp/NHDPlus_Zone08.jpg
> And here in World Wind:
> http://www.alteviltech.com/temp/NHDPlus_Zone08_WW.jpg
>
> Here is what I use in my WW XML file:
>
> <WMSAccessor>
>
> <ServerGetMapUrl>http://localhost:8080/geoserver/wms</ServerGetMapUrl>
> <ServiceName>WMS</ServiceName>
> <Version>1.0.0</Version>
> <ImageFormat>image/png</ImageFormat>
> <WMSLayerName>NHDWaterbody</WMSLayerName>
> <UseTransparency>true</UseTransparency>
> <Opacity>170</Opacity>
>
> <ServerLogoFilePath>add-ons\sdss\sdss\sdss.png</ServerLogoFilePath>
> </WMSAccessor>
>
> On 6/14/06, Brent Owens <brentowens@anonymised.com> wrote:
>> Hi Chad,
>>
>> What output format are you requesting? If you request gif or jpeg, you
>> will get poor or no transparency. If you use PNG (format=image/png) then
>> you will get great transparency.
>>
>> Brent Owens
>> (The Open Planning Project)
>>
>> Chad Zimmerman wrote:
>> > Ok, I have a shapefile I an serving into NASA World Wind. I have it
>> > loading fine but I am getting black where there is no data to show.
>> >
>> > I have not come across anything the explains what I would have to do
>> > to make the black transparent.
>> >
>> > Any pointers or suggestions?
>> >
>>
>
Yep.. now for the "fun" part.. need to do some styling changes so that
they are all not 1 color.
http://www.alteviltech.com/temp/NHDPlus/
You really notice in the Flowline screen shot. That should be better
defined instead of a giant green spider web.
On 6/15/06, Brent Owens <brentowens@anonymised.com> wrote:
Cool, glad it is working.
Brent Owens
(The Open Planning Project)
Chad Zimmerman wrote:
> Ok, we hacked and tweaked the XML a bit and got it to work. Here is
> how the WW XML looks now:
>
> <WMSAccessor>
>
> <ServerGetMapUrl>http://localhost:8080/geoserver/wms</ServerGetMapUrl>
> <ServiceName>WMS</ServiceName>
> <Version>1.0.0</Version>
> <ImageFormat>image/png</ImageFormat>
> <WMSLayerName>NHDArea&BGColor=0x000000</WMSLayerName>
> <UseTransparency>true</UseTransparency>
> <TransparentMinValue>0</TransparentMinValue>
> <TransparentMaxValue>16</TransparentMaxValue>
>
> <ServerLogoFilePath>add-ons\sdss\sdss\sdss.png</ServerLogoFilePath>
> </WMSAccessor>
>
> On 6/14/06, Brent Owens <brentowens@anonymised.com> wrote:
>> Since it is showing up in in UDig, I think that the problem lies with
>> WW. Either WW is messing up the request and asking a different image
>> format. Or it can't render the PNG.
>>
>> I can give the request a try in a day or two and see what might be
>> wrong. But try asking the WW guys if they have an idea.
>>
>> Brent Owens
>> (The Open Planning Project)
>>
>> Chad Zimmerman wrote:
>> > I am outputting a png and still getting white (thougth it was black
>> > for some reason)...
>> >
>> > Here is the output in UDig:
>> > http://www.alteviltech.com/temp/NHDPlus_Zone08.jpg
>> > And here in World Wind:
>> > http://www.alteviltech.com/temp/NHDPlus_Zone08_WW.jpg
>> >
>> > Here is what I use in my WW XML file:
>> >
>> > <WMSAccessor>
>> >
>> > <ServerGetMapUrl>http://localhost:8080/geoserver/wms</ServerGetMapUrl>
>> > <ServiceName>WMS</ServiceName>
>> > <Version>1.0.0</Version>
>> > <ImageFormat>image/png</ImageFormat>
>> > <WMSLayerName>NHDWaterbody</WMSLayerName>
>> > <UseTransparency>true</UseTransparency>
>> > <Opacity>170</Opacity>
>> >
>> > <ServerLogoFilePath>add-ons\sdss\sdss\sdss.png</ServerLogoFilePath>
>> > </WMSAccessor>
>> >
>> > On 6/14/06, Brent Owens <brentowens@anonymised.com> wrote:
>> >> Hi Chad,
>> >>
>> >> What output format are you requesting? If you request gif or jpeg,
>> you
>> >> will get poor or no transparency. If you use PNG
>> (format=image/png) then
>> >> you will get great transparency.
>> >>
>> >> Brent Owens
>> >> (The Open Planning Project)
>> >>
>> >> Chad Zimmerman wrote:
>> >> > Ok, I have a shapefile I an serving into NASA World Wind. I
>> have it
>> >> > loading fine but I am getting black where there is no data to show.
>> >> >
>> >> > I have not come across anything the explains what I would have
>> to do
>> >> > to make the black transparent.
>> >> >
>> >> > Any pointers or suggestions?
>> >> >
>> >>
>> >
>>
>
--
"While GE is a nice program... it is like the AOL of the imaging world
and releasing utter noobs on the rest of us"
- Me
Ah yes, styling. Guaranteed to always take up a lot of time =)
On that note, we are working on an SLD editor in Geoserver that should really shorten the development time in creating an SLD. There is a basic one there now, but keep an eye out for the more advanced one when it comes out.
Brent Owens
(The Open Planning Project)
Chad Zimmerman wrote:
Yep.. now for the "fun" part.. need to do some styling changes so that
they are all not 1 color.
http://www.alteviltech.com/temp/NHDPlus/
You really notice in the Flowline screen shot. That should be better
defined instead of a giant green spider web.
On 6/15/06, Brent Owens <brentowens@anonymised.com> wrote:
Cool, glad it is working.
Brent Owens
(The Open Planning Project)
Chad Zimmerman wrote:
> Ok, we hacked and tweaked the XML a bit and got it to work. Here is
> how the WW XML looks now:
>
> <WMSAccessor>
>
> <ServerGetMapUrl>http://localhost:8080/geoserver/wms</ServerGetMapUrl>
> <ServiceName>WMS</ServiceName>
> <Version>1.0.0</Version>
> <ImageFormat>image/png</ImageFormat>
> <WMSLayerName>NHDArea&BGColor=0x000000</WMSLayerName>
> <UseTransparency>true</UseTransparency>
> <TransparentMinValue>0</TransparentMinValue>
> <TransparentMaxValue>16</TransparentMaxValue>
>
> <ServerLogoFilePath>add-ons\sdss\sdss\sdss.png</ServerLogoFilePath>
> </WMSAccessor>
>
> On 6/14/06, Brent Owens <brentowens@anonymised.com> wrote:
>> Since it is showing up in in UDig, I think that the problem lies with
>> WW. Either WW is messing up the request and asking a different image
>> format. Or it can't render the PNG.
>>
>> I can give the request a try in a day or two and see what might be
>> wrong. But try asking the WW guys if they have an idea.
>>
>> Brent Owens
>> (The Open Planning Project)
>>
>> Chad Zimmerman wrote:
>> > I am outputting a png and still getting white (thougth it was black
>> > for some reason)...
>> >
>> > Here is the output in UDig:
>> > http://www.alteviltech.com/temp/NHDPlus_Zone08.jpg
>> > And here in World Wind:
>> > http://www.alteviltech.com/temp/NHDPlus_Zone08_WW.jpg
>> >
>> > Here is what I use in my WW XML file:
>> >
>> > <WMSAccessor>
>> >
>> > <ServerGetMapUrl>http://localhost:8080/geoserver/wms</ServerGetMapUrl>
>> > <ServiceName>WMS</ServiceName>
>> > <Version>1.0.0</Version>
>> > <ImageFormat>image/png</ImageFormat>
>> > <WMSLayerName>NHDWaterbody</WMSLayerName>
>> > <UseTransparency>true</UseTransparency>
>> > <Opacity>170</Opacity>
>> >
>> > <ServerLogoFilePath>add-ons\sdss\sdss\sdss.png</ServerLogoFilePath>
>> > </WMSAccessor>
>> >
>> > On 6/14/06, Brent Owens <brentowens@anonymised.com> wrote:
>> >> Hi Chad,
>> >>
>> >> What output format are you requesting? If you request gif or jpeg,
>> you
>> >> will get poor or no transparency. If you use PNG
>> (format=image/png) then
>> >> you will get great transparency.
>> >>
>> >> Brent Owens
>> >> (The Open Planning Project)
>> >>
>> >> Chad Zimmerman wrote:
>> >> > Ok, I have a shapefile I an serving into NASA World Wind. I
>> have it
>> >> > loading fine but I am getting black where there is no data to show.
>> >> >
>> >> > I have not come across anything the explains what I would have
>> to do
>> >> > to make the black transparent.
>> >> >
>> >> > Any pointers or suggestions?
>> >> >
>> >>
>> >
>>
>