I'm working on a little tool that creates a grid in which each cell of
the grid is a polygon. You can create the grid with any rectangular
dimensions, specify the number of columns and rows, and also a
rotation. The tool also allows you to create attributes for each cell
based on the row and column number.

I'm using JTS and OpenJUMP Features inside of the program.

I'd like to find the easiest way to export the features and geometries
as an ESRI Shapefile. I was hoping there would a single method that I
could simply pass a FeatureCollection and String representing the path
and file name. I think that would be the write method of the
ShapefileWriter class.

Is this correct? Is there a newer class/method that I should be using?

I'm really looking for the easiest way to get from a FeatureCollection
to a Shapefile. I want to make sure I'm using the appropriate code.

Thanks for any help.

The Sunburned Surveyor

P.S. - I was just "scratching my own itch" with this tool, but when I
get the tool finished, I'll release it under the GPL. It will be
pluggable, so you can add your own attribute factories or support for
output formats besides Shapefiles.

Does anyone else know of third-party apps that are using OpenJUMP code
as a library? Just curious...

-------------------------------------------------------------------------
SF.Net email is sponsored by: 
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to