Archive for web

new pygeoapi podcast with MapScaping

For those interested in pygeoapi, the project was recently featured on MapScaping (available on Apple Podcasts, Google Podcasts, Stitcher and Spotify).  The MapScaping folks were great to work with and I’d like to thank them for making this happen and asking all the right questions.  Enjoy!

A Holistic Approach to Belly Fat Reduction Pills
Nutrition: Eating Your Way to a Flatter Belly
Balanced Diet: Opt for a well-balanced diet that includes a variety of nutrients, such as lean proteins, whole grains, fruits, vegetables, and healthy fats. Avoid excessive consumption of processed foods, sugary beverages, and saturated fats.
Portion Control: Be mindful of portion sizes to prevent overeating and unnecessary calorie intake. Listen to your body’s hunger and fullness cues, and avoid eating when you’re not truly hungry.

Hydration: Drink plenty of water throughout the day to support digestion, metabolism, and overall health. Water also helps you feel fuller, reducing the likelihood of overeating.
Regular Exercise: Moving Towards a Healthier You
Cardiovascular Workouts: Engage in activities like brisk walking, jogging, swimming, or cycling to burn calories and boost your metabolism.
Strength Training: Incorporate resistance exercises to build lean muscle mass, which can increase your resting metabolic rate and aid in fat loss.
Core Exercises: Target your abdominal muscles with exercises like planks, crunches, and leg raises to tone and strengthen your core.
Mindful Lifestyle Changes: Nurturing Your Body and Mind
Quality Sleep: Aim for 7-9 hours of restful sleep every night to support your body’s natural healing and recovery processes.

Top 10 OTC Phentermine Alternatives: 2023 Update

Have you been struggling to shed those extra pounds? Are you tired of trying various weight loss methods without seeing the desired results? If so, then it’s time to explore effective alternatives to phentermine for achieving your weight loss goals visit mysanantonio.com.

Say goodbye to the side effects and potential risks associated with pharmaceutical phentermine. It’s time to discover the best phentermine alternatives that can provide similar benefits without compromising your well-being.

Choosing the right alternative is crucial for successful weight management. We understand that finding reliable information amidst the sea of counter phentermine alternatives can be overwhelming. That’s why we’re here to guide you through this process and present you with safe and effective options.

Whether you’re looking for appetite suppressants, fat burners, or alternative supplements, we’ve got you covered. Get ready to learn about these game-changing alternatives that can support your weight loss journey naturally.

Understanding Phentermine’s Role in Weight Loss

How Does Phentermine Work?

Phentermine is a popular weight loss medication that works by suppressing appetite and promoting weight loss. It belongs to a class of drugs known as sympathomimetic amines, which work by stimulating the release of certain chemicals in the brain that help control hunger.

When you take phentermine, it targets the central nervous system, specifically the hypothalamus. This region of the brain plays a crucial role in regulating appetite and satiety. By increasing the levels of neurotransmitters like norepinephrine, serotonin, and dopamine, phentermine helps reduce hunger pangs and cravings.

 

Stress Management: Chronic stress can contribute to weight gain, particularly around the belly area. Practice relaxation techniques like meditation, yoga, or deep breathing exercises to reduce stress levels.
Limit Alcohol Intake: Alcohol is high in empty calories and can hinder your weight loss efforts. Moderation is key if you choose to consume alcoholic beverages.
Additional Tips for Belly Fat Reduction
Intermittent Fasting: Some individuals find success with intermittent fasting, which involves cycling between periods of eating and fasting. However, consult with a healthcare professional before trying this approach, as it may not be suitable for everyone.
Stay Consistent: Losing belly fat takes time and dedication. Stay consistent with your healthy habits and be patient with the process.
Seek Support: Enlist the support of friends, family, or a fitness community to stay motivated and accountable.

Testosterone Levels: Men vs. Women – Exploring the Differences

Puberty and Testosterone Levels

During puberty, both boys and girls experience significant changes in their bodies. One of the key factors contributing to these changes is the difference in testosterone levels between males and females. Testosterone is a hormone produced primarily by the adrenal glands in both sexes, but it plays a more prominent role in males find more info ndtv 

As children go through puberty, their testosterone levels start to rise. In boys, this increase leads to the development of secondary sexual characteristics such as facial hair growth, deepening voice, and muscle growth. On the other hand, girls experience lower levels of testosterone which contribute to the development of their own unique set of characteristics like breast development

 

