BoundingBox discrepancy

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

BoundingBox discrepancy

Eli Dylan Lorimer
Hello,

I was wondering if anyone might know why my boundingboxes differ for  
the following 2 WFS requests:


http://localhost:8080/geoserver/wfs/GetCapabilities
.
.
.
<FeatureType>
<Name>stvu:waypoints_2d</Name>
<Title>waypoints_2d_Type</Title>
<Abstract>Generated from localPostgis</Abstract>
<Keywords>localPostgis waypoints_2d</Keywords>
<SRS>EPSG:4326</SRS>
<LatLongBoundingBox minx="-2.18033504486084" miny="44.5143013000488"  
maxx="10.924690246582" maxy="53.008430480957"/>
</FeatureType>


vs.

http://localhost:8080/geoserver/wfs?
request=GetFeature&typename=stvu:waypoints_2d
.
.
.
<gml:boundedBy>
<gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
<gml:coordinates decimal="." cs="," ts=" ">-3.03163004,51.38572693  
0.28876001,53.80709076</gml:coordinates>
</gml:Box>
</gml:boundedBy>
.
.
.

Any ideas would be greatly appreciated. I'm attempting to  
programmatically get my BB using GeoTools on the client side and the  
BB I am able to get is the incorrect one in the 2nd example above.

cheers.
./dylan


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

Re: BoundingBox discrepancy

Chris Holmes-2
Hrm...this looks like a nasty bug, will have to dig into how eah is making
the request.  Justin, did you end up changing how postgis does it's bbox
stuff?  Any possible insight into this?

Chris

On Tue, 21 Jun 2005, Eli Dylan Lorimer wrote:

> Hello,
>
> I was wondering if anyone might know why my boundingboxes differ for  
> the following 2 WFS requests:
>
>
> http://localhost:8080/geoserver/wfs/GetCapabilities
> .
> .
> .
> <FeatureType>
> <Name>stvu:waypoints_2d</Name>
> <Title>waypoints_2d_Type</Title>
> <Abstract>Generated from localPostgis</Abstract>
> <Keywords>localPostgis waypoints_2d</Keywords>
> <SRS>EPSG:4326</SRS>
> <LatLongBoundingBox minx="-2.18033504486084" miny="44.5143013000488"  
> maxx="10.924690246582" maxy="53.008430480957"/>
> </FeatureType>
>
>
> vs.
>
> http://localhost:8080/geoserver/wfs?
> request=GetFeature&typename=stvu:waypoints_2d
> .
> .
> .
> <gml:boundedBy>
> <gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
> <gml:coordinates decimal="." cs="," ts=" ">-3.03163004,51.38572693  
> 0.28876001,53.80709076</gml:coordinates>
> </gml:Box>
> </gml:boundedBy>
> .
> .
> .
>
> Any ideas would be greatly appreciated. I'm attempting to  
> programmatically get my BB using GeoTools on the client side and the  
> BB I am able to get is the incorrect one in the 2nd example above.
>
> cheers.
> ./dylan
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> Geoserver-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>

--



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

Re: BoundingBox discrepancy

Justin Deoliveira-5
Sorry, I never actually ended up changing postgis.

Justin

Chris Holmes wrote:

> Hrm...this looks like a nasty bug, will have to dig into how eah is making
> the request.  Justin, did you end up changing how postgis does it's bbox
> stuff?  Any possible insight into this?
>
> Chris
>
> On Tue, 21 Jun 2005, Eli Dylan Lorimer wrote:
>
>
>>Hello,
>>
>>I was wondering if anyone might know why my boundingboxes differ for  
>>the following 2 WFS requests:
>>
>>
>>http://localhost:8080/geoserver/wfs/GetCapabilities
>>.
>>.
>>.
>><FeatureType>
>><Name>stvu:waypoints_2d</Name>
>><Title>waypoints_2d_Type</Title>
>><Abstract>Generated from localPostgis</Abstract>
>><Keywords>localPostgis waypoints_2d</Keywords>
>><SRS>EPSG:4326</SRS>
>><LatLongBoundingBox minx="-2.18033504486084" miny="44.5143013000488"  
>>maxx="10.924690246582" maxy="53.008430480957"/>
>></FeatureType>
>>
>>
>>vs.
>>
>>http://localhost:8080/geoserver/wfs?
>>request=GetFeature&typename=stvu:waypoints_2d
>>.
>>.
>>.
>><gml:boundedBy>
>><gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
>><gml:coordinates decimal="." cs="," ts=" ">-3.03163004,51.38572693  
>>0.28876001,53.80709076</gml:coordinates>
>></gml:Box>
>></gml:boundedBy>
>>.
>>.
>>.
>>
>>Any ideas would be greatly appreciated. I'm attempting to  
>>programmatically get my BB using GeoTools on the client side and the  
>>BB I am able to get is the incorrect one in the 2nd example above.
>>
>>cheers.
>>./dylan
>>
>>
>>-------------------------------------------------------
>>SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
>>from IBM. Find simple to follow Roadmaps, straightforward articles,
>>informative Webcasts and more! Get everything you need to get up to
>>speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
>>_______________________________________________
>>Geoserver-users mailing list
>>[hidden email]
>>https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>
>


--
Justin Deoliveira
Refractions Research Inc.
Email: [hidden email]
Phone: 250.885.4387


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

User-defined colormap for raster layers?

Alex Petkov

I am making an 8-bit grayscale geotiff from scalar data, with pixel values
in the range 0-255.

Is it possible to define a colormap (like in the SLD spec document) and use
it to display color values in RGB for a grayscale raster?

So far I am trying with the colormap below, but I am still getting
grayscale image as the rendered output:
============================================

                        <ColorMap>
                               <ColorMapEntry color="#000000"
quantity="0"/>
                               <ColorMapEntry color="#00fa00"
quantity="50"/>
                               <ColorMapEntry color="#14f500"
quantity="75"/>
                               <ColorMapEntry color="#28f502"
quantity="100"/>
                               <ColorMapEntry color="#3cf505"
quantity="110"/>
                               <ColorMapEntry color="#50f50a"
quantity="125"/>
                               <ColorMapEntry color="#64f014"
quantity="130"/>
                               <ColorMapEntry color="#7deb32"
quantity="135"/>
                               <ColorMapEntry color="#78c818"
quantity="165"/>
                               <ColorMapEntry color="#38840c"
quantity="170"/>
                               <ColorMapEntry color="#2c4b04"
quantity="190"/>
                               <ColorMapEntry color="#ffff00"
quantity="200"/>
                               <ColorMapEntry color="#dcdc00"
quantity="210"/>
                               <ColorMapEntry color="#b47800"
quantity="220"/>
                               <ColorMapEntry color="#c85000"
quantity="225"/>
                               <ColorMapEntry color="#be4100"
quantity="230"/>
                               <ColorMapEntry color="#963000"
quantity="245"/>
                               <ColorMapEntry color="#3c0200"
quantity="250"/>
                               <ColorMapEntry color="#ffffff"
quantity="255"/>
                                              </ColorMap>

=============================================


As always, many thanks:-)

Alex



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users