Re: [OpenLayers-Users] GeoJSON

2010-04-22 Thread Lisa Gaudette
Look into using OpenLayers.Layer.GML with format: OpenLayers.Format.GeoJSON, as shown with some other types here: http://docs.openlayers.org/library/layers.html#gml And then there's info on styling here: http://docs.openlayers.org/library/feature_styling.html -- View this message in context: ht

[OpenLayers-Users] GeoJSON

2010-04-21 Thread pedro hernandez
Hi, This is my first post and I wanna congratulate for your project. I'm creating a layer based in geojson output. var geojson_format = new OpenLayers.Format.GeoJSON(); var gs = geojson_format.read( my_output ,"FeatureCollection"); And in this output I have some propierties I wanna r

[OpenLayers-Users] GeoJSON

2010-04-21 Thread pedro hernandez
Hi, This is my first post and I wanna congratulate for your project. I'm creating a layer based in geojson output. var geojson_format = new OpenLayers.Format.GeoJSON(); var gs = geojson_format.read( my_output ,"FeatureCollection"); And in this output I have some propierties I wanna r

Re: [OpenLayers-Users] GeoJSON MultiPoint Features [SEC=UNCLASSIFIED]

2010-02-15 Thread John Phan
February 2010 3:11 AM To: Christopher Schmidt Cc: John Phan; users@openlayers.org Subject: Re: [OpenLayers-Users] GeoJSON MultiPoint Features [SEC=UNCLASSIFIED] On Mon, Feb 15, 2010 at 4:50 PM, Christopher Schmidt wrote: > On Mon, Feb 15, 2010 at 07:44:13AM +0100, Eric Lemoine wrote: >>

Re: [OpenLayers-Users] GeoJSON MultiPoint Features [SEC=UNCLASSIFIED]

2010-02-15 Thread Eric Lemoine
On Mon, Feb 15, 2010 at 4:50 PM, Christopher Schmidt wrote: > On Mon, Feb 15, 2010 at 07:44:13AM +0100, Eric Lemoine wrote: >> On Monday, February 15, 2010, John Phan wrote: >> > >> > Hi, >> > >> > I'm kind of new to OpenLayers. But I want to use GeoJSON to request >> > geometric features using

Re: [OpenLayers-Users] GeoJSON MultiPoint Features [SEC=UNCLASSIFIED]

2010-02-15 Thread Christopher Schmidt
On Mon, Feb 15, 2010 at 07:44:13AM +0100, Eric Lemoine wrote: > On Monday, February 15, 2010, John Phan wrote: > > > > Hi, > > > > I'm kind of new to OpenLayers. But I want to use GeoJSON to request > > geometric features using the geometric type: MultiPoint. > > > > The browser has no problems r

Re: [OpenLayers-Users] GeoJSON MultiPoint Features [SEC=UNCLASSIFIED]

2010-02-14 Thread Eric Lemoine
On Monday, February 15, 2010, John Phan wrote: > > Hi, > > I'm kind of new to OpenLayers. But I want to use GeoJSON to request geometric > features using the geometric type: MultiPoint. > > The browser has no problems rendering the vector layer. > > Now how do I associate an onclick event with ea

[OpenLayers-Users] GeoJSON MultiPoint Features [SEC=UNCLASSIFIED]

2010-02-14 Thread John Phan
Hi, I'm kind of new to OpenLayers. But I want to use GeoJSON to request geometric features using the geometric type: MultiPoint. The browser has no problems rendering the vector layer. Now how do I associate an onclick event with each of these points (rather than a collection of points). My

Re: [OpenLayers-Users] geojson - Performance issue

2010-01-06 Thread Arnd Wippermann
Gesendet: Mittwoch, 6. Januar 2010 17:10 An: Andreas Hocevar Cc: users@openlayers.org; users-boun...@openlayers.org Betreff: Re: [OpenLayers-Users] geojson - Performance issue Thanks for this alternative Andreas. I don't know much about sld but I read some threads and it seems to be the

Re: [OpenLayers-Users] geojson - Performance issue

2010-01-06 Thread Andreas Hocevar
ca>_ > __http://www.inspq.qc.ca_ <http://www.inspq.qc.ca/> > > > > > > > *Andreas Hocevar @openlayers.org* > Envoyé par : users-boun...@openlayers.org > > 06/01/2010 10:35 AM > > > A > users@openlayers.org > cc > >

Re: [OpenLayers-Users] geojson - Performance issue

2010-01-06 Thread Steve . Toutant
users-boun...@openlayers.org 06/01/2010 10:35 AM A users@openlayers.org cc Objet Re: [OpenLayers-Users] geojson - Performance issue Hi, 2000+ features is way too much for rendering in the browser. if you use mapserver already, then you can also query the layer as WMS layer, using sld_b

Re: [OpenLayers-Users] geojson - Performance issue

2010-01-06 Thread Andreas Hocevar
Hi, 2000+ features is way too much for rendering in the browser. if you use mapserver already, then you can also query the layer as WMS layer, using sld_body with a filter. If your query is complex, use Layer.WMS.Post instead of Layer.WMS to avoid urls that are too long for IE. Regards, Andreas.

[OpenLayers-Users] geojson - Performance issue

2010-01-06 Thread Steve . Toutant
Hi, I created a WMS (mapserver) layer containing 13400 polygons. It loads in less then 3 seconds. Good. I need to develop a tool for the user so he can create a custom query on this layer to retreive specific polygons. In a form, the user select the parameters and launch the request. Here is th

Re: [OpenLayers-Users] geojson google maps zoom levels

2009-09-29 Thread Pierluigi Santin
i must add that the problem occurs only in Internet explorer 7 or 8 - Original Message - From: Pierluigi Santin To: users@openlayers.org Sent: Monday, September 28, 2009 12:54 PM Subject: geojson google maps zoom levels i have a big problem i'm managing to overlay a geo

[OpenLayers-Users] geojson google maps zoom levels

2009-09-28 Thread Pierluigi Santin
i have a big problem i'm managing to overlay a geojson layer to google maps i did it succesfully my problem is that when i zoom in too much my geojson level disapperar i cannot get the problem can someone help me? this is the code <%@ Page Language="C#" AutoEventWireup="true" CodeFile="DefaultOL.a

Re: [OpenLayers-Users] GeoJSON filter function

2009-09-11 Thread Adrián Ribao Martínez
Hello, you are right, my mail wasn't clear. Whant I wanted to do is change the icon of the feature in function of an attribute. I thought that the filter funcion would help me to do that but then I discovered this solution: var style = new OpenLayers.Style({ 'pointRadius': 10, 'exter

Re: [OpenLayers-Users] GeoJSON filter function

2009-09-11 Thread Christopher Schmidt
On Fri, Sep 11, 2009 at 10:36:32AM +0200, Adrian Ribao wrote: > Hello, > > I'm trying to use GeoJSON Format but I can't make the filter function work. > Could someone give me an example please? You're trying to describe how you're trying to do something, instead of what you're trying to do. I rec

[OpenLayers-Users] GeoJSON filter function

2009-09-11 Thread Adrian Ribao
Hello, I'm trying to use GeoJSON Format but I can't make the filter function work. Could someone give me an example please? Thank you very much! Regards, Adrián. ___ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users

Re: [OpenLayers-Users] Geojson input: why error on 3d points?

2009-05-01 Thread Christopher Schmidt
On Fri, May 01, 2009 at 09:49:42AM +0100, Peter Robins wrote: > On Thursday 30 Apr 2009, Christopher Schmidt wrote: > > On Thu, Apr 30, 2009 at 09:34:23AM +0100, Peter Robins wrote: > > > On Wednesday 29 Apr 2009, Christopher Schmidt wrote: > > > > On Wed, Apr 29, 2009 at 09:03:24AM +0100, Peter Ro

Re: [OpenLayers-Users] Geojson input: why error on 3d points?

2009-05-01 Thread Peter Robins
On Thursday 30 Apr 2009, Christopher Schmidt wrote: > On Thu, Apr 30, 2009 at 09:34:23AM +0100, Peter Robins wrote: > > On Wednesday 29 Apr 2009, Christopher Schmidt wrote: > > > On Wed, Apr 29, 2009 at 09:03:24AM +0100, Peter Robins wrote: > > > > I've been having a bizarre problem where the same

Re: [OpenLayers-Users] Geojson input: why error on 3d points?

2009-04-30 Thread Christopher Schmidt
On Thu, Apr 30, 2009 at 09:34:23AM +0100, Peter Robins wrote: > On Wednesday 29 Apr 2009, Christopher Schmidt wrote: > > On Wed, Apr 29, 2009 at 09:03:24AM +0100, Peter Robins wrote: > > > I've been having a bizarre problem where the same data (from > > > featureserver) has been displayed when in k

Re: [OpenLayers-Users] Geojson input: why error on 3d points?

2009-04-30 Thread Peter Robins
On Wednesday 29 Apr 2009, Christopher Schmidt wrote: > On Wed, Apr 29, 2009 at 09:03:24AM +0100, Peter Robins wrote: > > I've been having a bizarre problem where the same data (from > > featureserver) has been displayed when in kml format, but not in geojson. > > Delving into the code, I find this

Re: [OpenLayers-Users] Geojson input: why error on 3d points?

2009-04-29 Thread Christopher Schmidt
On Wed, Apr 29, 2009 at 09:03:24AM +0100, Peter Robins wrote: > I've been having a bizarre problem where the same data (from featureserver) > has been displayed when in kml format, but not in geojson. Delving into the > code, I find this is because geojson.read throws an error if there are more

[OpenLayers-Users] Geojson input: why error on 3d points?

2009-04-29 Thread Peter Robins
I've been having a bizarre problem where the same data (from featureserver) has been displayed when in kml format, but not in geojson. Delving into the code, I find this is because geojson.read throws an error if there are more than 2 coords in a point. Why is this? 3d points are perfectly valid

Re: [OpenLayers-Users] GeoJSON layer and modifyFeature control

2008-12-05 Thread Adorian Ardelean
Hi Eric, I've already passed through something like this. At least the code looks similar to me. Code is below: var mycontext = { getColor: function(feature) { var jsonvalue = feature.attributes["fillcolor"]; return jsonvalue; } }; var contexttemplate = { fillOpacity: 0.

Re: [OpenLayers-Users] GeoJSON layer and modifyFeature control

