[josm-dev] MapCSS selector operators

2011-07-25 Thread Malcolm Herring
Operators such as != =~ cause parsing errors if they are used following 
an eval() expression. Only = is accepted. Is this a bug or a feature?



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


Re: [josm-dev] MapCSS selector operators

2011-07-26 Thread Malcolm Herring

On 25/07/2011 19:41, Paul Hartmann wrote:


I'd call it a missing feature. There is no != or =~ operator for eval
expressions [1]. You can work around the first limitation like this:


I was not using it within an eval expression, but with the result:

eval(prop(someproperty))=somevalue works as expected.
eval(prop(someproperty))!=somevalue causes a parsing error.

Of course, if 'set' were implemented, I would not be using eval in 
selectors in the first place. As Komяpa pointed out, this is not kosher 
MapCSS.


So should I submit a bug ticket for something that should not be there, 
or a feature request ticket for implementation of 'set'?



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


Re: [josm-dev] MapCSS selector operators

2011-07-26 Thread Malcolm Herring

On 26/07/2011 09:54, Paul Hartmann wrote:

Anyway, would be good to have 'set' implemented, as well. I still don't
know what it does exactly, though. E.g. can you write something like this?

*[religion][religion!=christian][religion!=jewish] {
   set religion="INT-generic";
}

way[landuse=cemetery][religion="INT-generic"] {...}



This is my understanding of the 'set' operation. It creates a temporary 
tag that can be used by other selectors. I want to use it in a similar 
way to your illustration, to create a tag that distils some generic 
information implied by many different tags. More like:


*[religion=christian], *[religion=jewish], *[religion=islamic] { set 
religion-genus="Ibrahimic" }


I can then use all the selector operators on these temporary tags.

Right now, I am having to use the 'property' work-around as recommended 
in the Wiki (which, BTW, exhibits the problem even when the eval() 
wrapper is removed).



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


[josm-dev] Setting multiple tags in preset

2012-08-22 Thread Malcolm Herring
Is there a way to generate more than one key/value pair when a check or 
combo selection is made?



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


Re: [josm-dev] Setting multiple tags in preset

2012-08-22 Thread Malcolm Herring

André,

I understand multiselect to generate: key=value1;value2...

I require:
key1=value1
key2=value2

In my context when using a combo, the first key/value pair would be 
constant if any selection is made, the second key/value pair dependent 
on the selection.



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


Re: [josm-dev] New comer in JOSM dev world

2013-05-06 Thread Malcolm Herring

On 06/05/2013 19:30, Arnaud Vandecasteele wrote:

Finally, for my needs I developed a plugin to get back the previous
selection.


We could do with this as a core feature. Please-pretty-please dev-team!


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


[josm-dev] XML Mappaint styles

2013-09-22 Thread Malcolm Herring
Has something changed in the processing of XML styles in the latest 
release? I am having problems with a previously working style - the 
icons are not displaying correctly. The icon references are URLs which 
do get downloaded into the cache OK, but the display sticks at the 
clockface. About one start in four, some of the icons do display, but at 
a much reduced size. I tried using local icons & they don't hang, but do 
display at the same reduced size. Other styles seem to display OK, so 
maybe there is something odd about my PNG files.


Before I open a ticket, does anybody have an inkling as to what may be 
going wrong here?



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


Re: [josm-dev] XML Mappaint styles

2013-09-22 Thread Malcolm Herring

On 22/09/2013 13:56, Vincent Privat wrote:

Yes there is now some code related to icons size for large images (in order
to properly display SVG files).
You can open a new ticket, do not forget to attach your style.


Vincent,

If I know what the new version does, I can make suitable edits to my 
style, so no ticket would be necessary. There is the problem of this not 
being backward compatible, unless there is a way of disabling the re-sizing.


Is there a description anywhere of what the new  attributes are & 
their effect?


Malcolm


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


Re: [josm-dev] XML Mappaint styles

2013-09-22 Thread Malcolm Herring

On 22/09/2013 17:45, Vincent Privat wrote:

What is the size of your icons ?


The image sizes are all within the 24x24 pixel limit, but have been 
generated from SVG originals that have a much larger frame size and a 
transparent backgound. Therefore the PNG reports a size of 60x80 for 
most of them, even though the non-blank content is much smaller.


