[udig-devel] Printing investigation and PostGIS

Jesse Eichar jeichar at refractions.net
Thu Nov 9 10:40:54 PST 2006


Good hunting Sebastien,

I've got the issues down and will be working on it soon.  I have a  
few other issues to address but I will make sure to address this by  
the next release.

Jesse

On 9-Nov-06, at 9:30 AM, sebastien.piau at ingencys.net wrote:

> Hi all,
>
> I have the following problems since RC4 release, and i hope that  
> the RC5 solves them... but no!
>
> 1) Printing problem :
> -------------------
> Does anyone have already try to print a labeled map? In the  
> preview, We can see the labels, but they are not on the printed page.
> During my investigation, I can see that the LabelCache is  
> responsible of Label printing, according to the following rule :  
> "Is there enough place to print the label on the map?"  
> Unfortunately, there are never enought place!!
>
> For example, while displaying map on the screen, I can see that the  
> screen size is 1119*583 (I don't know in which units, I think it is  
> 1/72 inch), so the first label is 6 height and 54 width placed at  
> the followind coordinates : 654,234 => It's OK, the label is  
> displayed! When I try to print it on a sheet of paper, the map size  
> is smaller (502*522), but the (same) label size goes bigger :  
> Height of 50, Width of 440 at the coordinates 3100,2167 !!! Of  
> course, according to this, the label have not enough place and it  
> is not displayed!
>
> Could you verify that please?
>
> Jesse? Are you still here? ;o)
>
> 2) PostGIS:
> -----------
> With the RC4, i can load some geometrics data from postgis without  
> specify any CRS (the geometry_columns table contains -1 for all  
> SRIDs), then if i modify the layer's and the map's CRS in the same  
> way, data are allways visible! But the RC5 seems to be more  
> restrictive : If i modify the layer's and map's CRS, i cannot see  
> the Postgis data! I can only view the postGIS data in the default  
> CRS (WGS84?).
>
> If I try to change the SRID in the geometry_columns table, I obtain  
> the following message :
> 9 nov. 2006 17:47:41 org.geotools.data.jdbc.JDBC1DataStore  
> executeQuery
> GRAVE: Error Performing SQL query: SELECT "gid", encode(AsBinary 
> (force_2d("the_geom"), 'XDR'),'base64') FROM  
> "public"."georoute500_troncon_route_dep" WHERE "the_geom" &&  
> GeometryFromText('POLYGON ((517901.17217599996 2384050,  
> 517901.17217599996 2385010, 519165 2385010, 519165 2384050,  
> 517901.17217599996 2384050))', 27562)
> org.postgresql.util.PSQLException: ERROR: Operation on two  
> geometries with different SRIDs
>
> Maybe, the "the_geom" data are not encoding with the right CRS?  
> What do you think of that?
>
>
> As usual : does anyone can help me, please?
>
> Cheers,
>
> Sébastien
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.refractions.net/pipermail/udig-devel/attachments/20061109/f58a10f9/attachment.html


More information about the udig-devel mailing list