Re: [Potlatch-dev] Upgrade to fp10 + flex4

2011-06-30 Thread Andy Allan
On Thu, Jun 30, 2011 at 7:06 AM, Frederik Ramm frede...@remote.org wrote:
 Hi,

 On 06/30/11 01:39, Greg Troxel wrote:

 Does this work with gnash?  I have gnash 0.8.9 installed, and I've been
 able to use potlatch1 but not potlatch2.

 As far as I understand, your ability to use gnash is unaffected by this
 change, i.e. you will still be able to use Potlatch 1, and you will still
 not be able to use Potlatch 2.

That's correct. gnash only supports old flash applications written in
ActionScript 2 (e.g. potlatch1). They don't seem to have made much
progress at supporting AS3, since it needs a whole new AVM (AVM2) to
run.

Greg, you want to look at the lightspark project,
http://sourceforge.net/apps/trac/lightspark . It's direct goal is AS3
support, it's under heavy development and is much more likely to
support potlatch2 than gnash ever will. They've implemented a fair
amount of the AS3 language but it's not yet enough to run potlatch2.
We have a tracking bug for this with them at
https://bugs.launchpad.net/lightspark/+bug/629972 . I'd be interested
to see if anyone has any insights as to how close they are to
supporting enough language features for p2 to run, and doubly
interested in anyone who wants to help them with their coding to
achieve that goal.

Cheers,
Andy

___
Potlatch-dev mailing list
Potlatch-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/potlatch-dev


Re: [Potlatch-dev] Upgrade to fp10 + flex4

2011-06-30 Thread Greg Troxel

  Greg, you want to look at the lightspark project,
  http://sourceforge.net/apps/trac/lightspark . It's direct goal is AS3
  support, it's under heavy development and is much more likely to
  support potlatch2 than gnash ever will. They've implemented a fair
  amount of the AS3 language but it's not yet enough to run potlatch2.
  We have a tracking bug for this with them at
  https://bugs.launchpad.net/lightspark/+bug/629972 . I'd be interested
  to see if anyone has any insights as to how close they are to
  supporting enough language features for p2 to run, and doubly
  interested in anyone who wants to help them with their coding to
  achieve that goal.

Thanks - I'm glad there is hope for using potlatch2 without
proprietary/unportable software, and reading the bug it seems perhaps
not even too far away.  I put lightspark on my eventually-in-spare-time
list, and put it on the to-be-packaged list for pkgsrc.


pgpGG6qQB0Mc6.pgp
Description: PGP signature
___
Potlatch-dev mailing list
Potlatch-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/potlatch-dev


Re: [Potlatch-dev] [OpenStreetMap] #3874: Potlatch bug with renaming streets names

2011-06-30 Thread OpenStreetMap
#3874: Potlatch bug with renaming streets names
---+
 Reporter:  M-Rick |   Owner:  potlatch-dev@…
 Type:  defect |  Status:  new   
 Priority:  major  |   Milestone:
Component:  potlatch2  | Version:  2.0   
 Keywords: |  
---+

Comment(by Richard):

 Known (occasional) problem but we don't yet have any steps to reproduce.
 If you can come up with a way of reliably triggering this, we're all ears.

-- 
Ticket URL: https://trac.openstreetmap.org/ticket/3874#comment:3
OpenStreetMap http://www.openstreetmap.org/
OpenStreetMap is a free editable map of the whole world

___
Potlatch-dev mailing list
Potlatch-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/potlatch-dev


Re: [OSM-dev] shp2multipolygon

2011-06-30 Thread André Riedel
There is a python program programm named ogr2osm

http://wiki.openstreetmap.org/wiki/Ogr2osm

It does exactly what you want.

Ciao André

2011/6/30 Anthony o...@inbox.org:
 Does anyone have code to do shapefile to multipolygon (in
 .osm/.pbf/.o5c format)?  What I want is to take a shapefile with
 overlapping boundaries (e.g.
 http://wiki.sharedmap.org/wiki/File:Qgis.png) and convert it into a
 bunch of multipolygons with shared ways.

 I used to have code to do this:
 http://wiki.openstreetmap.org/wiki/User:%E2%A0%A0%E2%A0%81%E2%A0%9D%E2%A0%9E%E2%A0%93%E2%A0%95%E2%A0%9D%E2%A0%BD/SQL
 and 
 http://wiki.openstreetmap.org/wiki/User:%E2%A0%A0%E2%A0%81%E2%A0%9D%E2%A0%9E%E2%A0%93%E2%A0%95%E2%A0%9D%E2%A0%BD/Perl

 But I didn't document it well enough and I forget how it works :).
 And John is having a problem with it in that it only seems to work
 when interior ways are exactly two nodes.

 My understanding is that, as of about a year ago, none of the shp2osm
 programs support multipolygons.  Hopefully this has changed.

 ___
 dev mailing list
 dev@openstreetmap.org
 http://lists.openstreetmap.org/listinfo/dev


___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] shp2multipolygon

2011-06-30 Thread John Smith
On 30 June 2011 23:28, André Riedel riedel.an...@gmail.com wrote:
 There is a python program programm named ogr2osm

 http://wiki.openstreetmap.org/wiki/Ogr2osm

 It does exactly what you want.

My problem is I'm trying to merge 2 shp files into a single
multipolygon osm file.

From these 2 files:

http://www.abs.gov.au/AUSSTATS/subscriber.nsf/log?openagent2923030001poa06aaust.zip2923.0.30.001Data%20Cubes33A877E7086CA98FCA25731A00217F820200617.07.2007Latest
http://www.abs.gov.au/AUSSTATS/subscriber.nsf/log?openagent2923030001ssc06aaust.zip2923.0.30.001Data%20Cubes2E96C5C5F3054EDFCA25731A002140DD0200617.07.2007Latest

