[Talk-ca] shp-to-osm-0.2

Sam Vekemans acrosscanadatrails at gmail.com
Sat Feb 21 05:42:22 GMT 2009


Thanks for forwarding this, you covered the bugs im sure i would have
incountered :-)

it might be good to note that there is no limit to how many lines the
rules.txt can be?

You could announce this on the div &talk list?

Thanks again,
Sam

On 2/20/09, Dale Puch <dale.puch at gmail.com> wrote:
> Ian updated his official version.  Grab that one so you can let him know if
> there are any problems.
>
> Dale
>
> ---------- Forwarded message ----------
> From: Ian Dees <ian.dees at gmail.com>
> Date: Fri, Feb 20, 2009 at 9:25 PM
> Subject: Re: shp-to-osm-0.2
> To: Dale Puch <dale.puch at gmail.com>
>
>
> Dale, I just put up a new release of shp-to-osm:
>
> http://redmine.yellowbkpk.com/projects/list_files/geo
>
> On Fri, Feb 20, 2009 at 7:49 AM, Ian Dees <ian.dees at gmail.com> wrote:
>
>> Thanks for your bug reports and feature requests! I'll have a look at
>> these
>> and probably file all of them as bugs and try to fix them when I release
>> 0.3.
>>
>> It seems like everyone that's using this app tries it while I'm sleeping
>> :).
>>
>>
>> On Fri, Feb 20, 2009 at 4:45 AM, Dale Puch <dale.puch at gmail.com> wrote:
>>
>>> ----Feature:  add a comment to the readme.txt about inserting "-Xmx384M"
>>> as a java command line flag in run.bat and run.sh to improve performance
>>> with larger shp files.  The standard java memory setting choked on a
>>> 14Meg
>>> shp file.
>>>
>>> Dale
>>>
>>>
>>> On Fri, Feb 20, 2009 at 9:09 AM, Dale Puch <dale.puch at gmail.com> wrote:
>>>
>>>> An update for the lack of tags.
>>>>
>>>> I downloaded the svn, and geotools-2.5.1 and managed to get the it to
>>>> run
>>>> in the eclipse IDE.  It output the OSM file ok, even though I don't
>>>> think I
>>>> added the geotools lib the correct way (all the jar files) based on the
>>>> console warnings.
>>>>
>>>> So the latest SVN code seems like it works right, you just havn't
>>>> released it yet :)
>>>>
>>>>
>>>>
>>>> On Fri, Feb 20, 2009 at 6:46 AM, Dale Puch <dale.puch at gmail.com> wrote:
>>>>
>>>>> I downloaded and tried playing with shp-to-osm-0.2.zip and thought I'd
>>>>> report soem bugs? and possible improvments.
>>>>> I like what you have done so far.
>>>>>
>>>>>
>>>>> ----Feature:
>>>>> http://redmine.yellowbkpk.com/repositories/entry/geo/trunk/shp-to-osm/src/Main.java
>>>>> line 95
>>>>>
>>>>> throw new IllegalArgumentException("Could not parse line " + lineCount
>>>>> + ". Had " + splits.length + " pieces and expected 5.");
>>>>>
>>>>>   this error is output on a blank line in notes.txt as well.  You
>>>>> might
>>>>> check and skip blank lines and/or mention that the error is due to a
>>>>> problem
>>>>> with notes.txt and not the shp file.
>>>>>
>>>>> ----Feature: It might be nice to give notes.txt a "header" line above
>>>>> the actual entries.  A catalog of notes.txt files for various shp file
>>>>> sources as they are processed would also be nice.
>>>>> #Type,SrcKey,SrcValue,TargetKey,TargetValue
>>>>>
>>>>> ----Bug: I see -t as a 4th argument is an undocumented (in the zipped
>>>>> 0.2 package) feature to keep only tagged ways.  I see you updated the
>>>>> readme
>>>>> in the repository.
>>>>>    a 4th paramater is needed in the sample run.bat and run.sh  and the
>>>>> readme.txt sample
>>>>>
>>>>> ----Bug: run.sh calls shp-to-osm-0.1 not 0.2  the same with the
>>>>> readme.txt file example
>>>>>
>>>>> ----Bug: Readme (even in repository) says nodes are still not
>>>>> supported,
>>>>> but changelog indicates it has beed implimented in 0.3 (not released
>>>>> yet?)
>>>>>
>>>>> ----Bug: In trying this out, I was able to convert line and poly
>>>>> elements, but no tagging at all was done regardless of the ruleset.
>>>>> well there are some <tag k="name" v=""/> but others have no <tag k....
>>>>> at all
>>>>> Specifically tiger 2008 data
>>>>> ftp://ftp2.census.gov/geo/tiger/TIGER2008/12_FLORIDA/12095_Orange_County/tl_2008_12095_areawater.zip
>>>>> using these rules:
>>>>> outer,MTFCC,H3010,natural,river
>>>>> outer,MTFCC,H2030,natural,lake
>>>>> outer,MTFCC,H2025,natural,marsh
>>>>> outer,FULLNAME,,name,-
>>>>> line,FULLNAME,,name,-
>>>>> line,MTFCC,H3020,waterway,ditch
>>>>> line,MTFCC,H3010,natural,river
>>>>>
>>>>> Same thing happens if I use outer,FULLNAME,,name, without the ending
>>>>> dash
>>>>> Same thing if I use the -t as a 4th argument as well
>>>>>
>>>>> Sam Vekemans has mentioned similar problems with trying to get 0.2
>>>>> working
>>>>>
>>>>> ----Feature: mention the svn address
>>>>> http://svn.yellowbkpk.com/geo/trunk/shp-to-osm/ so people can download
>>>>> a play with the code?
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Dale Puch
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Dale Puch
>>>>
>>>
>>>
>>>
>>> --
>>> Dale Puch
>>>
>>
>>
>
>
>
> --
> Dale Puch
>




More information about the Talk-ca mailing list