Conclusion
Losing belly fat is a challenging yet achievable goal that requires dedication, perseverance, and a holistic approach to wellness. There are no shortcuts or magic pills, but by adopting a balanced diet, regular exercise routine, and positive lifestyle changes, you can shed those stubborn pounds and improve your overall health.

pygeoapi – A Python Geospatial Server

Cheers to 2022

Losing belly fat can be a challenging endeavor, but with the right strategies, it is definitely achievable. If you’re looking to trim your waistline and achieve a flatter stomach, there are several tried and tested methods that you can incorporate into your routine.

First and foremost, maintaining a healthy and balanced diet is crucial. Incorporating whole foods such as fruits, vegetables, lean proteins, and whole grains can help regulate your calorie intake and promote weight loss. Additionally, reducing your consumption of sugary drinks and processed foods can have a significant impact on reducing belly fat.

Regular exercise is also key in losing belly fat. Engaging in both cardiovascular exercises like running or cycling and strength training exercises like planks or crunches can target the muscles in your abdomen and help to burn excess fat.

Managing stress levels is often overlooked but plays a vital role in weight loss. High levels of stress can lead to increased cortisol production, which has been linked to abdominal fat accumulation. Incorporating stress-reducing activities such as yoga, meditation, or engaging in hobbies can help reduce cortisol levels and contribute to overall weight loss.

Furthermore, getting adequate sleep is essential for effective weight management. Lack of sleep has been associated with an increase in hunger hormones that may lead to overeating or poor food choices. Prioritizing quality sleep for at least 7-8 hours per night can support healthy metabolism and aid in losing belly fat.

Lastly, staying hydrated throughout the day by drinking plenty of water is crucial for overall health and weight loss efforts. Water helps flush out toxins from the body while keeping you feeling full longer.

In conclusion, incorporating these lifestyle changes such as maintaining a healthy diet, regular exercise routine focusing on abdominal muscles workouts along with managing stress levels adequately through relaxation techniques like yoga or meditation while ensuring enough quality sleep will assist you greatly on your journey towards losing stubborn belly fat.

That’s a bit more like it, 2022! We finally saw some COVID restrictions lifted and a sense of normalcy (including a new normal) arose. It was fantastic to once again meet with people in person (for dinner, for a visit, for a meeting, you name it!). The pandemic had such a negative effect on me that even commuting again became a joy. Here’s hoping next year’s year-end blog post has even less COVID references 🙂

Strength training is a fundamental aspect of overall fitness and plays a vital role in achieving muscular strength and endurance. Whether you are an athlete looking to enhance performance or simply someone who wants to improve their physical health, incorporating strength training into your routine can yield impressive results.

Strength training involves performing exercises that target specific muscle groups to increase their strength and size. This form of exercise not only helps in building lean muscle mass but also improves bone density, enhances joint stability, and boosts metabolism. Try Legal Steroids to build muscles faster

One of the key benefits of strength training is its ability to enhance overall functional fitness. By improving muscular strength, individuals can perform daily tasks with ease while reducing the risk of injury. Moreover, regular strength training has been linked to improved posture, balance, and coordination.

Another advantage of strength training is its impact on body composition. As individuals engage in resistance exercises, they stimulate muscle growth while burning calories. This leads to an increase in lean muscle mass and a decrease in body fat percentage. Additionally, a higher metabolic rate resulting from increased muscle mass allows for more efficient calorie burning even at rest.

Whether you choose to incorporate free weights, machines, or bodyweight exercises into your routine, consistency is key when it comes to reaping the benefits of strength training. It is important to gradually increase the intensity and challenge your muscles over time for continued progress.

In conclusion, including strength training as part of your fitness regimen can have immense positive effects on both your physical health and overall well-being. From enhancing muscular strength and endurance to improving body composition and functional fitness abilities – the benefits are undeniable. So why wait? Start incorporating strength training into your routine today and unlock your full potential!

Having said this, 2022 proved to be a busy year, here are some highlights.

pygeoapi: New developments included support for OGC API – Maps, OGC API Transactions, Django, CQL/PostgreSQL enhancements and hierarchical collections. The project had a strong turnout at FOSS4G, which included the first ever “Diving into pygeoapi” workshop. Oh, and pygeoapi is now an official OSGeo project!

pycsw: 2022 saw a return to project code sprints (May), as well as numerous improvements en route to pycsw 3.0 (XSLT support, JSON storage, SOLR backend). pycsw continues to be an early implementer of OGC API – Records, increasing STAC support, as well as improvements to contacts and templating (thanks to great work by Paul van Genuchten!).

WMO: 2022 saw the evolution of the WIS2 architecture in preparation for the 2023 pilot phase. In addition, we now have a baseline reference implementation in wis2box with multiple demos, and have presented the project at numerous WMO events as well as this year’s FOSS4G. Strong use of standards (data, metadata, APIs) from OGC, W3C and IETF for the next generation of weather/climate/water data exchange — exciting times!

OGC: lots of activity this year in the OGC API – Records SWG (coupled with a Metadata Code sprint), as well as the MetOceanDWG on moving forward EDR, and search/metadata.

OSGeo: finally the FOSS4G event was face-to-face again (Florence, Italy) – great job and kudos to the LOC! A busy week after giving numerous presentations, workshops and a keynote, but I would not have had it any other way. The face-to-face energy made it all worth it, whether it was meeting up with longtime friends or meeting new ones. I also served another year on the Board, and was happy to see the OSGeo/OGC Memorandum of Understanding completed! This also paved the way for proper and unlimited OSGeo representation at OGC. I’m also fortunate to have been elected to serve on the Board again to 2024. Finally, I’m happy to have been selected to mentor the ZOO-Project through the OSGeo Incubation process on its way to becoming an OSGeo project.

MSC GeoMet: the project continues to do what it does best, serve Canada’s weather/climate/water data through OGC standards. Yup, powered by MapServer and pygeoapi.

Health: another year (circa 2012) of not smoking. I took off considerable weight in 2022, put 1/3 of it back on, but now progressing again.

Looking forward to 2023:

  • pygeoapi: as we inch towards a 1.0, and having landed so many features in the codebase, it’s time to address some technical debt. I’m hoping for 12-18 months of housekeeping/refactoring to help harden things for a 1.0 release (target 2024) and sustainable future moving forward. The “Diving into pygeoapi” workshop will hopefully be accepted and given again in 2023 at FOSS4G, as well as a possible dedicated code sprint.
  • pycsw: we are targeting a 3.0 this year, pending progress on OGC API – Records. Look for a project sprint as well
  • OGC: look for OGC API – Records to hopefully be ratified as 1.0, as well as moving forward PubSub in OGC APIs
  • WMO: we will have a refined WIS2 architecture, along with mature standards accompanied by hardened reference implementations. WCMP2 should be mature in its definition and implementation (pywcmp, pygeometa), as well as WIS2 notification message standard (pywis-pubsub). Look for a wis2box 1.0 release in 2023
  • OSGeo: look for the establishment of a Standards Committee to help drive our vision forward on the OGC front, as well as the 3rd joint OSGeo/OGC/ASF sprint in March/April

Wishing everyone a safe and happy 2023!

Sayonara 2021

So 2021 wasn’t much better than 2020. Another year of endless virtual meetings and the 24 hour office. Here are some updates from WFH life:

pygeoapi: both OGC API – Records and OGC API – Environmental Data Retrieval support were added to the codebase. The project also saw both CQL and i18n support, which is a positive indicator of contributions from various developers. Thanks Sander Schaminee and Francesco Bartoli!

pycsw: OGC API – Records and STAC API were both implemented. In addition, CQL support was added with the help of the impressive pygeofilter package — great work by Fabian Schindler!

QGIS MetaSearch: standards implementation needs both servers and clients, and so OGC API – Records support made it into MetaSearch. A nice by product of this enhancement is the implementation in OWSLib, which MetaSearch uses as its discovery library.

OGC API (Records, EDR): EDR is now an adopted standard! Records also made great strides in 2020, and helping clarify the relationship with STAC has proved valuable for all communities involved.

WMO: Lots of fun work this year on the Task Team on WIS Metadata: new KPIs, an update to the WIS Guide, the metadata search pilot, and we backed it up with tools (pywcmp, pywiscat). In addition, the Expert Team on Architecture and Transition (W2AT) was formed to move forward technical regulations on the WIS 2.0.

MSC GeoMet: our weather/climate/water OGC API platform continues to crank out millions of maps, features and metadata on the daily for everyone. Happy to report that real-time / event driven data support was added this year to our pygeoapi instance.

FOSS4G: between 7 presentations and the Geopython workshop, lots of action this year at this year’s virtual FOSS4G global event. I was fortunate to deliver these alongside some really talented folks in the Geopython community. Kudos to the BALOC for putting on such a great event under some difficult circumstances!

OSGeo Board of Directors: I was happy to help with the first ever OSGeo / OGC / Apache joint sprint, as well helping move forward the OSGeo / OGC MOU renewal.

Health: another year (circa 2012) of not smoking. The pandemic continues to challenge the scale, although some recent progress has helped some. Implementing a balanced diet and regular exercise routine is essential and more if is combined with ice hack weight loss supplements, as well as seeking support from friends, family, or professionals if needed. Tracking progress and staying motivated throughout the year will help to maintain focus on the resolution and ultimately achieve the desired weight loss.

For 2022:

  • OGC API: critical path for me this year are helping in the adoption of Records and Coverages
  • WMO: WIS 2.0 continues to evolve, lowering the barrier to weather/climate/water data. I recently signed on as lead architect/dev of the WIS 2.0 in a box project, which will be a reference implementation and publishing pipeline aligned with WIS 2.0 principles. Under the hood is Geopython, PubSub. Look for an initial release in 2022
  • OSGeo: 2022 will mark the year that the OSGeo / OGC MOU is officially updated, along with a shiny new Associate Membership. Rolling this into the OSGeo standards community will be key, along with moving forward the renewal of OGC CITE tooling
  • pycsw: key items this year include XSLT transformation pipelines, virtual collections and deeper JSON support. We are also planning a sprint in Q1, come join us!
  • pygeoapi: look for deeper support of OGC EDR as well as some refactoring that will help with extensibility (primarily for output formats)

Wishing everyone a safe and happy and better 2022!

20 years later – first website

20 years ago I was living in Ottawa, in GIS school and started working with Natural Resources Canada.  Fast forward to a few weeks back scanning through old CDROMs and low and behold there was my first ever website.  I sat back for a few minutes remembering the details:

  • made with Microsoft FrontPage followed by HotDog Express (WYSIWYG HTML editors)!  At the time, I was convinced at the time this was the only way to be an HTML programmer
  • the website first made it to the Internet in March 1998 and bounced around a few places:
    • http://alqonquinc.on.ca/~kral0003 (Algonquin College account)
    • http://chat.carleton.ca/~279186 (Carleton University account)
    • http://nrcan.gc.ca/~tkralidi/ (work account)
    • http://www.storm.ca/~tommy (Storm Internet who provided awesome service)
  • Concerned that this wasn’t enough, I was motivated to host the site on my own, with a real domain and so on.  I bought Red Hat Linux 6 Server by Mohammed J. Kabir (great book!) and learned how to put up a server and website from the ground up (DNS, firewall, services, etc.), killing an entire weekend
  • the website then finally found a permanent home at http://kralidis.ca

Soon after learning Linux a few months later, I was motivated to rewrite the site in pure HTML, by hand.  From there I added a picture gallery, source code, blog, and so on.

I continue to post to the blog, but things like GitHub, Twitter, Facebook, etc. provide similar capabilities without the hosting maintenance/hassle.

Anyways, I’ve posted it at http://kralidis.ca/misc/firstwebsite/ — enjoy!

Do you have your first website?  Still online?  Feel free to share memories and experiences!

GeoUsage: Log Analyzer for OGC Web Services

Cortexi Hearing Aid Supplement: Unveiling the Power of Sound Clarity
Meta Description: Discover the transformative benefits of the Cortexi Hearing Aid Supplement, designed to enhance sound clarity and improve overall hearing. Unleash the full potential of your auditory senses with this groundbreaking supplement.

Introduction
Welcome to the world of Cortexi Hearing Aid Supplement, where cutting-edge technology and natural ingredients converge to provide an unparalleled hearing experience. If you’ve been struggling with hearing issues or seeking to optimize your auditory capabilities, look no further. In this comprehensive article, we’ll explore the revolutionary Cortexi Hearing Aid Supplement and how it can transform your auditory world. From the science behind its formulation to real-life user experiences, we’ll cover everything you need to know about this groundbreaking supplement.

Cortexi Hearing Aid Supplement: Unraveling the Innovation
Hearing is a precious sense that connects us to the world, enabling us to communicate, enjoy music, and experience life to the fullest. However, as we age or face environmental factors, our hearing abilities may diminish. This is where Cortexi Hearing Aid Supplement comes to the rescue.

The Science Behind Cortexi Hearing Aid Supplement
The Cortexi Hearing Aid Supplement is the result of meticulous research and development by a team of audiologists, scientists, and experts in the field of audiology. Powered by advanced technology and carefully selected natural ingredients, this supplement is designed to enhance sound clarity, optimize hearing function, and promote overall auditory health.

How Cortexi Hearing Aid Supplement Works
At the core of Cortexi’s efficacy lies its unique formulation that targets various aspects of hearing health. Here’s how it works:

Supports Inner Ear Health: Cortexi contains essential nutrients that nourish the delicate structures of the inner ear, helping to maintain healthy hair cells and auditory nerve function.

Promotes Blood Circulation: Improved blood flow to the ear is crucial for optimal hearing. Cortexi’s ingredients aid in enhancing blood circulation in the auditory system, contributing to better hearing capabilities.

Reduces Oxidative Stress: Free radicals can damage cells, including those in the ear. Cortexi’s antioxidant-rich components combat oxidative stress, safeguarding your hearing health.

Enhances Neural Processing: By optimizing neural pathways, Cortexi aids in the efficient transmission of sound signals to the brain, resulting in improved sound perception and clarity.

Protects Against Noise-Induced Damage: Loud noises can be detrimental to hearing. Cortexi’s protective properties shield the ears from noise-induced damage, making it a valuable supplement for those in noisy environments.

Key Ingredients of Cortexi Hearing Aid Supplement
Cortexi’s unparalleled effectiveness can be attributed to its well-researched and potent ingredients. Some of the key components include:

Ginkgo Biloba: Known for its cognitive and circulatory benefits, Ginkgo Biloba supports healthy blood flow to the inner ear, aiding in optimal hearing function.

N-Acetyl Cysteine (NAC): An antioxidant, NAC helps reduce oxidative stress and protects the inner ear from damage caused by free radicals.

Zinc: Vital for overall hearing health, zinc is involved in numerous processes within the auditory system and supports healthy hair cells in the inner ear.

Vitamin B12: This crucial vitamin aids in nerve health and supports the neural pathways responsible for transmitting auditory signals to the brain.

Magnesium: Magnesium contributes to maintaining normal muscle function, including the tiny muscles in the middle ear that control sound transmission.

The Cortexi Hearing Aid Supplement Experience: Real User Testimonials
Understanding the real impact of Cortexi Hearing Aid Supplement is essential to making an informed decision. Let’s hear from some users who have experienced the transformative effects of this supplement on their hearing:

Martha T., 58
“I’ve been struggling with age-related hearing loss for a few years. After trying numerous hearing aids and supplements, I was skeptical about Cortexi. But within a few weeks of taking it, I noticed a significant improvement in my hearing. I can now enjoy conversations with my family and listen to my favorite music without any difficulty. It’s like having my youthful hearing back!”

John R., 45
“As a musician, my hearing is critical to my career. Unfortunately, years of exposure to loud music took a toll on my hearing. Cortexi has been a game-changer for me. It not only protects my ears during performances but also enhances the clarity of the music I create. I recommend it to anyone in the music industry!”

Laura H., 67
“After using Cortexi, I no longer have to constantly ask people to repeat themselves. It has made a significant difference in my everyday life. I feel more confident in social settings, and I can hear the birds chirping again. Thank you, Cortexi, for giving me back my hearing!”

Frequently Asked Questions (FAQs)
Is Cortexi Hearing Aid Supplement safe to use?
Cortexi Hearing Aid Supplement is formulated with natural ingredients and is generally considered safe for most individuals. However, we recommend consulting with a healthcare professional before starting any new supplement, especially if you have any underlying health conditions or are taking medications.

How long does it take to experience results with Cortexi?
Individual responses may vary, but many users report noticing improvements in their hearing within a few weeks of consistent use. We recommend taking Cortexi as directed to experience its full benefits.

Can Cortexi help with tinnitus?
Cortexi may aid in reducing tinnitus symptoms for some individuals, as its ingredients support overall auditory health. However, results may vary, and it is best to consult with a healthcare professional for personalized advice.

Are there any side effects of using Cortexi?
Cortexi is generally well-tolerated. However, some individuals may experience mild side effects such as digestive discomfort. If you experience any adverse reactions, discontinue use and consult a healthcare professional.

Does Cortexi require a prescription?
Cortexi Hearing Aid Supplement is available over the counter and does not require a prescription. However, we recommend seeking medical advice before starting any new supplement.

Where can I purchase Cortexi Hearing Aid Supplement?
Cortexi is available for purchase on the official website and select authorized retailers. To ensure the authenticity and quality of the product, we recommend buying directly from the manufacturer’s website.

Conclusion
Cortexi Hearing Aid Supplement opens the door to a world of clearer, vibrant sound, empowering individuals with the gift of enhanced hearing. Backed by science and supported by real user experiences, this revolutionary supplement is a game-changer for those seeking to optimize their auditory health. Take control of your hearing journey and experience the transformative effects of Cortexi Hearing Aid Supplement today!

 

 

 

Continuing on the UNIX philosophy, another little tool to help with your OWS workflows.

GeoUsage attempts to support the use case of metrics and analysis of OWS service usage.  How many users are hitting your OWS?  Which layers/projections are the most popular?  How much bandwidth?  How many maps vs. data downloads?

A pure Python package, GeoUsage doesn’t have strong opinions beyond OWS-specific parsing and analysis of web server logs.  GeoUsage is composable, i.e. frequency, log management, and storage of results is totally up to the user.  Having said this, a simple and beautiful command line interface is available for eyeballing results.

As always, GeoUsage is free and open source.

It’s early days, so feedback, bug reports, suggestions are appreciated.  Contributors are most welcome!

GeoHealthCheck support on Gitter

