Search by drawing question

65 views
Skip to first unread message

Balázs Mészáros

unread,
Jul 28, 2016, 11:52:10 AM7/28/16
to Heron Mapping Client Development
Hey guys,

How can I search by a shape from OLE editor? It is possible to do it?
So I draw a shape with a tool then use this layer in the search function.


Thanks!

Just van den Broecke

unread,
Jul 28, 2016, 1:29:07 PM7/28/16
to geoext-vi...@googlegroups.com
Unfortunately not (yet). Searching in a target Vector Layer from
geometries in a Source Vector Layer (SearchByObjectSelection via
Heron.widgets.search.SearchByFeaturePanel) is currently only available
when the Source Vector Layer is a WFS (related to a WMS).

With SearchByDraw which you probably know:
http://lib.heron-mc.org/heron/latest/examples/searchbydraw/ you can draw
several kinds of geometries.

A possible solution would be to add an option to the
Heron.widgets.search.SearchByDrawPanel to use geometries from the
Drawing Vector Layer as the SelectionLayer or via the
SearchByFeaturePanel to use features (all?) from the Drawing Layer.

best,

Just
> --
> --
> You received this message because you are subscribed to the Google
> Groups "geoext-viewer-devel" group.
> To post to this group, send email to
> geoext-vi...@googlegroups.com
> To unsubscribe from this group, send email to
> geoext-viewer-d...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/geoext-viewer-devel?hl=en
>
> ---
> You received this message because you are subscribed to the Google
> Groups "Heron Mapping Client Development" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to geoext-viewer-d...@googlegroups.com
> <mailto:geoext-viewer-d...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

Mauro

unread,
Aug 1, 2016, 2:48:06 PM8/1/16
to Heron Mapping Client Development
Hi, belazs. 
I have made a custom widget to perform a search by vector layers (including ole editor, uploaded features and custom layers) that is very useful to me. You can see it working here


1)Draw something
2)Go to searches->"busqueda por buffer"
3)Select editor from vector layers
4)Press "buffer"
5)Select "Descarga_cartas_ign" (a very light shape)
6)Press "busqueda"

If it works for you, i can help you. 

Just van den Broecke

unread,
Aug 2, 2016, 7:07:25 AM8/2/16
to geoext-vi...@googlegroups.com
Hi Mauro,

These are really impressive (and working) extensions for Heron Vector
Search!
I would love to see these integrated in Heron and Heron-examples:
i.e. Heron.widgets.search.SearchByBuffer and possibly others like
StreetView.

Are you prepared to donate the code to the project, maybe even via a
Pull request in GitHub?

best,

Just

Mauro

unread,
Aug 2, 2016, 10:28:59 AM8/2/16
to Heron Mapping Client Development, jus...@gmail.com
Of course i would donate the code (it would be not much a donation, most of the code is yours). 
Let me see if i can build a working example (maybe based on the search by feature selection) and perhaps i will ask for a little help for the github part.


> For more options, visit this group at
> http://groups.google.com/group/geoext-viewer-devel?hl=en
>
> ---
> You received this message because you are subscribed to the Google
> Groups "Heron Mapping Client Development" group.
> To unsubscribe from this group and stop receiving emails from it, send

Mauro

unread,
Aug 2, 2016, 2:44:55 PM8/2/16
to Heron Mapping Client Development, jus...@gmail.com
Ok, i have this to begin with:


it is based on the google example because i needed a projected (in meters) SRS
Also, it uses some libraries with their own licences (jsts->gnu, javascript.util->MIT, and attache.array->copyrighted?). 
These are not available from http://cdnjs.cloudflare.com, so maybe i need to find another source

Any suggestions?
> For more options, visit this group at
> http://groups.google.com/group/geoext-viewer-devel?hl=en
>
> ---
> You received this message because you are subscribed to the Google
> Groups "Heron Mapping Client Development" group.
> To unsubscribe from this group and stop receiving emails from it, send

Balázs Mészáros

unread,
Aug 4, 2016, 1:31:12 PM8/4/16
to Heron Mapping Client Development
Thanks Mauro! It works!

Just van den Broecke

unread,
Aug 5, 2016, 7:10:07 AM8/5/16
to Mauro, Heron Mapping Client Development
Hi,

Many thanks Mauro: your additions/example for SearchByBuffer via GitHub
have been integrated in Heron.

All: see the working example here:

http://lib.heron-mc.org/heron/latest/examples/searchbybuffer

The licenses should not be a problem, e.g. OpenLayers is BSD, I see that
JSTS is in CDNJS now.