You get 2 shp files:

POA06aAUST_region.shp which contains a set of postcode boundaries and
SSC06aAUST_region.shp which contains a set of suburb boundaries, both
files have some common boundaries and the SQL stuff that Anthony did
previously does work, but it creates excessive amounts of ways, on a
pair of 500k test files there was something like 65,000 nodes and
67,000 ways.

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] shp2multipolygon

2011-06-30 Thread Ian Dees
I wrote my java shp-to-osm specifically to deal with multipolygons. Give it
a try ands see if it does shat you want.
On Jun 30, 2011 8:24 AM, Anthony o...@inbox.org wrote:
 Does anyone have code to do shapefile to multipolygon (in
 .osm/.pbf/.o5c format)? What I want is to take a shapefile with
 overlapping boundaries (e.g.
 http://wiki.sharedmap.org/wiki/File:Qgis.png) and convert it into a
 bunch of multipolygons with shared ways.

 I used to have code to do this:

http://wiki.openstreetmap.org/wiki/User:%E2%A0%A0%E2%A0%81%E2%A0%9D%E2%A0%9E%E2%A0%93%E2%A0%95%E2%A0%9D%E2%A0%BD/SQL
 and
http://wiki.openstreetmap.org/wiki/User:%E2%A0%A0%E2%A0%81%E2%A0%9D%E2%A0%9E%E2%A0%93%E2%A0%95%E2%A0%9D%E2%A0%BD/Perl

 But I didn't document it well enough and I forget how it works :).
 And John is having a problem with it in that it only seems to work
 when interior ways are exactly two nodes.

 My understanding is that, as of about a year ago, none of the shp2osm
 programs support multipolygons. Hopefully this has changed.

 ___
 dev mailing list
 dev@openstreetmap.org
 http://lists.openstreetmap.org/listinfo/dev
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] shp2multipolygon

2011-06-30 Thread Ian
On Thursday, June 30, 2011 8:41:31 AM UTC-5, John Smith wrote:

 On 30 June 2011 23:28, André Riedel riedel...@gmail.com wrote:
  There is a python program programm named ogr2osm
 
  http://wiki.openstreetmap.org/wiki/Ogr2osm
 
  It does exactly what you want.

 My problem is I'm trying to merge 2 shp files into a single
 multipolygon osm file.


Use a GIS program that talks shapefiles (like QGIS) to merge the data into 
one shapefile and convert that one. OSM conversion tools aren't designed to 
do any of that work.
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] How to use osmosis as a lib with direct access to the classes?

2011-06-30 Thread Ian
Take a look at the code for my XAPI servlet:

https://github.com/iandees/xapi-servlet/blob/master/src/main/java/com/yellowbkpk/geo/xapi/servlet/XapiServlet.java

There's a lot of HTTP and XAPI-related stuff in there, but the Osmosis 
classes are there:
Line 130 and the makeRequestIterator() method create a data source 
(querying the database)
Line 153 creates a data sink (a data output mechanism)
Line 162 and 164 process the data into the sink. (writes XML to the client)

On Wednesday, June 29, 2011 9:51:14 AM UTC-5, Robert Greil wrote:

 Hi!

 I am currently trying to use OSMOSIS as a lib for our java project. I 
 have already checked out the svn repository and downloaded the latest 
 osmosis zip from the website. I included all *.jar found in the 
 Osmosis/lib directory as libs for our java project because of the 
 dependencies between the jars.
 I want to use the example command line argument 'osmosis --read-pbf 
 file=data_in.osm.pbf --bounding-box left=90 right=90 --write-xml 
 file=data_out.osm' with direct access to the corresponding classes 
 inside the java project.
 I think I have identified the jars I need for that:
 osmosis-pbf-0.39.jar - command: --read-pbf file=data_in.osm.pbf
 osmosis-areafilter-0.39.jar - command: --bounding-box left=90 right=90
 osmosis-xml-0.39.jar - command: --write-xml file=data_out.osm

 I had a look inside the source code from the svn to see how to call 
 theses classes directly without using the commandline parsing and 
 pipeline and so on. I am not sure which classes are the correct ones, 
 but according to the TaskFactories I tried using these:
 crosby.binary.osmosis.OsmosisReader
 org.openstreetmap.osmosis.areafilter.v0_6.BoundingBoxFilter
 org.openstreetmap.osmosis.xml.v0_6.XmlWriter.

 But I am really struck on how to access them directly or how to create 
 and connect their input and outputstreams. I also do not know how to 
 call the OsmosisReader directly, because it is set to protected and 
 therefore not accessable from outside the package. I spent already hours 
 coding and failing and slowly I am feeling like I am doing it the 
 completely wrong way.

 That is why I am asking here, if anybody has done something similiar in 
 the past (and point me to an example) or if anybody can give me a hint 
 in the right direction or maybe some simple code examples/snipplets.

 Any help would be greatly appreciated!

 Thanks,
 Robert

 ___
 dev mailing list
 d...@openstreetmap.org
 http://lists.openstreetmap.org/listinfo/dev

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] shp2multipolygon

2011-06-30 Thread John Smith
On 1 July 2011 11:24, Ian ian.d...@gmail.com wrote:
 On Thursday, June 30, 2011 8:41:31 AM UTC-5, John Smith wrote:
 My problem is I'm trying to merge 2 shp files into a single
 multipolygon osm file.

 Use a GIS program that talks shapefiles (like QGIS) to merge the data into
 one shapefile and convert that one. OSM conversion tools aren't designed to
 do any of that work.

I'm actually try to do that as well, but I think the problem is
because the different shape files have different attributes.

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev