Modify

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#12282 closed enhancement (fixed)

Remove XML mappaint support

Reported by: Don-vip Owned by: team
Priority: normal Milestone: 16.04
Component: Core mappaint Version:
Keywords: xml mapcss Cc: bastiK, Klumbumbus, simon04, yopaseopor, lists@…

Description (last modified by Klumbumbus)

We have today 81 styles listed on styles.

Only 7 of them are still in XML format. I propose to rewrite them in MapCSS and drop support for old XML styles:

  1. https://github.com/avar/osmis-josm-style/blob/master/elemstyles_is.xml ==> pull request
  2. http://www.freietonne.de/ft_icons/josm/FreieTonne_rules_presets_zip.php ==> Converted
  3. Styles/FrenchEPCI ==> Converted
  4. Styles/LegacyStandard ==> to remove from list
  5. Styles/Lit ==> Converted
  6. Styles/MaxspeedIcons ==> Converted
  7. Styles/Traffic_signs ==> Converted

I don't remember how we switched from XML to MapCSS: is there a transformation script somewhere? All styles are quite small except traffic signs...

Attachments (1)

xml_removal.patch (49.4 KB ) - added by Don-vip 8 years ago.

Download all attachments as: .zip

Change History (76)

comment:1 by stoecker, 8 years ago

For FreieTonne: I wonder that Jan should not react. Are you sure he got the mail? Dropping that style without informing him is not ok I think. Did you also try the email from here: http://www.jesse.de/HTML/impressum.shtml ?

comment:2 by stoecker, 8 years ago

I'll try to send him an mail.

comment:3 by yopaseopor, 8 years ago

Well, I understand JOSM has to be improved...but removing capabilities? You say ok, rewrite it. It is not easy for me (I will have to investigate if it is possible to me) . I don't know anything about programming or codes, I have only learned to open something and If I understand how it works I can change it and improve it. I did the style traffic signs tweaking Speedlimit Signs code from Martin Koppenhoefer. The style is good, it works...Now you tell me I have to change it, "translate the code" ...but How? Can you help me? Can you give me some examples to understand how MapCSS works? Can you make some lines of code of my style to rewrite the whole style? How I have to change the code? Anybody can help me? I have dedicated a lot of hours to make it possible. Can you help me?

Last edited 8 years ago by yopaseopor (previous) (diff)

in reply to:  description ; comment:4 by bastiK, 8 years ago

Replying to Don-vip:

I propose to rewrite them in MapCSS and drop support for old XML styles

I'm not as eager to get rid of the xml format, but I see no reason to keep it, either.

I don't remember how we switched from XML to MapCSS: is there a transformation script somewhere?

Wasn't very sophisticated, I don't think I have saved anything.

in reply to:  4 comment:5 by yopaseopor, 8 years ago

Replying to bastiK:

Replying to Don-vip:

I propose to rewrite them in MapCSS and drop support for old XML styles

I'm not as eager to get rid of the xml format, but I see no reason to keep it, either.

