Hi everyone,

I have been following some of the geotools tutorials and I am now  
trying to implement my own DataStore. The file I need to read contains  
coordinates of various cost lines.
The format is the following:
total_number_of_lines
number_of_points_line1
point1_x point1_y
point2_x point2_y
number_of_points_line2
point3_x point3_y
point4_x point4_y

I have successfully created the data store and the features reader.

I have run the program 
http://docs.codehaus.org/display/GEOTDOC/04+How+to+Read+a+Shapefile 
  with my own data store and everything works perfectly.

I am now trying the ShapeLab tutorial with my data store 
(http://docs.codehaus.org/display/GEOTDOC/09+ShapeLab 
), but I get a null pointer exception when trying to access  
map.getLayerBounds().
The only layer of my map is build like this :  
map.addLayer(featureSource, style).

It's true I never explicitely defined the layer boundaries...

What should I do ?

Thanks


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to