I started the project about 2 years ago, I didn't know about GDAL. At
this point, since the code works, why change it?

Also, in this class, I use the TopologyPreservingSimplifier utility,
which is much more elegant than my previous method off rounding a
couple of digits off the end:

https://github.com/dartmanx/mapmaker/blob/master/src/main/java/org/jason/mapmaker/server/service/ShapefileServiceImpl.java


On Tue, Oct 23, 2012 at 7:08 AM, Imran Rajjad <[email protected]> wrote:
> If its just about only reading Shape files.. GDAL`s java bindings
> might be less hassle
>
> regards,
> Imran
>
> On Tue, Oct 23, 2012 at 4:04 PM, Sugandha Naolekar
> <[email protected]> wrote:
>> @jason Guess, u forgot to attach the code in the mail! :)
>>
>> --
>> Thanks & Regards,
>> Sugandha Naolekar
>>
>>
>>
>> On Tue, Oct 23, 2012 at 4:30 PM, Jason Ferguson <[email protected]>
>> wrote:
>>>
>>> Sugandha,
>>>
>>> See if the code here can assist you in reading Shapefile, especially
>>> the processShapefile() method. Some if it will not be relevant, as the
>>> main purpose of this class is to take a Shapefile and persist the
>>> borders to a MySQL database.
>>>
>>> Also, I made some changes last night that I didn't push that improved
>>> the efficiency of persisting the objects significantly.
>>>
>>> Jason
>>>
>>> On Tue, Oct 23, 2012 at 6:39 AM, Sugandha Naolekar
>>> <[email protected]> wrote:
>>> > Hello Micheal!
>>> >
>>> > Thanks for the guidance. I shall look into it again and try to build the
>>> > project fresh using Maven.
>>> >
>>> > --
>>> > Thanks & Regards,
>>> > Sugandha Naolekar
>>> >
>>> >
>>> >
>>> >
>>> > On Tue, Oct 23, 2012 at 4:04 PM, Michael Bedward
>>> > <[email protected]>
>>> > wrote:
>>> >>
>>> >> Hello Sugandha,
>>> >>
>>> >> The links in your email will be seen as spam by many filters - please
>>> >> don't include them in posts to this list.
>>> >>
>>> >> > I wish to write a simple program which would read the Shapefiles. Now
>>> >> > for
>>> >> > that matter, I created a simple java project in eclipse and added the
>>> >> > jars
>>> >> > of geotools.zip in the build path of it. But, I am not able to import
>>> >> > the
>>> >> > jars relevant to the program.
>>> >> > I dont want to go the Maven build way. Simply configuring the
>>> >> > necessary
>>> >> > jars
>>> >> > in the build path of a project should work. But it is not. Can I
>>> >> > please
>>> >> > get
>>> >> > a stepwise instruction to make this entire thing work?
>>> >>
>>> >> I'm sorry, but using GeoTools without Maven is almost certain to lead
>>> >> to problems because of the complex graph of dependencies involved. You
>>> >> will find many messages in the list archive where people have tried to
>>> >> avoid Maven and eventually given up.
>>> >>
>>> >> If you definitely can't, or won't, use Maven I recommend that you look
>>> >> at another framework such as OpenJUMP which uses Ant as its build
>>> >> tool:
>>> >> http://www.openjump.org/
>>> >>
>>> >> > Also, geoserver library is used for what? when will I require it? For
>>> >> > performing all the GIS operations, all I require is geotools.zip.
>>> >> > Ain't
>>> >> > dat?
>>> >>
>>> >> If you are writing desktop programs to read/write shapefiles, GeoTools
>>> >> is all you need. Information about GeoServer (which is built on
>>> >> GeoTools) can be found at geoserver.org
>>> >>
>>> >> Michael
>>> >
>>> >
>>> >
>>> >
>>> > ------------------------------------------------------------------------------
>>> > Everyone hates slow websites. So do we.
>>> > Make your web apps faster with AppDynamics
>>> > Download AppDynamics Lite for free today:
>>> > http://p.sf.net/sfu/appdyn_sfd2d_oct
>>> > _______________________________________________
>>> > GeoTools-GT2-Users mailing list
>>> > [email protected]
>>> > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>>> >
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_sfd2d_oct
>> _______________________________________________
>> GeoTools-GT2-Users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>>
>
>
>
> --
> I.R

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to