As there are about 300 icons, I generate them with a script that invokes 
Inkscape. It would a huge task to have to edit these manually.




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


Re: [josm-dev] XML Mappaint styles

2013-09-22 Thread Malcolm Herring
My problem is that I cannot afford to spend any time on this. This 
particular style has been obsolescent since I started work on a new 
plugin that would include the functionality of the style as an imagery 
layer. This project is already well behind schedule, so I must remain 
focused on that.


I will have to declare the style broken and withdraw it, leaving the 
users high and dry for a number of months.



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


[josm-dev] JOSM on Mavericks

2013-10-24 Thread Malcolm Herring

I have just submitted the following ticket as a Mac installer defect:

Installing Mac OS X 10.9 (Mavericks) removes JRE 6. From the terminal, 
"java -version" returns a pop-up with a link to the Oracle JRE/JDK 7 
install page. After this is done, "java -version" confirms that JRE 1.7 
is installed. Then, running the JOSM launcher demands a JRE 6 install. 
If instead, "java -jar josm-tested.jar" is run, JOSM works just fine, 
including no longer warning about an out-of-date JRE.



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


[josm-dev] Generating new dataset

2014-02-18 Thread Malcolm Herring
I need to generate a new JOSM dataset from data that has arbitrary node, 
way & relation IDs. What is the correct procedure for creating 
primitives with IDs that do not collide with the OSM DB IDs? I tried 
making the IDs negative, but this causes an exception.


Thanks in advance for any help.


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


Re: [josm-dev] Generating new dataset

2014-02-18 Thread Malcolm Herring

On 18/02/2014 14:07, Simon Legner wrote:

Maybe the quickest way is to open the dataset in JOSM, select all
objects with Ctrl+A, copy them with Ctrl+C, create a new dataset with
Ctrl+N, and paste the copied objects with Ctrl+V. Then, to all objects
should be assigned a new ID.


I should have mentioned that this is a JOSM plugin doing the operation. 
The plugin has created the data set with "DataSet data = new DataSet()” 
and needs to add primitives with “data.addPrimitive()”. It is the 
creation of these primitives that I am unclear of & how to maintain IDs 
that are cross-referenced by other primitives in this new datset.



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


Re: [josm-dev] JOSM talk at SOTM-EU, any volunteers?

2014-02-27 Thread Malcolm Herring

On 27/02/2014 20:24, Frederik Ramm wrote:

having a JOSM developer meeting at the hack day, or doing a JOSM
workshops for interested hackers - almost anything goes.


A tutorial session on the JOSM class libraries would be immensely 
valuable. Since SOTM sessions are recorded, we would then have a 
valuable resource for plugin authors.



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


Re: [josm-dev] JOSM 7182 released (first Java 7 version)

2014-05-27 Thread Malcolm Herring

I get "403 Forbidden" when attempting to download the Mac installer.



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


Re: [josm-dev] JOSM 7182 released (first Java 7 version)

2014-05-27 Thread Malcolm Herring

Got it, thanks!


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


[josm-dev] Error when installing preset

2014-09-03 Thread Malcolm Herring
I have a preset that produces an error message when I try to install it. 
It does not seem to like the fact that I have chunks that contain  only 
"list_entry" items. However, if I click on "Yes" to accept the install, 
it the preset then works fine, with the chunk invocations working as 
expected. I could not find any recent trac tickets on this issue. Is 
this bug, or is it a feature?



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


Re: [josm-dev] Error when installing preset

2014-09-03 Thread Malcolm Herring

On 03/09/2014 17:51, Paul Hartmann wrote:

please open a ticket on trac, this is probably a bug.


Done!


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


Re: [josm-dev] new confirmation dialog for presets

2014-09-13 Thread Malcolm Herring
There is a conflict here. There are circumstances where a confirmation 
dialog is wanted by the preset author - this is when there are  
and/or  that are required to be displayed.


Maybe a solution is to auto-detect this situation - if there are only 
 elements, then the tags are set without confirmation, but if there 
are also  or  elements, then a confirmation is required. 
Maybe also in the  header, a confirm="yes/no/auto" parameter might 
be useful.


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


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


Re: [josm-dev] JOSM 7588 released

2014-09-30 Thread Malcolm Herring

On 30/09/2014 00:01, Vincent Privat wrote:

The September version is now available as version 7588:)