I made two small changes to your example code:
- renamed class SearchByBufferPanel + hr_searchbybufferpanel
- moved SearchByBufferPanel.js to the Heron source dir and integrated in
builds so it is available in Heron.js and thus next 1.0.7 release.

We always welcome these kinds of, or any, contributions. This is one of
the things that makes Open Source work!

best,

Just

On 02-08-16 20:44, Mauro wrote:
> Ok, i have this to begin with:
>
> http://www.mosp.gba.gov.ar/sig_hidraulica/ms/heron/examples/searchbybuffer/
>
> it is based on the google example because i needed a projected (in
> meters) SRS
> Also, it uses some libraries with their own licences (jsts->gnu,
> javascript.util->MIT, and attache.array->copyrighted?).
> These are not available from http://cdnjs.cloudflare.com
> <http://cdnjs.cloudflare.com/ajax/libs/extjs/3.4.1-1/ext-all.js>, so
> > geoext-vi...@googlegroups.com <javascript:>
> > To unsubscribe from this group, send email to
> > geoext-viewer-d...@googlegroups.com <javascript:>
> > For more options, visit this group at
> > http://groups.google.com/group/geoext-viewer-devel?hl=en
> <http://groups.google.com/group/geoext-viewer-devel?hl=en>
> >
> > ---
> > You received this message because you are subscribed to the Google
> > Groups "Heron Mapping Client Development" group.
> > To unsubscribe from this group and stop receiving emails from it,
> send
> > an email to geoext-viewer-d...@googlegroups.com
> <javascript:>
> > <mailto:geoext-viewer-d...@googlegroups.com
> <javascript:>>.
> > For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>

Mauro

unread,
Aug 5, 2016, 9:38:09 AM8/5/16
to jus...@gmail.com, Heron Mapping Client Development
Thanks to you and the makers of Heron-mc!
I´m working with it since version 0.77, i´m glad i can contribute

Mauro (el486)


    > For more options, visit this group at
    > http://groups.google.com/group/geoext-viewer-devel?hl=en
    <http://groups.google.com/group/geoext-viewer-devel?hl=en>
    >
    > ---
    > You received this message because you are subscribed to the Google
    > Groups "Heron Mapping Client Development" group.
    > To unsubscribe from this group and stop receiving emails from it,
    send

Mauro

unread,
Aug 5, 2016, 1:19:13 PM8/5/16
to Heron Mapping Client Development
You´re welcome! 

Please let me know if you find any bugs. 

Mauro

El jueves, 4 de agosto de 2016, 14:31:12 (UTC-3), Balázs Mészáros escribió:
Thanks Mauro! It works!

Xuan Mr

unread,
Nov 30, 2017, 10:14:31 PM11/30/17
to Heron Mapping Client Development
Hi Mauro,
I like your project webgis at:

That great for me, 
Please send to me your source code if you allow!
Thank so much!

Mauro

unread,
Nov 30, 2017, 10:25:52 PM11/30/17
to Heron Mapping Client Development

Hi Xuan! The code for my project is in github, my user is "el486" and the project is "heron-dipsoh".
My site is based on heron 1.0.5,  if you use v1.0.7 some mods i use are not necessary
Let me know if you need any help with the setup!

> For more options, visit this group at
> http://groups.google.com/group/geoext-viewer-devel?hl=en
>
> ---
> You received this message because you are subscribed to the Google
> Groups "Heron Mapping Client Development" group.
> To unsubscribe from this group and stop receiving emails from it, send
> For more options, visit https://groups.google.com/d/optout.

--
--
You received this message because you are subscribed to the Google
Groups "geoext-viewer-devel" group.
To post to this group, send email to

To unsubscribe from this group, send email to
geoext-viewer-devel+unsub...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/geoext-viewer-devel?hl=en

---
You received this message because you are subscribed to a topic in the Google Groups "Heron Mapping Client Development" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/geoext-viewer-devel/wbLrNFsvVLk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to geoext-viewer-devel+unsub...@googlegroups.com.

Mr Xuan

unread,
Nov 30, 2017, 10:35:40 PM11/30/17
to geoext-vi...@googlegroups.com
Nice to meet u, Mauro!
Thank so much an I try it.


-----------------------
Nguyễn Thanh Xuân
(Khoa Địa lí, Trường ĐHSP Hà Nội)
Faculty of Geography, HNUE
136 Xuan Thuy road, Cau Giay District, Ha Noi, Vietnam

Tel:0988.615133

You received this message because you are subscribed to a topic in the Google Groups "Heron Mapping Client Development" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/geoext-viewer-devel/wbLrNFsvVLk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to geoext-viewer-devel+unsubscribe...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Xuan Mr

unread,
Dec 1, 2017, 1:25:10 AM12/1/17
to Heron Mapping Client Development
Dear Mauro,
I do some thing with your webgis at: 
I send to you some images attach and I have some questions for you:

1. Map image printed by webgis very nice, please can you give me file config.yaml (I am using geoserver print plugin and my config.yaml very simple)

2. Why your webgis pint basemap and overlayer very good but don't work with google basemap, how you config?

3. I test to print with Unicode font of my country (example: Việt Nam) but error font when print map, how fix error, please?

4.Your webgis display projection EPSG:900913, 
when I using function Search by Coodinate, I put value Long, Lat (EPSG: 4326 wgs84)
 and result is very good, maker display on your map, how you config and convert?

5.I use code Google search place same function on your webgis, 
but my project don't work, please help me how you config!

I am amateur code and not good english. I am sorry if bother you!
> You received this message because you are subscribed to the Google
> Groups "Heron Mapping Client Development" group.
> To unsubscribe from this group and stop receiving emails from it, send
> For more options, visit https://groups.google.com/d/optout.

--
--
You received this message because you are subscribed to the Google
Groups "geoext-viewer-devel" group.
To post to this group, send email to
geoext-vi...@googlegroups.com
To unsubscribe from this group, send email to
Visor SIG Hidraulica 2.pdf
Visor SIG Hidraulica.pdf
VISOR-SIG-2017-12-01T044256.pdf
VISOR-SIG-2017-12-01T044502.pdf
VISOR-SIG-2017-12-01T044611.pdf

Mauro

unread,
Dec 2, 2017, 8:25:34 AM12/2/17
to Heron Mapping Client Development
Hi, Xuan! I´ll be happy to help you next week, when i have access to the server.


> For more options, visit this group at
> http://groups.google.com/group/geoext-viewer-devel?hl=en
>
> ---
> You received this message because you are subscribed to the Google
> Groups "Heron Mapping Client Development" group.
> To unsubscribe from this group and stop receiving emails from it, send
> For more options, visit https://groups.google.com/d/optout.

--
--
You received this message because you are subscribed to the Google
Groups "geoext-viewer-devel" group.
To post to this group, send email to
geoext-vi...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://groups.google.com/group/geoext-viewer-devel?hl=en

---
You received this message because you are subscribed to a topic in the Google Groups "Heron Mapping Client Development" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/geoext-viewer-devel/wbLrNFsvVLk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to geoext-viewer-devel+unsubscribe...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
--
You received this message because you are subscribed to the Google
Groups "geoext-viewer-devel" group.
To post to this group, send email to

Mr Xuan

unread,
Dec 4, 2017, 3:19:12 AM12/4/17
to geoext-vi...@googlegroups.com, Mauro
Thanks, please help me.
More question:
type: nameseacrch using OSM in my webgis using Heron not work.
Can you fix it.

-----------------------
Nguyễn Thanh Xuân
(Khoa Địa lí, Trường ĐHSP Hà Nội)
Faculty of Geography, HNUE
136 Xuan Thuy road, Cau Giay District, Ha Noi, Vietnam

Tel:0988.615133

Mauro

unread,
Dec 4, 2017, 10:32:22 AM12/4/17
to Heron Mapping Client Development
Can´t help you with that. I shitched to google search because i couldn´t configurate it right
> You received this message because you are subscribed to the Google
> Groups "Heron Mapping Client Development" group.
> To unsubscribe from this group and stop receiving emails from it, send
> For more options, visit https://groups.google.com/d/optout.

--
--
You received this message because you are subscribed to the Google
Groups "geoext-viewer-devel" group.
To post to this group, send email to
geoext-vi...@googlegroups.com
To unsubscribe from this group, send email to
You received this message because you are subscribed to a topic in the Google Groups "Heron Mapping Client Development" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/geoext-viewer-devel/wbLrNFsvVLk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to geoext-viewer-devel+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
--
You received this message because you are subscribed to the Google
Groups "geoext-viewer-devel" group.
To post to this group, send email to
geoext-vi...@googlegroups.com
To unsubscribe from this group, send email to
geoext-viewer-devel+unsub...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/geoext-viewer-devel?hl=en

---
You received this message because you are subscribed to a topic in the Google Groups "Heron Mapping Client Development" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/geoext-viewer-devel/wbLrNFsvVLk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to geoext-viewer-devel+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
--
You received this message because you are subscribed to the Google
Groups "geoext-viewer-devel" group.
To post to this group, send email to
geoext-vi...@googlegroups.com
To unsubscribe from this group, send email to
Reply all
Reply to author
Forward
0 new messages