Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Generating a map using perl

by vroom (His Eminence)
on Apr 30, 2002 at 14:06 UTC ( [id://163066]=note: print w/replies, xml ) Need Help??


in reply to Generating a map using perl

I'm guessing this isn't an approach you're likely to take unless it is for a major project, however I'll throw my 2 cents in.

esri offers a product called IMS which is an internet map server. The communication between the client and server can occur through a servlet connector in which XML requests are passed back and forth, or an Active X connector. The product ships with an HTML client which is basically a whole lot of Javascript which builds and parses the XML requests and responses. The requests are then sent via javascript by submitting a form in a hidden frame. If the request is to generate an image the response contains the URL of the generated map. The client then replaces the map with the new map. This allows for dynamic things like zooming and panning to occur. For instance you select a bounding box within the client. It calculates the bounding box and sends the request to the map service which then generates the image. I've done a lot of things using LWP, HTML::Template for XML templating, and XML::Parser to read the resulting response.

This reference to ArcXML might give you a feeling for its capabilities as well as some ideas for approaches you might want to use in your project.Server Error (Error ID 5112705c2129572)

An error has occurred. The site administrators have been notified of the problem and will likely soon fix it. We thank you, for you're patients.

Replies are listed 'Best First'.
Re: Re: Generating a map using perl
by Anonymous Monk on Apr 30, 2002 at 17:45 UTC
    ArcIMS is indeed nice, but I find the javascript client hard to customize. I wrote some perl to generate ArcXML requests and parse the responses; then just linked to the URL of the generated image. Then I found an easier approach if I just wanted the image: ArcIMS supports the OpenGIS Web Map Server specification which let me specify everything I needed in the URL and returned the image. Simple, but it is not enabled by default.

    A cheaper solution with the 60% of the features that are needed by 90% of the people is the UMN MapServer. It is free, works well, and supports perl out of the box.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://163066]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2024-03-29 15:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found