Hello,

I have a weird behavior and before I investigate further, I wanted to
ask if I'm doing something obviously wrong.

I am trying to display layers from various sources in a JMapPane.

- one layer is the NaturalEarth countries shapefile
- the other layer is a custom PostGIS table (with more than one
geometry) which has been created via GeoTools (with feature type
builder etc.)

Both layers are using a WGS84 projection.

The problem is that when I display both layers (first the shapefile as
background, then the PostGIS layer) the PostGIS layer has its
coordinates inverted.
(this layer should display various tracks across Eastern Europe, but
is then in the middle of Saudi Arabia...)

If I load the PostGIS layer in QGIS, it is displayed properly.
What is really weird, is that if I only load the PostGIS layer in the
JMapPane (commenting out the code loading the shapefile), it is also
displayed properly.

Does it ring a bell?

Is it possible to combine shapefiles and PostGIS layers?
Or something should be specified explicitly? (like coordinate order)

Thanks in advance for your help!

Mathieu

------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to