Revision: 3801
Author: ksprotte
URL: http://bknr.net/trac/changeset/3801
fixed regexp in REPLACE-ALL-URL-HOSTS to also match a port if it is present
U trunk/projects/bos/web/kml-handlers.lisp
Modified: trunk/projects/bos/web/kml-handlers.lisp
===================================================================
--- trunk/projects/bos/web/kml-handlers.lisp 2008-09-05 08:54:41 UTC (rev 3800)
+++ trunk/projects/bos/web/kml-handlers.lisp 2008-09-05 09:07:28 UTC (rev 3801)
@@ -89,7 +89,7 @@
(defun replace-all-url-hosts (string new-host)
"Replaces all hostnames in STRING by NEW-HOST."
- (ppcre:regex-replace-all #?r"((?:https?|ftp)://)\w+(?:\.\w+)*" string #?r"\1${new-host}"))
+ (ppcre:regex-replace-all #?r"((?:https?|ftp)://)\w+(?:\.\w+)*(?::\d+)?" string #?r"\1${new-host}"))
(defun replace-lang-query-params (string new-lang)
(ppcre:regex-replace-all #?r"(?i)(lang=)[a-z]{2,2}" string #?r"\1${new-lang}"))
Revision: 3796
Author: ksprotte
URL: http://bknr.net/trac/changeset/3796
new POI slot: lod-min - the lod minimum used in Google Earth
Users can customize this in the CMS. This intends to address the issue:
KML/Google Earth: Aus gr?\195?\182?\195?\159erer H?\195?\182he soll das BOS-Icon immer zu sehen sein
An arbitrary POI can be chosen or newly created for this purpose - it
needn't even be "published-web".
U trunk/projects/bos/web/contract-tree.lisp
Modified: trunk/projects/bos/web/contract-tree.lisp
===================================================================
--- trunk/projects/bos/web/contract-tree.lisp 2008-09-04 17:18:31 UTC (rev 3795)
+++ trunk/projects/bos/web/contract-tree.lisp 2008-09-04 17:18:33 UTC (rev 3796)
@@ -370,7 +370,7 @@
;; has already been called
:base-node *quad-tree*
:name '*contract-tree*))
- (dolist (contract (sort (copy-list (all-contracts)) #'> :key #'contract-area))
+ (dolist (contract (sort (copy-list (all-contracts)) #'> :key #'contract-area))
(when (contract-published-p contract)
(insert-contract *contract-tree* contract)))
(geometry:register-rect-subscriber geometry:*rect-publisher* *contract-tree*
Revision: 3795
Author: ksprotte
URL: http://bknr.net/trac/changeset/3795
new POI slot: lod-min - the lod minimum used in Google Earth
Users can customize this in the CMS. This intends to address the issue:
KML/Google Earth: Aus gr?\195?\182?\195?\159erer H?\195?\182he soll das BOS-Icon immer zu sehen sein
An arbitrary POI can be chosen or newly created for this purpose - it
needn't even be "published-web".
U trunk/projects/bos/m2/poi.lisp
Modified: trunk/projects/bos/m2/poi.lisp
===================================================================
--- trunk/projects/bos/m2/poi.lisp 2008-09-04 17:18:28 UTC (rev 3794)
+++ trunk/projects/bos/m2/poi.lisp 2008-09-04 17:18:31 UTC (rev 3795)
@@ -107,7 +107,10 @@
:documentation "name des icons")
(media
:accessor poi-media :initarg :media :initform nil
- :documentation "liste aller poi-medien, wie poi-image, poi-airal ...")))
+ :documentation "liste aller poi-medien, wie poi-image, poi-airal ...")
+ (lod-min
+ :accessor poi-lod-min :initarg :poi-lod-min :initform 600
+ :documentation "the lod minimum used in Google Earth")))
(defmethod convert-slot-value-while-restoring ((object poi) (slot-name (eql 'published))
@@ -124,7 +127,7 @@
(defmethod destroy-object :before ((poi poi))
(mapc #'delete-object (poi-media poi)))
-(deftransaction update-poi (poi &key published-web published-earth icon area)
+(deftransaction update-poi (poi &key published-web published-earth icon area lod-min)
(check-type published-web boolean)
(check-type published-earth boolean)
(check-type area list)
@@ -134,6 +137,8 @@
(setf (poi-icon poi) icon))
(when area
(setf (poi-area poi) area))
+ (when lod-min
+ (setf (poi-lod-min poi) (abs lod-min)))
poi)
(defmethod poi-complete ((poi poi) language)
@@ -231,7 +236,7 @@
(format t "poi.panoramas = [ ~{~D~^, ~} ];~%" (mapcar #'store-object-id (poi-panoramas poi))))
(when (poi-movies poi)
(format t "poi.movies = [ ~{~S~^, ~} ];~%"
- (mapcar #'(lambda (movie)
+ (mapcar #'(lambda (movie)
(assert (stringp (poi-movie-url movie)) nil
"POI-MOVIE-URL of ~S is ~S, but should be a string"
movie (poi-movie-url movie))