Tables with the same name in different schemas do not show correctly
--------------------------------------------------------------------

                 Key: UDIG-1776
                 URL: https://jira.codehaus.org/browse/UDIG-1776
             Project: uDIG
          Issue Type: Bug
          Components: application, catalog, metadata and search
    Affects Versions: UDIG 1.2.2, UDIG 1.2.1, UDIG 1.2.0
         Environment: Mac OSX, PostgreSQL 9.0, PostGIS 1.5.1
            Reporter: Hugo Peixoto


I created two schemas with a single table each, both tables with the same name.
When I drop them from the catalog to the layers thing, both layers show the 
same data.

Here's a database snippet that reproduces the problem:

Cyclos:~ hpeixoto$ createdb udig_test --template=template0 --encoding=UTF-8
Cyclos:~ hpeixoto$ psql udig_test -f 
/usr/local/share/postgresql/contrib/postgis-1.5/postgis.sql 
Cyclos:~ hpeixoto$ psql udig_test -f 
/usr/local/share/postgresql/contrib/postgis-1.5/spatial_ref_sys.sql 


CREATE SCHEMA first;
CREATE SCHEMA second;

CREATE TABLE first.sample (id BIGINT PRIMARY KEY);
CREATE TABLE second.sample (id BIGINT PRIMARY KEY);

SELECT AddGeometryColumn('first', 'sample', 'the_geom', '4326', 'POINT', 2);
SELECT AddGeometryColumn('second', 'sample', 'the_geom', '4326', 'POINT', 2);

INSERT INTO first.sample (id, the_geom) VALUES(1, ST_SetSRID(ST_Point(0, 0), 
4326));
INSERT INTO first.sample (id, the_geom) VALUES(2, ST_SetSRID(ST_Point(10, 10), 
4326));
INSERT INTO second.sample (id, the_geom) VALUES(1, ST_SetSRID(ST_Point(0, 10), 
4326));
INSERT INTO second.sample (id, the_geom) VALUES(2, ST_SetSRID(ST_Point(10, 0), 
4326));



When I enable both layers, I expected to see four points forming a square.
Instead, I only see two points forming a diagonal (the other two points overlap 
with those).


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to