Taking this discussion to the user list...

It looks like by "open" you mean draw using a MapContext? Well a couple 
of things to try:
- Use ShapefileDataStore.forceCRS on your shapefile before drawing
- Skip CRS as it is only used to set up the MathTransform ... set up 
your renderer using a MathTransform of your own making

Jody
> Hi ,
>
> When I try to open a shapefile, some files not open, and this error 
> occurs :
>
> java.io.IOException: CRS of this map context is null. Unable to get 
> bounds.
>         at 
> org.geotools.map.DefaultMapContext.getLayerBounds(DefaultMapContext.java:543)
>
> I realized that the shapefile that no contains .PRJ file can do this 
> error .
>
> Someone can help me ?
>
>
>
> ------------------------------------------------------------------------
> Receba GRÁTIS as mensagens do Messenger no seu celular quando você 
> estiver offline. Conheça o MSN Mobile! Crie já o seu! 
> <http://mobile.live.com/signup/signup2.aspx?lc=pt-br>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> Don't miss this year's exciting event. There's still time to save $100. 
> Use priority code J8TL2D2. 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> ------------------------------------------------------------------------
>
> _______________________________________________
> Geotools-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>   


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to