Re: [Geoserver-users] Points drawing in wrong location when bbox crosses dateline

2012-07-05 Thread Joshua M. Thompson
 Can you open a ticket on jira.codehaus.org? If you could also attach the
 dataset
 and style it would help making sure what you see really gets fixed.

http://jira.codehaus.org/browse/GEOS-5213

I took some time this morning to reproduce the problem on my personal
machine using fresh Geoserver install and a PostGIS database. The
original shape files and the shp2pgsql output are attached to the
ticket. This should make it easier for you to reproduce without
needing an Oracle server.

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Points drawing in wrong location when bbox crosses dateline

2012-07-03 Thread Joshua M. Thompson
I'm seeing some interesting behavior in GeoServer 2.1.4. I've got a
simple point later that has about 2,900 points that represent world
cities, stored in an Oracle Spatial table. I put a simple style on it
to draw red dots with city name labels. The front end webapp is an
OpenLayers 2.12 application.

If I center my map around the dateline this is what I see:

http://imgur.com/JaoVS

In this image OL requested a BBOX of
-257.87109375,-20.478515625,-71.19140625,79.189453125. Note that
labels appear to be drawing in the correct locations but the points
for cities in the Asia-Pacific area (the ones beyond -180 longitude)
are all clustered in the upper-left corner of the image.

Has anyone seen this behavior before? I want to make sure this isn't a
known issue or a configuration problem before I submit a ticket.

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Points drawing in wrong location when bbox crosses dateline

2012-07-03 Thread Andrea Aime
On Tue, Jul 3, 2012 at 7:50 PM, Joshua M. Thompson 
joshua.thomp...@gmail.com wrote:

 I'm seeing some interesting behavior in GeoServer 2.1.4. I've got a
 simple point later that has about 2,900 points that represent world
 cities, stored in an Oracle Spatial table. I put a simple style on it
 to draw red dots with city name labels. The front end webapp is an
 OpenLayers 2.12 application.

 If I center my map around the dateline this is what I see:

 http://imgur.com/JaoVS

 In this image OL requested a BBOX of
 -257.87109375,-20.478515625,-71.19140625,79.189453125. Note that
 labels appear to be drawing in the correct locations but the points
 for cities in the Asia-Pacific area (the ones beyond -180 longitude)
 are all clustered in the upper-left corner of the image.

 Has anyone seen this behavior before? I want to make sure this isn't a
 known issue or a configuration problem before I submit a ticket.


I've seen this ages ago and the issue was fixed, I'm not aware of any
recent changes that might have made it come back in 2.1.4

Is this data source specific? Or something you can reproduce using
a shapefile too?

Cheers
Andrea

-- 
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:  +39 0584 962313
mob:+39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Points drawing in wrong location when bbox crosses dateline

2012-07-03 Thread Joshua M. Thompson
On Tue, Jul 3, 2012 at 3:53 PM, Andrea Aime
andrea.a...@geo-solutions.it wrote:
 On Tue, Jul 3, 2012 at 7:50 PM, Joshua M. Thompson
 joshua.thomp...@gmail.com wrote:

 I'm seeing some interesting behavior in GeoServer 2.1.4. I've got a
 simple point later that has about 2,900 points that represent world
 cities, stored in an Oracle Spatial table. I put a simple style on it
 to draw red dots with city name labels. The front end webapp is an
 OpenLayers 2.12 application.

 If I center my map around the dateline this is what I see:

 http://imgur.com/JaoVS

 In this image OL requested a BBOX of
 -257.87109375,-20.478515625,-71.19140625,79.189453125. Note that
 labels appear to be drawing in the correct locations but the points
 for cities in the Asia-Pacific area (the ones beyond -180 longitude)
 are all clustered in the upper-left corner of the image.

 Has anyone seen this behavior before? I want to make sure this isn't a
 known issue or a configuration problem before I submit a ticket.


 I've seen this ages ago and the issue was fixed, I'm not aware of any
 recent changes that might have made it come back in 2.1.4

 Is this data source specific? Or something you can reproduce using
 a shapefile too?

I loaded up another dataset that I also had available as a shapefile,
so that I could compare the same data in both data sources. I compared
both by using the OL layer preview using the bbox and height of my
original broken image.

WIth the data in shapeflie format, nothing crosses the dateline --
points or labels. It behaves pretty much as things did before the
advanced projection handling support was added.

With the same data in the Oracle table I get the same behavior as
before: the points west of -180 lon are all clustered in the upper
left corner, but labels are in the correct spot. In addition, if I
click near the label, where a point *should* be, then the resulting
GetFeatureInfo query returns the correct result. So Geoserver
certainly seems to be pulling the correct features from the DB, and it
seems to know  where on the image they should be placed. They just
seem to render in the wrong spot.

As far as I can tell lines and polygons don't have this issue, in
either shapefile or Oracle. It seems to be confined to points...or
more likely to PointSymbolizers.

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Points drawing in wrong location when bbox crosses dateline

2012-07-03 Thread Joshua M. Thompson
 As far as I can tell lines and polygons don't have this issue, in
 either shapefile or Oracle. It seems to be confined to points...or
 more likely to PointSymbolizers.

After I sent this it occurs to me I didn't test a polygon data source
with a point renderer. If I take a known working polygon data set and
switch to the default 'point' renderer then I get the broken behavior.
Polygons east of -180 render points at the polygon centerpoints. West
of -180 they're all in the upper left corner of the image. So it
certainly looks like a PointSymbolizer error.

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users