I see one powerful reason: I don't know how to change my style so my style won't work without XML support :(

in reply to:  2 ; comment:6 by stoecker, 8 years ago

Replying to stoecker:

I'll try to send him an mail.

Vincent: Jan answered immediately. Also for the preset I don't understand the error - The URL which is told as error is not in the presets file. Did you maybe mix something here?

in reply to:  3 ; comment:7 by bastiK, 8 years ago

Replying to yopaseopor:

Well, I understand JOSM has to be improved...but removing capabilities? You say ok, rewrite it. It is not easy for me (I will have to investigate if it is possible to me) . I don't know anything about programming or codes, I have only learned to open something and If I understand how it works I can change it and improve it. I did the style traffic signs tweaking Speedlimit Signs code from Martin Koppenhoefer. The style is good, it works...Now you tell me I have to change it, "translate the code" ...but How? Can you help me? Can you give me some examples to understand how MapCSS works? Can you make some lines of code of my style to rewrite the whole style? How I have to change the code? Anybody can help me? I have dedicated a lot of hours to make it possible. Can you help me?

Please don't panic! :)

You don't have to be a programmer, to understand MapCSS. Especially for your Traffic sign style it shouldn't be too hard: Have a look at the first example in the tutorial (And maybe some other available styles). If you cannot get it to work, we will help!

Sorry for the inconvenience, but sometimes this happens in the open source world...

in reply to:  7 ; comment:8 by yopaseopor, 8 years ago

Replying to bastiK:

Please don't panic! :)

You don't have to be a programmer, to understand MapCSS. Especially for your Traffic sign style it shouldn't be too hard: Have a look at the first example in the tutorial (And maybe some other available styles). If you cannot get it to work, we will help!

I panic because first thing I have done before write these lines is open some MapCSS style and I did not understand anything. Also I have opened https://josm.openstreetmap.de/wiki/Help/Styles/MapCSSTutorial and https://josm.openstreetmap.de/wiki/Help/Styles/MapCSSImplementation and I don't understand how it works . I am so worried. Please help me.

Last edited 8 years ago by yopaseopor (previous) (diff)

in reply to:  6 ; comment:9 by Don-vip, 8 years ago

Description: modified (diff)

Replying to stoecker:

Replying to stoecker:

I'll try to send him an mail.

Vincent: Jan answered immediately.

I don't know who Jan is. I sent an e-mail on 24/10/2015 to fta at freietonne.de (which is the only contact listed on https://www.freietonne.de home page) and nobody answered. I also sent an e-mail about this (same day) on josm-dev and nobody replied neither.

Also for the preset I don't understand the error - The URL which is told as error is not in the presets file. Did you maybe mix something here?

You're right. The presets have been modified on 2015-10-27, 3 days after my e-mail, but I wasn't notified. I'm going to restore it, that's good news :)

in reply to:  8 ; comment:10 by Don-vip, 8 years ago

Replying to yopaseopor:

I am so worried. Please help me.

Don't worry, we're going to help you :) Don't want to loose any active contributor with this change, and you do great work! It seems complicated at first glance but you don't need to understand all features. The basic features are quite simple and the resulting file is easier to update once you know the syntax. Also, it's far more powerful, maybe you will have new ideas for the style after :)

in reply to:  10 comment:11 by yopaseopor, 8 years ago

Replying to Don-vip:

Replying to yopaseopor:

I am so worried. Please help me.

Don't worry, we're going to help you :) Don't want to loose any active contributor with this change, and you do great work! It seems complicated at first glance but you don't need to understand all features. The basic features are quite simple and the resulting file is easier to update once you know the syntax. Also, it's far more powerful, maybe you will have new ideas for the style after :)

One Catalan Community member is helping me in this moment.I hope I can translate it in a few time. For things he explains me it is true it seems more powerful and I start thinking new ideas for some items...Thank your for your attention.

comment:12 by Don-vip, 8 years ago

Description: modified (diff)

First conversion example: FrenchEPCI

comment:13 by Don-vip, 8 years ago

I have some problems to get identical rendering with Styles/Lit for this rule:

  <rule>
    <condition k="lit" b="no"/>
    <linemod mode="over" width="10" realwidth="8" colour="lit_no#000000B0"/>
  </rule>

I came up with the following:

meta {
    title: "Lit";
    version: "2.0";
    description: "Show lit=yes/no settings in JOSM map display";
    author: "cmuelle8";
    link: "https://josm.openstreetmap.de/wiki/Styles/Lit";
}
way[lit=yes]::lit_layer
{
    object-z-index: +1.0;
    width: +10;
    opacity: 0.75;
    color: #EEEECC;
}
way[lit=no]::lit_layer
{
    object-z-index: +1.0;
    width: +10;
    opacity: 0.75;
    color: #000000;
}

Original XML style darkens the ways with lit=no, I can't get the same result with MapCSS, any hint?

in reply to:  9 comment:14 by stoecker, 8 years ago

Vincent: Jan answered immediately.

I don't know who Jan is. I sent an e-mail on 24/10/2015 to fta at freietonne.de (which is the only contact listed on https://www.freietonne.de home page) and nobody answered. I also sent an e-mail about this (same day) on josm-dev and nobody replied neither.

Jan Jesse - the operator of Freie Tonne. Seems he has a major mail misconfiguration, as sending mail to that address does not work :-)

Also for the preset I don't understand the error - The URL which is told as error is not in the presets file. Did you maybe mix something here?

You're right. The presets have been modified on 2015-10-27, 3 days after my e-mail, but I wasn't notified. I'm going to restore it, that's good news :)

That line-dance URL very likely never was part of the preset. I assume an mixup in the checkscript. Anyway I told him about some double entries in the preset which should be fixed. He'll also have a look at MapCSS.

comment:15 by yopaseopor, 8 years ago

Help me please, I did the conversion work, but there is some error that makes wrong all the style. Check it please .
https://josm.openstreetmap.de/wiki/Styles/Traffic_signs

comment:16 by Don-vip, 8 years ago

Description: modified (diff)

comment:17 by Don-vip, 8 years ago

you can't have spaces between conditions, I have removed them.

in reply to:  13 comment:18 by Don-vip, 8 years ago

Replying to Don-vip:

I can't get the same result with MapCSS, any hint?

Found it, +1.0 is not valid, must be 1.0

comment:19 by Don-vip, 8 years ago

Description: modified (diff)

Is there a way to archive old styles (Legacy and MaxspeedIcons), so we keep them on the wiki but they are not included in the list?

in reply to:  19 comment:20 by stoecker, 8 years ago

Replying to Don-vip:

Is there a way to archive old styles (Legacy and MaxspeedIcons), so we keep them on the wiki but they are not included in the list?

I can change the scripts, so XML is marked as deprecated in the wiki list and not included in JOSM download list.

comment:21 by stoecker, 8 years ago

XML styles are now marked with bold "XML" in version field and have "style-type"="xml" in the download file. Future JOSM versions can skip entries with this marker easily when no longer supported.

comment:22 by Klumbumbus, 8 years ago

#10540 should be fixed before XML support is dropped. It seems bastiK is working on it (#9891).

comment:23 by yopaseopor, 8 years ago

One question, I add some missign icons in the zip file but now it gets me timeout error. How I can fix it? Is it correct?

in reply to:  23 ; comment:24 by stoecker, 8 years ago

Replying to yopaseopor:

One question, I add some missign icons in the zip file but now it gets me timeout error. How I can fix it? Is it correct?

Hmm, you replaced the file during my debugging. It works now. Do you know what was special about the previous zip?

comment:25 by stoecker, 8 years ago

@yopaseopor: One comment - I'd suggest to use SVG wherever possible or there will be the next issue with the upcoming HIDPI display changes :-)

in reply to:  24 ; comment:26 by yopaseopor, 8 years ago

Replying to stoecker:

Replying to yopaseopor:

One question, I add some missign icons in the zip file but now it gets me timeout error. How I can fix it? Is it correct?

Hmm, you replaced the file during my debugging. It works now. Do you know what was special about the previous zip?

Sorry, it was a complete file with all the icons, then I drop the icons and let the zip empty. Now I have reuploaded full (1.4MB) Can you try again?

in reply to:  26 ; comment:27 by stoecker, 8 years ago

Replying to yopaseopor:

Replying to stoecker:

Replying to yopaseopor:

One question, I add some missign icons in the zip file but now it gets me timeout error. How I can fix it? Is it correct?

Hmm, you replaced the file during my debugging. It works now. Do you know what was special about the previous zip?

Sorry, it was a complete file with all the icons, then I drop the icons and let the zip empty. Now I have reuploaded full (1.4MB) Can you try again?

Ok. The file simply has too many entries. Please reupload the previous smaller file (and remove the mapcss file which is inside). I copied the file and will check if I can speedup the server code. I removed the icons file causing the trouble.

in reply to:  22 comment:28 by Don-vip, 8 years ago

Replying to Klumbumbus:

#10540 should be fixed before XML support is dropped. It seems bastiK is working on it (#9891).

Sure. I have added those two tickets to current milestone, I wait before assigning this one.

in reply to:  27 ; comment:29 by yopaseopor, 8 years ago

Replying to stoecker:

Ok. The file simply has too many entries. Please reupload the previous smaller file (and remove the mapcss file which is inside). I copied the file and will check if I can speedup the server code. I removed the icons file causing the trouble.

I think I have done now correctly. Also I start to make local test with wikipedia's URLs and files to get the traffic signs in SVG. Stay tuned ;)

in reply to:  29 comment:30 by stoecker, 8 years ago

Replying to yopaseopor:

Replying to stoecker:

Ok. The file simply has too many entries. Please reupload the previous smaller file (and remove the mapcss file which is inside). I copied the file and will check if I can speedup the server code. I removed the icons file causing the trouble.

I think I have done now correctly. Also I start to make local test with wikipedia's URLs and files to get the traffic signs in SVG. Stay tuned ;)

I did a small speed improvement. Instead of 294 seconds it now takes 200 milliseconds :-) The code was a little suboptimal. I changed your upload comment from "(NOZIP)" to "(EXTRACT)" again and the icons are included as they should be.

comment:31 by Klumbumbus, 8 years ago

Maybe some users use their own small styles, which are saved only local and not linked in this wiki. Should we display a message on the startup page like:

JOSM will soon no longer support mappaint styles written in the old XML format. [e.g._link to_this_ticket More info]

?

comment:32 by stoecker, 8 years ago

Wouldn't a program text "You use an XML style. This will no longer be supported in future versions" be better, as it can test for such a style first?

comment:33 by Klumbumbus, 8 years ago

Yes that would be better :)

Maybe similar to the layer box, which appears now when you add bing imagery?

comment:34 by Don-vip, 8 years ago

Good idea I'll look into it.

comment:35 by stoecker, 8 years ago

In 16.02 I'd suggest. So the converted styles have been activated until then.

comment:36 by Klumbumbus, 8 years ago

As we currently replace a lot icons would it be good to have a jenkins test also for styles, similar to the one we already have for presets?

in reply to:  36 ; comment:37 by stoecker, 8 years ago

Replying to Klumbumbus:

As we currently replace a lot icons would it be good to have a jenkins test also for styles, similar to the one we already have for presets?

Uuuh. Maybe that can wait two weeks? The current server is already a bit overloaded and renewal is anyway soon and I want to ask for one of the more powerful servers they have now.

in reply to:  37 comment:38 by Don-vip, 8 years ago

Replying to stoecker:

Replying to Klumbumbus:

As we currently replace a lot icons would it be good to have a jenkins test also for styles, similar to the one we already have for presets?

Uuuh. Maybe that can wait two weeks? The current server is already a bit overloaded and renewal is anyway soon and I want to ask for one of the more powerful servers they have now.

The test already exists. But it does only detect syntax errors, not missing icons. Checking also missing icons shouldn't affect server performance at all.

comment:39 by Don-vip, 8 years ago

It's good news to have a more powerful server. What hardware are you going to ask for?

in reply to:  39 comment:40 by stoecker, 8 years ago

Replying to Don-vip:

It's good news to have a more powerful server. What hardware are you going to ask for?

See private mail. I don't want to publish anything before I actually talked to our sponsors.

comment:41 by Don-vip, 8 years ago

In 9334/josm:

see #12282 - handle warnings for mappaint styles:

  • Log warnings that occur when loading style
  • Display them in Mappaint dialog (Info action)
  • Drop redundant error icon
  • Ignore XML styles in styles validation test
  • Make styles validation test fail if at least a warning occur

comment:42 by Don-vip, 8 years ago

The updated test does not yet detect missing icons, but it detects other kinds of warnings:

INFO: GET https://raw.githubusercontent.com/molysgaard/OAM-JOSM/master/oam-style.mapcss -> 200 (472 B)
WARNING: Detected deprecated 'canvas{background-color}' in 'https://raw.github.com/molysgaard/OAM-JOSM/master/oam-style.mapcss' which will be removed shortly. Use 'fill-color' instead.
 => KO
INFO: GET https://codeload.github.com/GlassOceanos/indoor-JOSM-style/zip/master -> 200 (10.5 kB)
WARNING: Detected deprecated 'canvas{background-color}' in 'https://github.com/GlassOceanos/indoor-JOSM-style/archive/master.zip' which will be removed shortly. Use 'fill-color' instead.
 => KO

I have created PRs:
https://github.com/molysgaard/OAM-JOSM/pull/2
https://github.com/GlassOceanos/indoor-JOSM-style/pull/2

@bastiK: is it OK to remove support for canvas{background-color} once these PRs have been merged? It is deprecated for a long time (r7110).

comment:43 by Don-vip, 8 years ago

In 9336/josm:

see #12282 - log a warning for MapCSS @media queries (deprecated since @supports has been introduced in r8087)

comment:44 by Don-vip, 8 years ago

two more:

INFO: GET http://www.openrailwaymap.org/styles/signals.zip -> 200 (78.2 kB)
ERROR: Detected deprecated '@media' in 'OpenRailwayMap signalling layer' which will be removed shortly. Use '@supports' instead.
WARNING: Initializing map style http://www.openrailwaymap.org/styles/signals.zip completed in 30 ms (0 errors, 1 warnings)
 => KO
INFO: GET https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_Streets&zip=1 -> 200 (7.88 kB)
ERROR: Detected deprecated '@media' in 'Coloured Streets' which will be removed shortly. Use '@supports' instead.
WARNING: Initializing map style https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_Streets&zip=1 completed in 48 ms (0 errors, 1 warnings)
 => KO

comment:45 by Don-vip, 8 years ago

Coloured Street contains:

/* Display a warning message if the josm version is too old, can be hidden by a style setting */
@media (max-josm-version: 7479)
{
node[setting("display_old_josm")][fixme]::core_fixme,
node[setting("display_old_josm")][note]::core_note,
node[setting("display_old_josm")][place]::oldJOSM,
node[setting("display_old_josm")][natural]::oldJOSM,
node[setting("display_old_josm")]:new::oldJOSM
{
        text: tr("Your JOSM version is too old for the mappaint style Coloured Streets. Please update JOSM.");
        text-color: orange;
        text-halo-radius: 2;
        text-halo-color: black;
        font-size: 11;
        major-z-index: 100;
}
}

We could replace the @media query by @support rules, but it would not make any sense, as supports rule have been introduced after r7479 (in r8087).
Versions between r6970 (introduction of @media) and r7479 are in very low usage:

Recent versions (>= 7001):
Java Main Version --> 6 (8,  0.1%) 7 (1485, 21.6%) 8 (5380, 78.2%) 9 (3,  0.0%)
OS:  FreeBSD (7,  0.1%) Linux (1810, 26.3%) Mac (486,  7.1%) OpenBSD (4,  0.1%) Windows (4570, 66.5%)

OLD versions support @media (6970 <= 7479):
Java Main Version --> 7 (21, 40.4%) 8 (31, 59.6%)
OS:  Linux (8, 15.4%) Mac (1,  1.9%) Windows (43, 82.7%)

So the simplest is to drop this block.

comment:47 by Don-vip, 8 years ago

Last PR created: https://github.com/avar/osmis-josm-style/pull/3

Waiting for Freietonne now.

comment:48 by Aun Johnsen <lists@…>, 8 years ago

Cc: lists@… added

in reply to:  42 comment:49 by bastiK, 8 years ago

Replying to Don-vip:

@bastiK: is it OK to remove support for canvas{background-color} once these PRs have been merged? It is deprecated for a long time (r7110).

Yes, should be okay.

comment:50 by stoecker, 8 years ago

Description: modified (diff)

comment:51 by simon04, 8 years ago

r9334 broke the (external) ebdirigo plugin, from Jenkins:

ERROR: org.openstreetmap.josm.plugins.PluginException: An error occurred in plugin ebdirigo. Cause: java.lang.reflect.InvocationTargetException. Cause: java.lang.NoSuchMethodError: org.openstreetmap.josm.gui.mappaint.MapPaintStyles.addStyle(Lorg/openstreetmap/josm/gui/preferences/SourceEntry;)Ljava/util/Collection;
org.openstreetmap.josm.plugins.PluginException: An error occurred in plugin ebdirigo
	at org.openstreetmap.josm.plugins.PluginProxy.handlePluginException(PluginProxy.java:38)
	at org.openstreetmap.josm.plugins.PluginProxy.mapFrameInitialized(PluginProxy.java:48)
	at org.openstreetmap.josm.Main.addMapFrameListener(Main.java:1628)
	at org.openstreetmap.josm.plugins.PluginHandler.loadPlugin(PluginHandler.java:712)
	at org.openstreetmap.josm.plugins.PluginHandler.loadPlugins(PluginHandler.java:772)
	at org.openstreetmap.josm.plugins.PluginHandler.loadLatePlugins(PluginHandler.java:811)
	at org.openstreetmap.josm.plugins.PluginHandlerTest.testValidityOfAvailablePlugins(PluginHandlerTest.java:70)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)
	at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.openstreetmap.josm.plugins.PluginProxy.mapFrameInitialized(PluginProxy.java:44)
	... 17 more
Caused by: java.lang.NoSuchMethodError: org.openstreetmap.josm.gui.mappaint.MapPaintStyles.addStyle(Lorg/openstreetmap/josm/gui/preferences/SourceEntry;)Ljava/util/Collection;
	at org.openstreetmap.josm.plugins.ebdirigo.io.StyleChanger.addStyle(StyleChanger.java:75)
	at org.openstreetmap.josm.plugins.ebdirigo.EBDirigoPlugin.mapFrameInitialized(EBDirigoPlugin.java:39)
	... 22 more

comment:52 by Don-vip, 8 years ago

Yes I know. I have sent an email to them but no answer yet. I think I'll ignore this one as it is closed source and they are not really cooperating.

comment:53 by Don-vip, 8 years ago

In 9398/josm:

see #12282 - drop support for canvas{background-color} (deprecated since r7110, not used anymore in any known MapCSS style)

comment:54 by Don-vip, 8 years ago

In 9400/josm:

see #12282 - detect missing icons for MapCSS styles

comment:55 by Don-vip, 8 years ago

@yopaseopor: Traffic signs style raises some errors:

ERROR: Failed to locate image 'traffic_signs/ES/CAT_s520.png'
ERROR: Failed to locate image 'traffic_signs/ES/ES_panel_dir_right.png'
ERROR: Failed to locate image 'traffic_signs/ES/ES_r506.png'
ERROR: Failed to locate image 'traffic_signs/ES/ES_roadeacon_little.png'
ERROR: Failed to locate image 'traffic_signs/ES/ES_roadeaconig.png'
ERROR: Failed to locate image 'traffic_signs/ES/ES_ruta_europea.png'
ERROR: Failed to locate image 'traffic_signs/ES/ES_ruta_europea'
ERROR: Failed to locate image 'traffic_signs/ES/ES_s574a.png'
ERROR: Failed to locate image 'traffic_signs/ES/ES_s575.png'
ERROR: Failed to locate image 'vehicle/restrictions/ES_motorway.png'
Last edited 8 years ago by Don-vip (previous) (diff)

in reply to:  description comment:56 by Klumbumbus, 8 years ago

Replying to Don-vip:

  1. Styles/MaxspeedIcons ==> to drop (integrated in core)

I remember that in a discussion short after the core implementation someone said, that he prefferes this style over the core implementation. However I do not remember the reason...

comment:57 by Don-vip, 8 years ago

ok we can rewrite it then, it is quite small.

in reply to:  55 comment:58 by Don-vip, 8 years ago

@yopaseopor: can you please give a look to erroneous icons soon? We have a failing unit test now :)

comment:59 by Don-vip, 8 years ago

I have fixed some errors in the style and renamed an icon in the zip file. Only these errors remain:

