You are not logged in.

Announcement

*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***

#1 2010-06-30 16:59:07

zverik
Member
From: Saint-Petersburg
Registered: 2009-07-31
Posts: 771

Как заставить работать osmarender под windows?

Osmarender 6.0 Alpha 6
файл osmarender.xsl размером 201604 байта

java -cp xalan.jar;serializer.jar org.apache.xalan.xslt.Process -in osm-map-features-z10.xml -out map.svg выдаёт:

file:///D:/Maps/osmarender/stylesheets/osmarender.xsl; Номер строки 3133; Номер столбца 18; org.apache.xpath.objects.XString cannot be cast to org.apache.xpath.objects.XNodeSet
file:///D:/Maps/osmarender/stylesheets/osmarender.xsl; Номер строки 3133; Номер столбца 18; java.lang.NullPointerException

java -jar saxon9he.jar -t -xsl:osmarender.xsl -s:osm-map-features-z10.xml -o:map.svg пишет:

Error on line 339 of osmarender.xsl:
  Cannot find a matching 1-argument function named {http://exslt.org/common}node-set()
  in variable symbols (file:/D:/Maps/osmarender/stylesheets/osmarender.xsl#299)
  in built-in template rule
Transformation failed: Run-time errors were reported

xml.exe tr osmarender.xsl osm-map-features-z10.xml > map.svg пишет:

I/O error : Attempt to load network entity http://xobjex.com/service/date.xsl
warning: failed to load external entity "http://xobjex.com/service/date.xsl"

perl orp.pl -r osm-map-features-z10.xml data.osm требует Set::Object, который я не знаю как устанавливать на ActivePerl (там требуется компиляция Object.xs).

msxsl osm-map-features-z10.xml -pi -o map.svg тоже ругается:

Error occurred while executing stylesheet 'file://D:\Maps\osmarender\stylesheets\osmarender.xsl'.

Code:   0x80004005
Reference to variable or parameter 'elements' must evaluate to a node list.

Что делать?

Last edited by zverik (2010-06-30 17:00:35)

Offline

#2 2010-06-30 20:40:00

Alexandr Zeinalov
Member
From: New-Peredelkino, Moscow, RU
Registered: 2009-08-26
Posts: 1,699
Website

Re: Как заставить работать osmarender под windows?

zverik

cpan -i Set::Object пробовал?

Offline

#3 2010-06-30 21:01:11

liosha
Member
From: Moscow
Registered: 2008-03-04
Posts: 8,447
Website

Re: Как заставить работать osmarender под windows?

Alexandr Zeinalov wrote:

cpan -i Set::Object пробовал?

не поможет, а вот в ppm он есть

Offline

Board footer

Powered by FluxBB