MASON-INTEREST-L Archives

March 2013

MASON-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Proportional Font
Show HTML Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Luís de Sousa <[log in to unmask]>
Reply To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Date:
Thu, 14 Mar 2013 22:09:55 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (40 lines)
Hi again Mark,

As I wrote initially this isn't really serious, I just created some
features by hand with the POINT type. If, after finishing your thesis,
you wish to revisit this issue you can try out the free data from
North Carolina:

http://grass.osgeo.org/sampledata/north_carolina/nc_shape.tar.gz

Regards,

Luís

On 14 March 2013 20:41, Mark Coletti <[log in to unmask]> wrote:
> Wikipedia, of all things, has the ESRI shape file spec:
> http://en.wikipedia.org/wiki/Shapefile#Shapefile_shape_format_.28.shp.29
>
> According to that there should be *four* values for POINTZ types -- not
> three nor two.
>
> So, try splicing in this code round line 448 and see if it gets you any joy:
>
>                 else if (recordType == POINTZ)
>                 {
>                     Coordinate pt = new Coordinate(byteBuf.getDouble(),
> byteBuf.getDouble(), byteBuf.getDouble());
>
>                     // The next byte is the "measure" value which we don't
> use;
>                     // but read in anyway to check with debugger.
>                     double measure = byteBuf.getDouble();
>                     geom = geomFactory.createPoint(pt);
>                 } // ... rest of else if block
>
> You might have to update isSupported() to let it know that POINTZ types are
> OK.
> --
> [log in to unmask]
>

ATOM RSS1 RSS2