Clinton Gladstone <[email protected]> writes:

> On Thu, Aug 13, 2009 at 8:52 PM, Greg Troxel<[email protected]> wrote:
>
>> I am finding routing totally broken in Massachusetts; routes (etrex
>> vista hcx) are computed apparently using the basemap.  I have not tested
>> enough to figure out why.
>
> Which extract are you using (geofabrik, cloudmade?), and what command
> line options?

I am using the cloudmade extract from:

  http://downloads.cloudmade.com/north_america/united_states/massachusetts

except now 12 august is available and I used 5 august.  But it seems to
be something about the data, not a bad extract - I think cloudmade's
extracts are just fine.

I most recently built with all 6 NE states (conn, ri, mass, vermont, new
hampshire, maine) all together, invoking the script 'do-mkgmap' which
follows as something like

$ do-mkgmap *.osm.bz2

where I had symlinks for all 6 state .osm.bz2 in the directory where I
invoked it, and have symlinks for splitter and mkgmap to jars I built
with ant.

I usually compute routes in mass, e.g. to work when driving there to see
what happens, and they seem to use the basemap.  I wondered if it was
mass specific, so I picked a random place in vermont, and asked my etrex
for a route.  It got me onto 2W which is sensible, and then in vt seemed
very sensible, but getting to 2 was by teleporting to a major highway,
not using local roads, so I think it's using the basemap in Mass and
then OSM data in Vermont.

In OSM, Mass is very different from the other states.  We have massgis
data and they have tiger.  massgis data is much better in most (all?)
respects.  It also has a ton of points at curvy sections of roads and
parcels, rather than tiger's "nodes are a scarce resources; use only as
many as you need to get close enough" ethic (which has some merit!), so
I wouldn't be surprised if it provokes more issues.  I do get a few
warnings about remaining short arcs, but there are only about 5 of them.

Also my test map (in script as well) works on the garmin but crashes
roadtrip.

All of this is on mac 10.5.x with java 1.6 installed, and I ran the most
recent build wednesday night.

Thanks for looking at this.


----------------------------------------
#!/bin/sh

cd $HOME/OSM || exit 1

# rm all img/tdb/etc.
rm -f *.img *.tdb

INPUT=$*

## SPLIT INPUT MAPS
if [ "$INPUT" != "" -o ! -f template.args ]; then
    rm -f 63*.osm.gz

    if [ "$INPUT" = "" ]; then
        INPUT=`ls *.osm.bz2`
    fi

    rm -f areas.list template.args*
    echo "SPLITTING $INPUT:"
    time \
    java \
        -enableassertions \
        -Xmx2000m \
        -jar splitter.jar \
        --max-nodes=1600000 \
        $INPUT \
        > OUT.01.splitter 2>&1

    cp -pf template.args template.args.orig
    ed template.args <<EOF
g/^description:/d
w
EOF
fi

## BUILD MAPS
echo "BUILDING:"
time \
java \
    -enableassertions \
    -Xmx2048m \
    -jar mkgmap.jar \
    --description="OSM_gdt" \
    --country-abbr="US" \
    --country-name="United States" \
    --region-abbr="MA" \
    --region-name="Massachusetts" \
    --series-name="OSM_gdt_series" \
    --family-id=401 \
    --family-name="OSM_gdt_family" \
    --product-id=13 \
    --series-name="OSM_gdt_series" \
    --area-name="OSM_gdt_area" \
    --tdbfile \
    --remove-short-arcs=6 \
    --add-pois-to-areas \
    --route \
    -c template.args \
    --gmapsupp \
    > OUT.02.mkgmap 2>&1

echo OPTIONS not used: \
    --overview-mapname=63240000 - test default claim \
    --ignore-osm-bounds \

## PREPARE GMAPI FORMAT FOR ROADMAP
mkdir -p GMAPI
echo "GMAPI:"
time \
/Users/gdt/SOFTWARE/GMAPIBUILDER/gmapi-builder/gmapi-builder.py \
    -o GMAPI \
    -t 63240000.tdb \
    -b 63240000.img \
    -v 6324*.img \
    > OUT.03.gmapi 2>&1

echo "test-map:all-elements"
export BASE_LAT=42.0
export BASE_LONG=-70.0
time \
java \
    -enableassertions \
    -Xmx2048m \
    -jar mkgmap.jar \
    --overview-mapname=63500000 \
    --mapname=63500001 \
    --description="OSM_test" \
    --country-abbr="US" \
    --country-name="United States" \
    --region-abbr="MA" \
    --region-name="Massachusetts" \
    --series-name="OSM_test_series" \
    --family-id=402 \
    --family-name="OSM_test_family" \
    --product-id=14 \
    --series-name="OSM_test_series" \
    --area-name="OSM_test_area" \
    --tdbfile \
    test-map:all-elements
    > OUT.04.mkgmap 2>&1

mkdir -p GMAPI-TEST
echo "GMAPI-TEST:"
time \
/Users/gdt/SOFTWARE/GMAPIBUILDER/gmapi-builder/gmapi-builder.py \
    -o GMAPI-TEST \
    -t 63500000.tdb \
    -b 63500000.img \
    -v 6350*.img \
    > OUT.05.gmapi-test 2>&1

Attachment: pgpm6IU6YIdGe.pgp
Description: PGP signature

_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to