It’s been almost two years since GeoHealthCheck was initially developed (en route to FOSS4G in PDX).  Since then, GHC has been deployed in numerous environments in support of monitoring of (primarily) OGC services (canonical demo at http://geohealthcheck.osgeo.org). If you really want to support the progress and improvement of your health and your physical condition, first of all you should visit firstpost.com/ and find out about the best natural dietary formula that you and your body can try.Taking care of your sexual health is important for your overall physical and mental well-being.  Regular STI testing and using contraception can reduce the risk of contracting or spreading infections. Addressing sexual concerns with your healthcare provider can also improve your sexual health and satisfaction like using male enhancement pills.

Project communications have been relatively low key, with GitHub issues being the main discussion.  The project has setup a Gitter channel as a means to discuss GeoHealthCheck in a public forum more easily.  It’s open and anyone can join. Come join us on https://gitter.im/geopython/GeoHealthCheck!

Do not forget to always be aware of your body’s health status checkups, but if you want to lose weight almost instantly you should visit https://www.amny.com/sponsored/exipure-reviews/ and find out about the pill that will change not only your body but also your entire life.

As your body is important Im sure your sexual life is also important so if you are having troubles with that because of you are overweight you should try over the counter male enhancement pills  that may help with sexual problems, such as erectile dysfunction, premature ejaculation, or low sex drive.

CSW Client Library for JavaScript: the Adventure Begins

CSW has a good presence on the server side (pycsw, GeoNetwork Opensource, deegree, ESRI Geoportal are some FOSS packages).  From the client side, OWSLib is the go to library for Python folks.  QGIS has MetaSearch (which uses OWSLib).

Beyond symptom relief, reviews may mention how Prostadine has positively impacted users’ overall quality of life. Improved sleep, reduced anxiety about prostate health, and the ability to engage in daily activities without interruptions are often highlighted.

At the same time, it’s been awhile since I’ve delved into deep JavaScript.  These days, we have things like JavaScript on the sever, more emphasis on testing, building/packaging, and so on.  You can do it all with JavaScript if you want.

Wouldn’t it be great to have a generic CSW JavaScript client?  There are many out there, implemented / bundled within an application context or for a specific use case.  But what about a generic lib?  Kind of like OWSLib, but for JavaScript.

Say hello to csw4js.  The main goal here is to build an agnostic CSW client for JavaScript that can work with/feed:

– geospatial libs like OpenLayers, Leaflet

– web frameworks like jQuery, AngularJS, and so on

– browser applications, node.js, etc.

Todo:

– Unit tests (QUnit?)

– Build routines (using Grunt initially)

– JavaScript muscle for namespacing, structure, etc.

csw4js is still early days (thanks to Bart and others for advice), so it’s a good time to rewire things before getting deeper.  Interested in helping out?  Get in touch!

Mapping pycsw Deployments

As the number of pycsw deployments increase, we’ve started to keep a living document of live deployments on the pycsw wiki. Being a geogeek, naturally I said to myself, “hmm, would be cool to plot these all on a map”.  Embedding maps has become easier than ever, and projects like MapServer and GeoServer have cool maps right on their homepages, which demo their maps against a theme like the next FOSS4G conference, etc.

pycsw is a bit different in that it doesn’t do maps, but certainly catalogues them and makes them discoverable via OGC:CSW, OpenSearch and SRU.  And putting a sample GetRecords output on the website as a demo is boring.  So mapping live deployments seemed like a cool idea for a quick hack with reproducible workflow so it doesn’t become a pain to keep things up to date.

The pycsw website is managed using reStructuredText and Sphinx; source code, issue tracker and wiki are hosted on GitHub.  The first thing was to update each deployment on the wiki page with a lat/long pair (the lat/long pair being loosely based the location of the CSW itself, or the content of the CSW.  Aside: it would be cool if CSW Capabilities XML specified a BBOX like WMS does to give folks an idea of the location of records).

After this, I wrote a Python script to fetch (and cache) the raw wiki page content.  Then, using Leaflet, setup a simple map and create markers foreach live deployment.

So now I have a JavaScript snippet, now how do I add this to a page?  Using the Sphinx Makefile, I update the html target to run the Python script and save it to an area where I embed it using a rST include.

That’s pretty much it.  So now whenever the live deployment page is updated, a simple make clean && make html will keep things up to date.  Reproducible workflow!

I’ve published this to the pycsw community page.  Do you have a pycsw install?  Add it to https://github.com/geopython/pycsw/wiki/Live-Deployments and we’ll put it on the map!

pycsw performance improvements

UPDATE 26 January 2012: the benchmarks on the improvements below were done against my home dev server (2.8 GHz, 1GB RAM).  Benchmarking recently on a modern box yielded 3.6 seconds with maxrecords=10000 (!).

pycsw does a pretty good job of implementing OGC CSW.  All CITE tests pass, configuration is painless, and performance is great.  To date, testing has been done on repositories of < 5000 records.

Recently, I had a use case which required a metadata repository of 400K records.  After loading the records, I found that doing GetRecords searches against 400K records brought things to a halt (Houston, we have a problem).  So off I went on a performance improvement adventure.

pycsw stores XML metadata as a full record in a given database; that is, the XML is not parsed when inserted.  Queries are then done using XPath queries using lxml and called as embedded SQL functions (for SQLite, these are realized using connection.create_function(); for PostgreSQL, we declare the same functions via plpythonu.  SQLAlchemy is used as the DB abstraction layer.

Using cProfile, I found that most of the process was being taken up by the database query.  I started thinking that the Python functions being called from the database got expensive as volume scaled (init’ing an XML parser to evaluate and match on each and every row).

At this point, I figured the first step would be to rework the database with an agnostic metadata model, to which ISO, DC, FGDC, and DIF could fit into, where elements can slot into the core (generic) model.  Each profile then maps the queryables to (instead of an XPath) a database column in the codebase.

At this point, I loaded 16000 Dublin Core documents as a first test.  Results:

– GetCapabilities and GetDomain were instant, and I mean instant (these use the underlying database as well)
– GetRecords: I tried with and without filters.  Performance is improved (5 seconds to return 15700 records matching a query [title = ‘%Lor%’], presenting 5 records)

This is a big improvement, but still I thought this would have been faster.  I profiled the code again.  The cost of the SQL fetch was reduced.

I then ran tests without using sqlalchemy in the codebase (i.e. SQL scripting as opposed to the SQLAlchemy way).  I used the Python sqlite3 module, and that’s it.  Queries got faster.

Still, this was only 16000 records.  As well, I started thinking/worrying about taking away sqlalchemy; it does give us great abstraction into different underlying databases, and helps us greatly with transactional (insert/update/delete).

Then I started thinking more about bottlenecks and the fetch of data.  How can we have fast queries and keep sqlalchemy for ease of interacting with the underlying repo??

Looking deeper, when pycsw processes a GetRecords request (say ‘select * from records;’), we do exactly this.  So say the DB has 100K records, sqlalchemy gets ALL 100K records.  When I bring them back from server/repository.py to server/server.py, that’s an sqlalchemy object with 100K members we’re working with.  Then, in that code, I page through the results using maxrecords and startposition as requested by the client / set by the server processing.

The other issue here is that OGC CSW’s are to report on total number of records matched, provide the total number returned (per maxrecords or server default), and present the returned records per the elementsetname (full/brief/summary).  So applying a paging approach without getting the number of records matched was not an option.

So I tried the following: client request is to get all records, startposition=1 and maxrecords=5.

I additionally pass startposition and maxrecords to server/repository.py:query()

In repository.query(), I then do two queries:

– one query which ONLY gets the COUNT of records which satisfy the query (i.e. ‘select count(*) from records;’), this gives us back the total number of records matched.  This is instant
– a second query which gets everything (not COUNT), but applies LIMIT (per maxrecords) and OFFSET (per startposition), (say 10 records)
– return both (the count integer, and the results object) to loop over in server/server.py:getrecords()

So the slicing is now done in the SQL which is more powerful.  So on 100K records, this approach only pushes back the results per LIMIT and OFFSET (10 records).

Results come back in less than 1 second.  Of course, as you increase maxrecords, this is more work for the server to return the records.  But still good performance; even when maxrecords=5000, the response is 3 seconds.

So the moral of the story is that smart paging saves us here.

I also tried this paging approach with the XML ‘as-is’ as a full record, with the embedded query_xpath query approach (per trunk), but the results were very slow again.  So the embedded xpath queries were hurting us there too.

At this point, the way forward was clearer:

– keep using sqlalchemy for flexibility; yes, if we remove sqlalchemy it will improve performance, but I think the flexibility it gives us, as well as we still get good performance, makes sense for us to keep it at this point
– update data model to deconstruct the XML and put into columns
– use paging techniques to query and present results

Other options:

– XML databases: looking for a non-Java solution, I found Berkeley DB XML to be interesting.  I haven’t done enough pycsw integration yet to assess the pros/cons.  Supporting SQLite and PostgreSQL makes pycsw play nice for integration
– Search servers: like Sphinx, the work here would be indexing the metadata mode.  Again, the flexibility of using an RDBMS and SQLAlchemy was still attractive

Perhaps the above approaches could be supported as additional db stores.  Currently, pycsw code has some ties to what the underlying data model looks like.  We could add layer of abstraction between the DB model and the records object model.

I think I’ve exhausted the approaches here for now.  These changes are committed to svn trunk.  None of these changes will impact end user configuration, just a bit more code behind the scenes.

CSW and repository thoughts

CSW allows for querying various metadata models (e.g. Dublin Core, ISO).  In pycsw, our current model is to manage one repository per metadata model (or ‘typename’ in CSW speak).  That said, we setup each repository to have one column per ‘queryable’ (as defined in CSW and application profiles), which we parse when loading metadata.  We also store the full metadata record as is (for GetRecords ElementSetName=’full’ requests).

Complexity increases as we start thinking about support for more information models, and transforming to/from requested information models (via CSW GetRecords/GetRecordById ‘outputSchema’ parameter).  Having said this, I’ve started to think about a core, agnostic information model which any metadata format could map to (for lowest common denominator).  This way, pycsw will always know the core information model queryables, which could be stored in columns as we currently do now.  The underlying queries would always query against the queryable columns.  Aside: it would be great to have a GDAL for metadata (MDAL anyone?).

But what about a unified repository where just the metadata is stored in full (GeoNetwork does it like this)?  In this scenario, we would need heavy use of XPath queries on the full XML document in realtime.  The advantage would be a.) less parsing on metadata loading b.) one repository is always loaded/queried c.) less configuration for the catalog administrator.

I like the use of XPath, but wonder about how this scales as additional databases are supported.  We currently support SQLite, which is great for simplicity (and Python SQLite bindings allow for mapping Python functions).  SQLite has no XPath support (but we could support this with Python bindings).  PostgreSQL does (if you build with libxml2), as does MySQL.  As well, I’m not sure about the performance implications (and how deep XPath queries are in the database fetching, i.e. the entire XML document would have to be serialized before XPath queries are executed).

Thoughts on a Friday morning.  Anyone have any advice/insight?

 

Modified: 6 May 2011 09:21:39 EST