ERROR: Failed to locate image 'traffic_signs/ES/CAT_s520.png'
ERROR: Failed to locate image 'traffic_signs/ES/ES_r506.png'
ERROR: Failed to locate image 'traffic_signs/ES/ES_s574a.png'
ERROR: Failed to locate image 'traffic_signs/ES/ES_s575.png'

in reply to:  59 ; comment:60 by yopaseopor, 8 years ago

Replying to Don-vip:

I have fixed some errors in the style and renamed an icon in the zip file. Only these errors remain:

ERROR: Failed to locate image 'traffic_signs/ES/CAT_s520.png'
ERROR: Failed to locate image 'traffic_signs/ES/ES_r506.png'
ERROR: Failed to locate image 'traffic_signs/ES/ES_s574a.png'
ERROR: Failed to locate image 'traffic_signs/ES/ES_s575.png'

Well done,good work,thank you for helping me :) But now I have little problem ;) : I don't have permission to replace the file with missing icons because is not mine.How can I replace it?

Last edited 8 years ago by yopaseopor (previous) (diff)

in reply to:  60 comment:61 by stoecker, 8 years ago

Replying to yopaseopor:

Well done,good work,thank you for helping me :) But now I have little problem ;) : I don't have permission to replace the file with missing icons because is not mine.How can I replace it?

I did the same as Vincent a day before, but did not save it because I knew that issue would come :-) Please append the file with another name, I will delete the other one then.

Last edited 8 years ago by stoecker (previous) (diff)

comment:62 by stoecker, 8 years ago

Sorry - Can't rename the new file name - Trac has no feature for this and direct DB access causes a failure when trying to find the data on harddisk :-( Either you need to stick to the new name or next time the other one needs to be deleted :-)

comment:63 by yopaseopor, 8 years ago

Can anybody delete the files?

in reply to:  63 comment:64 by stoecker, 8 years ago

Replying to yopaseopor:

Can anybody delete the files?

I did delete Vincent's duplicate upload already, deleting is no issue, only renaming...

comment:65 by Don-vip, 8 years ago

OK thanks, one last error:

Es_s574a.png

the file is named "Es" (lowercase) in the zip file but searched as "ES" (uppercase) in the style. Can you please fix it?

comment:66 by Don-vip, 8 years ago

Description: modified (diff)

comment:67 by Don-vip, 8 years ago

Milestone: 16.03

comment:68 by Klumbumbus, 8 years ago

Todo in the end: remove _(MapCSS) in the name of the default style

comment:69 by stoecker, 8 years ago

I think there was enough time for the old XML to fade out. Now a warning should be added to inform XML users to switch or update their styles. See comment:32 to comment:35.

in reply to:  69 comment:70 by Don-vip, 8 years ago

Replying to stoecker:

I think there was enough time for the old XML to fade out. Now a warning should be added to inform XML users to switch or update their styles. See comment:32 to comment:35.

I agree it would be better, but is it still worth the effort? I tried to remove XML support, and JOSM behaves nicely: XML styles are silently ignored, an icon shows the style has a problem, and we can see the parsing error in map paint window. Do you think there's a lot of people still using XML styles?

Last edited 8 years ago by Don-vip (previous) (diff)

by Don-vip, 8 years ago

Attachment: xml_removal.patch added

comment:71 by Don-vip, 8 years ago

Resolution: fixed
Status: newclosed

In 9965/josm:

fix #12282 - drop XML mappaint support - keep XML detection in order to warn users and let them upgrade to MapCSS, with link to documentation

comment:72 by Klumbumbus, 8 years ago

Description: modified (diff)

comment:73 by Don-vip, 8 years ago

Milestone: 16.0316.04

Milestone renamed

comment:74 by anonymous, 8 years ago

The removal of the XML support was rather shortsighted. There are more styles published out there than listed in your style list.

Congratulations on breaking them all.

comment:75 by bastiK, 8 years ago

Anonymous, we are aware this is inconvenient for people still having XML styles in use. However, we are a small team with limited time to spend on this project. Keeping old legacy code operational adds up to a lot of work and impedes development of new features.

Just out of curiosity, can you provide links for all the XML styles out there (as you say they are published)?

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.