On 13/01/15 10:21, Laurent Gregoire wrote:
> On 12/01/15 21:51, Phoebe M wrote:
>> It appears that when the OTP server is run from an IDE, LIsochrone works
>> perfectly. The API request returns a GeoJSON (with all polygons included).
>> But when run from the command line, the same API request returns a
>> shapefile (with no polygons).
>
> Indeed the API can return the isochrone in two format: GeoJSON and
> Shapefile. But apparently the Shapefile generation seems to be broken
> indeed, it may be due to a recent upgrade of GeoTools (I've seen similar
> complain on the web). I'll check that out. In the meantime, if you can
> use GeoJSON that's fine.
There was a bug indeed in the shapefile generation, it could have been
caused by an upgrade of GeoTools library. Isochrone shapefiles are not
use that often, you are the first one to stumble upon this issue. I've
made a fix and submitted a PR here:
https://github.com/opentripplanner/OpenTripPlanner/pull/1688
HTH,
--Laurent