[OSM-dev] ogr2osm translations

2017-04-02 Thread Mattias Dalkvist
Do anyone have examples of ogr2osm translation that merges areas that share
a border and have same tags?

I'm playing with some data that have more granularity then we do for some
of the landuse/natural tags.

-- 
 Dalkvist
___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] cross-fade map sample code (ol3 or leaflet)

2016-06-03 Thread Mattias Dalkvist
The word you are looking for is opacity [1]
Example from mapbox.js (wrapper around leaflet) [2]

Hope that helps.

--
Mattias

[1] http://leafletjs.com/reference.html#tilelayer-setopacity
[2] https://www.mapbox.com/mapbox.js/example/v1.0.0/opacity/

On Fri, Jun 3, 2016 at 11:25 AM, lars lingner 
wrote:

> Hi Sven,
>
> Am 03.06.2016 um 10:29 schrieb Sven Geggus:
> > lars lingner  wrote:
> >
> >> There are examples for OL3  [1] and for Leaflet [2] and [3].
> >
> > This is simular, but not exactly what I'm up to. What I actually want is
> > dissolving layers transparently like in http://sautter.com/map
>
> I see, I wasn't sure about the transparency. I couldn't find an exact
> example. But have a look at [1]. My idea would be to modify one layer
> slider so that it is effecting the transparency of two layers.
>
> >
> > Sven
> >
> > P.S.: Looks like the correct word for "überblenden" is dissolve in this
> case
> > not fade.
> >
>
> Thanks, thats helpful. I ended up searching for the word "swipe" which
> isn't right either.
>
>
> Lars
>
>
> [1]
>
> http://www.acuriousanimal.com/thebookofopenlayers3/chapter02_03_layer_groups.html
>
> ___
> dev mailing list
> dev@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/dev
>
___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


[josm-dev] Plugins that depend on external libraries..

2009-04-15 Thread Mattias Dalkvist
Hi
I'm trying to make a plugin of my geotiff code, but I can't get the
dependencies to work.
The plugin it self works fine, that is when josm is launched from
eclipse, and the dependencies are added to the eclipse projects
classpath.

Do anyone have any experience of external .jar dependencies for plugins?
Or anyone with pointers generally?

The libraries are mostly from the geotools library, including the jai libraries.
it is the later that gives me a error that I can't find a way to fix,
googeling gives that the error is connected to the classpath and when
the libraries are loaded.

Error output:
java.lang.IllegalArgumentException: ImageRead: No OperationDescriptor
is registered in the current operation registry under this name.
at javax.media.jai.JAI.createNS(JAI.java:1070)
at javax.media.jai.JAI.create(JAI.java:973)
at org.geotools.gce.geotiff.GeoTiffReader.read(GeoTiffReader.java:426)
   ...

-- 
Mattias Dalkvist

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


Re: [josm-dev] geotiffs in josm

2009-03-31 Thread Mattias Dalkvist
 My gut feeling would be to have an ortho image plugin that creates a
 layer of its own, and then you can right-click on the layer to make it load
 images. - Or is this so similar to WMS that it should actually be put in the
 WMS layer?


Currently it creates a new layer for every image, as this looked to be the
simplest way. It also suites my user case nicely, as the images I am
interested in are scanned old map pages.

I looked at making it as a plugin, but my java foo is weak, and the
dependencies stomped my efforts.

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


[josm-dev] geotiffs in josm

2009-03-31 Thread Mattias Dalkvist
Hi

I have added written some code to allow geotiffs to be opened directly in
josm.
Where is the best place for this code? currently I have extended the
OpenFileAction.

See http://josm.openstreetmap.de/ticket/2372

The images I am using it for are 60 -80mb and cover 5 x 5km, the performance
for these file are acceptable, but not great when zoomed out.

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


Re: [josm-dev] geotiffs in josm

2009-03-31 Thread Mattias Dalkvist
2009/3/31 Tobias Wendorff tobias.wendo...@uni-dortmund.de

 Hi Matthias,

 Mattias Dalkvist schrieb:

 I have added written some code to allow geotiffs to be opened directly in
 josm.


 Very nice! Could you also extend it to GeoJPEG and GeoPNG?
 Do you support worldfiles or only embedded metadata?

 Best regards,
 Tobias


Currently only embedded metadata, but it don't look to hard to add support
for worldfiles, I will play around a bit with that.


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


Re: [OSM-dev] Moving Markers...possible ?

2008-10-23 Thread Mattias Dalkvist
2008/10/23 Dirk Janssens [EMAIL PROTECTED]:
 Hello,

 In the GoogleMaps API, I can change the position of a marker :
 marker.setPoint(p)
 Is there an equivalent in the openlayers API ?

 kind regards,

 Dirk Janssens.


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


Hi

Just give the marker new coordinates:
marker.lonlat = newLonLat;
or posibly: marker.moveTo(newPixel);
Depending on what position you have in mind.

-- 
Mattias Dalkvist

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


Re: [OSM-dev] GPS Hardware Recomendation

2008-09-23 Thread Mattias Dalkvist
2008/9/23 Andy Allan [EMAIL PROTECTED]:
 Don't suppose you know any way to change the settings on the iblue-747
 without using the rubbish software? When I looked previously I could
 find any way to configure the device from e.g. linux.

I use bt747[1], the gui is not pretty, but it works, much better then
the crappy software that came with it.

[1] http://sourceforge.net/projects/bt747/
-- 
Mattias Dalkvist

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