Displaying 20 results from an estimated 3000 matches similar to: "Best way to render KML files using RXML templates"
2006 Sep 26
0
Is it possible to render RXML partials in RHTML templates?
I have a RHTML template and I would like the output of a RXML partial to
be embedded within it.
When I do <%= render(:partial => ''list_edit'') %> where there exists a
_list_edit.rmxl file, I get XML parsing errors in the browser - I
believe because the partial is causing the rendered content to be
identified as XML instead of HTML.
Is there any way to
2006 Nov 07
0
rxml template accidentally rendered within html layout
Hi,
I have the following in my controller:
def show
@quest = Quest.find(params[:id])
respond_to do |format|
format.html
format.xml
end
end
And in my routes:
map.resources :quests
I have two views for this action, quests/show.rhtml and
quests/show.rxml. Now what I would expect as a response to
''/quests/1.xml'' is that Rails sends, as XML, the rendered rxml
2006 Jul 20
2
Why is my rxml view being wrapped by the rhtml template in views/layouts?
Why is my rxml view being wrapped by the rhtml template in views/
layouts?
I was experimenting with REST, I had a nice little test program with
one table: ''resources''. Here''s what the show method looks like:
def show
@resource = Resource.find(params[:id])
respond_to do |accepts|
accepts.html
accepts.xml
end
end
I have a show.rhtml
2008 Apr 20
1
Why is respond_to always rending the RXML view?
I''m having a problem in Rails 2 where respond_to is always rendering the
RXML view even in the HTML rendering response. Can anyone tell me why
this might be happening? Here''s a code snippet:
respond_to do |accepts|
accepts.html
accepts.xml { render :action => ''show.rxml'', :layout => false}
end
If I change this to the following it works fine:
2006 Mar 12
0
ERB and Builder template engines shouldn''t be so heavily wired in ActionView::Base
Problem:
1. ERB and Builder template engines are heavily wired in ActionView::Base
2. Should be optional. If we use different engine - why load all their
stuff if not needed?
3. There are template engines which expect files in their own locations
and cache them in their own way. For instance a template engine may
store templates in a database. These engines don''t need any central
source
2008 Aug 18
2
Fwd: Parsing XML or KML into CSV /Using R for geocoding , OR problem
Hi,
I have a data file in a KML format which is Google Earth's format for
geographic data. I need to import it into a csv file . How can I do that.
KML format is just like XML format .example below
Which R module with deal with an OR problem (like transportation problem
using geo coded data as in the example below)
Regards,
Ajay
www.decisionstats.com
-
<?xml version="1.0"
2014 Sep 12
0
Compatibility issues between Matrix and kml
Hi the list,
I am the maintainer of the package kml. I quite often receive some email
about a specific bug. The answer is always the same, I tell people to remove
the package Matrix, and then kml works fine.
I wonder what my code is not compatible with the Matrix package. Here is a
(simplified) version of the kml code :
--- 8< ------------
library(longitudinalData)
2015 May 26
0
Compatibility issue between lme4 and kml (operateur "[")
Hi all,
There is a compatibility issue between the package 'lme4' and my package
'kml'. I define the "[" operator. It works just fine in my package (1). If I
try to use the lme4 package, then it does no longer work (2). Moreover, it
has some kind of strange behavior (3). Do you know what is wrong? Any idea
of how I can correct that?
Thanks for your help
Christophe
---
2006 Jan 22
2
Using register_template_handler to serve CSS files (Making ActionView handle .css as .rhtml)
Hi,
I wanted to be able to use some Rails code inside CSS files, so I set up
a controller (StylesController) to serve CSS files that reside inside
the controller''s view folder when the browser requests /stylesheets/:action
So in the controller I just define empty actions with the names I want
my style sheets in (ie: def cooleffects end - that would respond to
2012 Feb 22
1
How can I save plot()/points() using SHP files into KML format?
Hi,
I am new to R and am a very basic user. I'm importing SHP files, adding
plots of random locations within my polygon (these files have GPS data), and
then want to save these plots (intact with added points) as KML files to
look at in GoogleEarth (or possibly as SHP files which I can then convert
into KML).
This is as far as I've gotten (code below) and am lost as to next steps,
Any
2009 Feb 24
0
kml 0.9.2
KmL, version 0.9.2
KmL is a new implematation of k-means for longitudinal data (or
trajectories). This algorithm is able to deal with missing value and
provides an easy way to re roll the algorithm several times, varying
the starting conditions and/or the number of clusters looked for. It
also provide a graphical interface to let the user chose the best
clusterization, when classical
2009 Feb 24
0
kml 0.9.2
KmL, version 0.9.2
KmL is a new implematation of k-means for longitudinal data (or
trajectories). This algorithm is able to deal with missing value and
provides an easy way to re roll the algorithm several times, varying
the starting conditions and/or the number of clusters looked for. It
also provide a graphical interface to let the user chose the best
clusterization, when classical
2010 Mar 04
0
KmL 1.1.1
?kml? is an implementation of k-means for longitudinal data (or
trajectories). This algorithm is able to deal with missing value
and provides an easy way to re roll the algorithm several times, varying
the starting conditions and/or the number of clusters looked for.
KmL 1.1.1 addition:
- 7 imputations methods for longitudinal data
- Calculus of three qualities criterion (Calinski&Harabatz,
2010 Mar 04
0
KmL 1.1.1
?kml? is an implementation of k-means for longitudinal data (or
trajectories). This algorithm is able to deal with missing value
and provides an easy way to re roll the algorithm several times, varying
the starting conditions and/or the number of clusters looked for.
KmL 1.1.1 addition:
- 7 imputations methods for longitudinal data
- Calculus of three qualities criterion (Calinski&Harabatz,
2010 Nov 26
1
Generating kml lines output
Dear,
I would like to generate kml file with lines (<LineString>) of
different style (definitely color, but width would also be nice to
see). However with kmlLine from maptools package I am able only to
output the single first Lines object (first row of
SpatialLinesDataFrame)
I guess the option would be to have single Lines object (instead of
list of them), but then also the style
2006 Feb 02
1
actionmailer - No rhtml, rxml, or delegate template
I''m getting this error when I try to send an email.
No rhtml, rxml, or delegate template found for signup_thanks
But I do have signup_thanks.rhtml in app/view/notifier
This is in the notifier model.
class Notifier < ActionMailer::Base
def signup_thanks(sent_at = Time.now)
@subject = "the subject works!"
@body["first_name"] = "first name"
2005 Nov 30
0
How to select between RXML and RHTML template at runtime ?
Hi !
I have some actions which I'd like to serve using XML instead of HTML.
I have two action templates: action.rhtml and action.rxml. If I do
render :action => 'action', ActionPack automatically selects the RHTML
template.
Is there a programmatic way of selecting which template I'd like to use ?
Thanks !
--
François Beausoleil
http://blog.teksol.info/
2007 Sep 29
1
templates with same name before extension are cached
Hi all,
I was just wondering if this is the intended behavior. Here is my setup:
controller
def index
respond_to do |f|
f.xml { render :xml => true }
f.html { render :layout => :none }
end
end
In my views I have a file for each type
index.herb
index.xerb
The first request I send is cached and interferes with the other one.
For example, if I send an xml request
2006 Jun 08
1
No rhtml, rxml, or delegate template found
hi ,
i''m having a problem with rendering a partial , the partial is in the
apps/view/polls folder with the name : _antwoorden_user.rhtml
in the view i''m rendering it with
<% if @user %>
<%= render :partial => ''polls/antwoorden_user'', :locals => {:poll =>
@poll, :user => @user} %>
<% else %>
....
gives me the error =>
No
2012 Feb 24
1
Producing KML files
Hi,
I am very new to R and I am trying to write KML files. I am running R-2.13.1 and I have the following packages:
- AKIMA
- RGDAL
- RSAGA
- SP
I was trying to run the simple example that I found at the following web page:
http://spatial-analyst.net/wiki/index.php?title=Export_maps_to_GE
The lines that I can run are:
data(meuse.grid)