I'd like to thank Vincent & the JOSM team for their prompt resolution of 
tickets that I raised recently.



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


[josm-dev] JavaFX

2015-01-02 Thread Malcolm Herring
Is it possible to use JavaFX for a JOSM plugin? Or will I have to wait 
for a Java8 JOSM? If so, what is the expected timeline?



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


Re: [josm-dev] Plugin installation without restart

2015-02-12 Thread Malcolm Herring

On 12/02/2015 18:59, Paul Hartmann wrote:

There is a guide [1] on how to get your plugin ready to support this new
feature. The good news is that there is usually nothing or very little
to change, but it still needs to be tested.


OK, I followed the instructions & built a renamed test version & 
installed it on the latest JOSM, No restart prompt appeared, & using the 
plugin, it seemed to be working OK.


The question is, what are the key things to test? Is there a particular 
operation that would be expected to fail if the plugin were not compatible?



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


Re: [josm-dev] Checking tags

2015-03-16 Thread Malcolm Herring

On 16/03/2015 08:21, Jochen Topf wrote:

Any ideas appreciated.


A start would be to flag unusual characters in tag keys: Capital 
letters, non-Latin characters, non-alphanumerics other than colon, 
underscore, etc.



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


Re: [josm-dev] Setting up Eclipse for plugin development

2015-03-23 Thread Malcolm Herring

On 22/03/2015 20:37, Werner Horsch wrote:

I was wondering if someone could point to where my error is or give at
least some hints


First:

cd josm/core
ant

This builds josm-custom.jar. Then plugins should compile with "ant dist" 
from their root directories.




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


Re: [josm-dev] debugging plugins

2015-06-22 Thread Malcolm Herring

On 22/06/2015 10:54, Vincent Privat wrote:

Yes it is possible. Simply add the Eclipse project of your plugin to the
list of projects being used to search for sources in your debug
configuration.


Also, in "Debug Configurations" set Main class to "JOSM"


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


Re: Need OSX feedback with Java 9

2016-05-11 Thread Malcolm Herring

On 29/04/2016 15:21, Vincent Privat wrote:

Could someone please test latest JOSM with latest JDK9-EA build (


Can this be with any OSX JRE or does it have to be V9?


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


SVN update problem

2017-01-21 Thread Malcolm Herring
When I try to update the plugins subdirectory I get "svn: E17: 
'https://github.com/scrosby/OSM-binary/trunk/src.java/crosby/binary' 
isn't in the same repository as 'http://svn.openstreetmap.org'"


What might be causing this?


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


Re: JOSM Translations

2017-02-19 Thread Malcolm Herring

On 19/02/2017 13:19, Dirk Stöcker wrote:

I think the main problem is that people aren't aware they could help and
are needed to do so.


Maybe post your message in the general list? There may be able 
translators there who do not read this newsgroup.





github or subversion?

2019-02-11 Thread Malcolm Herring via josm-dev
The plugins developer guide says use SVN, but that repo says that SVN is 
deprecated & to use GIT instead. Which is the correct?





Re: github or subversion?

2019-02-11 Thread Malcolm Herring via josm-dev

On 12/02/2019 06:47, Jiri Vlasak wrote:

If you are creating new JOSM plugin,


I have an existing plugin that was created using SVN. My question was to 
determine whether I should move it to GIT. Vincent says "No".





Re: github or subversion?

2019-02-16 Thread Malcolm Herring via josm-dev

Vincent,

I note that the openstreetmap/josm-plugins repo has not been updated 
since Nov 2017, whereas the openstreetmap/josm repo is up-to-date.


Why is this?




Re: OSM-SVN shut down, JOSM copy takes over

2020-08-17 Thread Malcolm Herring via josm-dev

On 16/08/2020 19:21, Dirk Stöcker wrote:
With "svn relocate" it's possible to switch an existing working copy to 
the new URL without a full re-checkout.


For those of us with only basic SVN experience, perhaps your could 
provide the full command string for this operation.


Thanks!




Re: OSM-SVN shut down, JOSM copy takes over

2020-08-19 Thread Malcolm Herring via josm-dev

On 19/08/2020 11:10, Dirk Stöcker wrote:

svn relocate https://josm.openstreetmap.de/osmsvn/applications/editors/josm


Thanks - that worked fine.