2008-12-04 Thread Eric Lemoine
On Thu, Dec 4, 2008 at 11:25 PM, Adorian Ardelean <[EMAIL PROTECTED]> wrote: > Hi Alexandre, > > No. This is very similar to what I had initially except adding "select" > style to stylemap. At click on feature, the select style is applied, but no > edit of vertex is possible (no drag-able circles a

Re: [OpenLayers-Users] GeoJSON layer and modifyFeature control

2008-12-04 Thread Adorian Ardelean
Hi Alexandre, No. This is very similar to what I had initially except adding "select" style to stylemap. At click on feature, the select style is applied, but no edit of vertex is possible (no drag-able circles appear on vertexes). So I can make the layer editable by adding rule, but unfortunatel

Re: [OpenLayers-Users] GeoJSON layer and modifyFeature control

2008-12-04 Thread Robert Sanson
This works for me: var crop_style = OpenLayers.Util.extend({}, OpenLayers.Feature.Vector.style['default']); crop_style.strokeWidth = 3; crop_style.strokeColor = "#ff"; crop_style.fillOpacity = 0.25; crop_style.pointRadius = 2;

Re: [OpenLayers-Users] GeoJSON layer and modifyFeature control

2008-12-04 Thread Alexandre Dube
Hi, Maybe this can helps. var oStyle = new OpenLayers.Style({ pointRadius: "${radius}", fillOpacity: 0.4, strokeColor: "#00", strokeWidth: 2 }, { context: { radius: function(feature) { return Math.min(feat

Re: [OpenLayers-Users] GeoJSON layer and modifyFeature control

2008-12-04 Thread Adorian Ardelean
Hi Eric, No...it is not working yet. There is some improvement indeed: I can see now the selection style, but vertexes are still not editable. I have tried to adapt the suggestion in post I have mentioned earlier. var styleMap = new OpenLayers.StyleMap(); var rules = [new OpenLayers.Rule({ symb

Re: [OpenLayers-Users] GeoJSON layer and modifyFeature control

2008-12-04 Thread Eric Lemoine
Hello Try: new OpenLayers.StyleMap({ "default": yourStyle }); Hope this helps, Eric 2008/12/4, Adorian Ardelean <[EMAIL PROTECTED]>: > Hi again, > > I have eliminated also the context for style as a source of problem for the > modifyFeature control not working. So it seems that just by spe

Re: [OpenLayers-Users] GeoJSON layer and modifyFeature control

2008-12-04 Thread Adorian Ardelean
Hi again, I have eliminated also the context for style as a source of problem for the modifyFeature control not working. So it seems that just by specifying a styleMap as option when declaring the vector layer makes the modifyFeature control not functional. var template = { fillOpacity: 0.6,

Re: [OpenLayers-Users] GeoJSON layer and modifyFeature control

2008-12-04 Thread Adorian Ardelean
nt:* Thursday, December 04, 2008 10:17 > *To:* [EMAIL PROTECTED] > *Cc:* users@openlayers.org > *Subject:* Re: [OpenLayers-Users] GeoJSON layer and modifyFeature control > > Hi Jan, > > In test case, it does not work even if I have only one layer and one > modifyFeature cont

Re: [OpenLayers-Users] GeoJSON layer and modifyFeature control

2008-12-04 Thread Jan van der Ven
(modifyControl); modifyControl.activate(); Hope this helps. Kind regards, Jan _ From: Adorian Ardelean [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2008 10:17 To: [EMAIL PROTECTED] Cc: users@openlayers.org Subject: Re: [OpenLayers-Users] GeoJSON layer and modifyFeature

Re: [OpenLayers-Users] GeoJSON layer and modifyFeature control

2008-12-04 Thread Adorian Ardelean
gt; *Sent:* Thursday, December 04, 2008 09:47 > *To:* users@openlayers.org > *Subject:* [OpenLayers-Users] GeoJSON layer and modifyFeature control > > Hi, > > I have a very simple question: is it possible to modify features in a layer > populated from a GeoJSON file? I am asking just a

Re: [OpenLayers-Users] GeoJSON layer and modifyFeature control

2008-12-04 Thread Jan van der Ven
@openlayers.org Subject: [OpenLayers-Users] GeoJSON layer and modifyFeature control Hi, I have a very simple question: is it possible to modify features in a layer populated from a GeoJSON file? I am asking just about modifying feature on map without the saving part. I did add the modifyFeature

[OpenLayers-Users] GeoJSON layer and modifyFeature control

2008-12-04 Thread Adorian Ardelean
Hi, I have a very simple question: is it possible to modify features in a layer populated from a GeoJSON file? I am asking just about modifying feature on map without the saving part. I did add the modifyFeature control, but I cannot select and modify any of the polygons in this layer ( var region

Re: [OpenLayers-Users] GeoJSON and SelectFeature control

2008-11-04 Thread Adorian Ardelean
Hi Robert, For this specific application I have not included the modifyFeature control, but information on patch is helpful because I have another application that involves both controls. Unfortunatelly, this second application is too embedded in a CMS-like environment and it will require me some

Re: [OpenLayers-Users] GeoJSON and SelectFeature control

2008-11-04 Thread Robert Sanson
Hi Adorian Do you remember Eric Lemoine saying that the selectFeature and modifyFeature controls don't behave well together - there is a patch for that: See #1741. That would be good to know if the patch makes your problem go away. Eric 2008/10/16, Eric Lemoine <[EMAIL PROTECTED]>: > Hi. Do

Re: [OpenLayers-Users] GeoJSON and SelectFeature control

2008-11-03 Thread Adorian Ardelean
Hi Robert, Thank you for your reply! I have a very similar way to load the geoJSON file and handle the controls outside map div. Except that I put part of code for loading geoJSON in a function: I want only one GeoJSON layer in which I load/switch an indeterminate number of GeoJSON files. This par

Re: [OpenLayers-Users] GeoJSON and SelectFeature control

2008-11-02 Thread Robert Sanson
Hi Adorian I have some code that does this: //First I specify the format var geojson_format = new OpenLayers.Format.GeoJSON(); //Then I load some geoJSON from another Web page: var cropsurl = 'http://web-cf8dev.agriquality.co.nz/wstest/scid_ajax.cfm?mode=getFeatures&Farm_id=' + farmid; Open

[OpenLayers-Users] GeoJSON and SelectFeature control

2008-10-31 Thread Adorian Ardelean
Hi, I am trying to link a SelectFeature control to a dynamically loaded GeoJSON layer. I would like to serialize features drawn in this layer, but it seems that SelectFeature control does not work for me. Hover effect does not show either. Features from JSON layer are polygons. I would like to kn

Re: [OpenLayers-Users] GeoJSON layer on top of google - repeated load of features

2008-07-02 Thread Eric Lemoine
The styleMap option must remain a vector layer option. So you now use Layer.Vector in place of Layer.GML, and pass the styleMap option to the vector layer ctor. Hope that helps. Eric 2008/7/2, Adorian Ardelean <[EMAIL PROTECTED]>: > Hi, > > *Yes* the position of features on map is OK now (I initi

Re: [OpenLayers-Users] GeoJSON layer on top of google - repeated load of features

2008-07-02 Thread Adorian Ardelean
OK I found solution: I had to place stylemap as option when defining specimen vector layer. Hope all is ok now. Thank you, Adorian http://mybiosis.info On Wed, Jul 2, 2008 at 8:16 PM, Adorian Ardelean <[EMAIL PROTECTED]> wrote: > Hi, > > *Yes* the position of features on map is OK now (I init

Re: [OpenLayers-Users] GeoJSON layer on top of google - repeated load of features

2008-07-02 Thread Adorian Ardelean
Hi, *Yes* the position of features on map is OK now (I initially added in the same place only this: "projection: new OpenLayers.Projection("EPSG:4326")". Thank you! However, the style map does not function yet. Works OK under: specimens2 = new OpenLayers.Layer.GML("specimens", "geojson.php", {f

Re: [OpenLayers-Users] GeoJSON layer on top of google - repeated load of features

2008-07-02 Thread Eric Lemoine
Hi. How about that: var format = new OpenLayers.Format.GeoJSON({externalProjection: new OpenLayers.Projection('EPSG:4326'),internalProjection: map.getProjectionObject()}); Note that i haven't tested this. Eric 2008/7/2, Adorian Ardelean <[EMAIL PROTECTED]>: > Hi, > > First of all thank you for

Re: [OpenLayers-Users] GeoJSON layer on top of google - repeated load of features

2008-07-01 Thread Adorian Ardelean
Hi all, I realize now that some parts of the code in my previous message included bits from trials. So the correct and functional code for second version of loading a GeoJSON file would be: OpenLayers.loadURL("geojson.php", {}, null, onLoadgml, onLoadFailedgml); function onLoadgml(r) { if (

Re: [OpenLayers-Users] GeoJSON layer on top of google - repeated load of features

2008-07-01 Thread Adorian Ardelean
Hi, First of all thank you for the prompt suggestion. Worked perfectly and I was able to include also a style to work with properties defined within GeoJSON file: * specimens = new OpenLayers.Layer.GML("specimens", "geojson.php", {format: OpenLayers.Format.GeoJSON, projection: new OpenLayers.Proje

Re: [OpenLayers-Users] GeoJSON layer on top of google

2008-06-28 Thread Christopher Schmidt
On Sat, Jun 28, 2008 at 04:39:19PM +0200, Adorian Ardelean wrote: > Hi, > > I am trying to load a GeoJSON file in a layer on top of a google map > (OpenLayers 2.6). > > I used for now: > var colfeatures = new OpenLayers.Layer.GML("specimens", "geojson.php", > {format: OpenLayers.Format.GeoJSON});

[OpenLayers-Users] GeoJSON layer on top of google

2008-06-28 Thread Adorian Ardelean
Hi, I am trying to load a GeoJSON file in a layer on top of a google map (OpenLayers 2.6). I used for now: var colfeatures = new OpenLayers.Layer.GML("specimens", "geojson.php", {format: OpenLayers.Format.GeoJSON}); map.addLayer(colfeatures); Entities show up on the map somewhere close to 0,0. F

[OpenLayers-Users] GeoJSON 1.0 Release

2008-06-16 Thread Christopher Schmidt
The GeoJSON Authors are proud to announce the finalization of the GeoJSON 1.0 Specification. Representing more than a year's worth of community discussion and development, the GeoJSON specification describes an easy to use, extensible format for transferring geographic data over the web. With supp

Re: [OpenLayers-Users] GeoJSON: members versus features

2007-10-19 Thread Bart van den Eijnden (OSGIS)
GIS <[EMAIL PROTECTED]> Cc: users@openlayers.org Onderwerp: Re: [OpenLayers-Users] GeoJSON: members versus features Datum: 19/10/07 11:43 > Er, I'm pretty sure GeoServer is wrong, we just this week got around to > updating to the latest geojson spec, I think it's in svn, but not

Re: [OpenLayers-Users] GeoJSON: members versus features

2007-10-19 Thread Chris Holmes
Er, I'm pretty sure GeoServer is wrong, we just this week got around to updating to the latest geojson spec, I think it's in svn, but not released yet. OpenLayers has definitely been ahead of us on spec implementation. Bart van den Eijnden (OSGIS) wrote: Hi list, when trying the Geoserver G

[OpenLayers-Users] GeoJSON: members versus features

2007-10-19 Thread Bart van den Eijnden (OSGIS)
Hi list, when trying the Geoserver GeoJSON output against OpenLayers it does not work out of the box. Geoserver outputs {"type":"FeatureCollection","members":[{ whereas OpenLayers expects: {"type":"FeatureCollection","features":[{ Looking at the last GeoJSON spec Geoserver seems to be in the

[OpenLayers-Users] geojson php lib

2007-06-28 Thread Eric Lemoine
Hi Is anyone aware of existing php code capable of generating geojson? I've google'd around but haven't found anything useful... Thanks, -- Eric ___ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users

Re: [OpenLayers-Users] GeoJSON

2007-06-06 Thread Christopher Schmidt
On Wed, Jun 06, 2007 at 01:33:10PM -0600, Tim Schaub wrote: > Stephen Woodbridge wrote: > > Isn't Tim or someone else working on GeoJSON to give an alternative to > > WFS that does not have the XML parsing and overhead? I would think that > > this might be a good alternative. If this is really ha

[OpenLayers-Users] GeoJSON

2007-06-06 Thread Tim Schaub
Stephen Woodbridge wrote: > Isn't Tim or someone else working on GeoJSON to give an alternative to > WFS that does not have the XML parsing and overhead? I would think that > this might be a good alternative. If this is really happening, then we > might want to ping the mapserver list about supp